Molybden API
Loading...
Searching...
No Matches
passwords.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_PASSWORDS_HPP
6#define MOLYBDEN_PASSWORDS_HPP
7
8#include <memory>
9#include <string>
10#include <vector>
11
12namespace molybden {
13
14class Profile;
15
23 std::string url;
24
30 std::string login;
31};
32
37class Passwords {
38 public:
39 virtual ~Passwords() = default;
40
44 virtual std::shared_ptr<Profile> profile() = 0;
45
49 virtual std::vector<PasswordRecord> saved() = 0;
50
55 virtual std::vector<PasswordRecord> neverSaved() = 0;
56
62 virtual void removeByUrl(std::string url) = 0;
63
67 virtual void clear() = 0;
68};
69
70} // namespace molybden
71
72#endif // MOLYBDEN_PASSWORDS_HPP
A service for working with logins and passwords saved in the Chromium password store.
Definition passwords.hpp:37
virtual std::shared_ptr< Profile > profile()=0
The profile of this password store.
virtual void clear()=0
Clears all records in the password store.
virtual void removeByUrl(std::string url)=0
Removes records associated with this URL from the password store.
virtual std::vector< PasswordRecord > neverSaved()=0
Returns only blacklisted (marked as "never-saved") records from the password store.
virtual std::vector< PasswordRecord > saved()=0
Returns only saved records from the password store.
A record saved in the password store.
Definition passwords.hpp:19
std::string login
The login value passed in the form.
Definition passwords.hpp:30
std::string url
The URL of the resource where the form is submitted.
Definition passwords.hpp:23