OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_ |
7 | 7 |
8 #include <gnome-keyring.h> | 8 #include <gnome-keyring.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 class NativeBackendGnome : public PasswordStoreX::NativeBackend, | 74 class NativeBackendGnome : public PasswordStoreX::NativeBackend, |
75 public GnomeKeyringLoader { | 75 public GnomeKeyringLoader { |
76 public: | 76 public: |
77 explicit NativeBackendGnome(LocalProfileId id); | 77 explicit NativeBackendGnome(LocalProfileId id); |
78 | 78 |
79 virtual ~NativeBackendGnome(); | 79 virtual ~NativeBackendGnome(); |
80 | 80 |
81 virtual bool Init() OVERRIDE; | 81 virtual bool Init() OVERRIDE; |
82 | 82 |
83 // Implements NativeBackend interface. | 83 // Implements NativeBackend interface. |
84 virtual bool AddLogin(const autofill::PasswordForm& form) OVERRIDE; | 84 virtual password_manager::PasswordStoreChangeList AddLogin( |
| 85 const autofill::PasswordForm& form) OVERRIDE; |
85 virtual bool UpdateLogin(const autofill::PasswordForm& form) OVERRIDE; | 86 virtual bool UpdateLogin(const autofill::PasswordForm& form) OVERRIDE; |
86 virtual bool RemoveLogin(const autofill::PasswordForm& form) OVERRIDE; | 87 virtual bool RemoveLogin(const autofill::PasswordForm& form) OVERRIDE; |
87 virtual bool RemoveLoginsCreatedBetween( | 88 virtual bool RemoveLoginsCreatedBetween( |
88 const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE; | 89 const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE; |
89 virtual bool GetLogins(const autofill::PasswordForm& form, | 90 virtual bool GetLogins(const autofill::PasswordForm& form, |
90 PasswordFormList* forms) OVERRIDE; | 91 PasswordFormList* forms) OVERRIDE; |
91 virtual bool GetLoginsCreatedBetween(const base::Time& get_begin, | 92 virtual bool GetLoginsCreatedBetween(const base::Time& get_begin, |
92 const base::Time& get_end, | 93 const base::Time& get_end, |
93 PasswordFormList* forms) OVERRIDE; | 94 PasswordFormList* forms) OVERRIDE; |
94 virtual bool GetAutofillableLogins(PasswordFormList* forms) OVERRIDE; | 95 virtual bool GetAutofillableLogins(PasswordFormList* forms) OVERRIDE; |
(...skipping 15 matching lines...) Expand all Loading... |
110 // The local profile id, used to generate the app string. | 111 // The local profile id, used to generate the app string. |
111 const LocalProfileId profile_id_; | 112 const LocalProfileId profile_id_; |
112 | 113 |
113 // The app string, possibly based on the local profile id. | 114 // The app string, possibly based on the local profile id. |
114 std::string app_string_; | 115 std::string app_string_; |
115 | 116 |
116 DISALLOW_COPY_AND_ASSIGN(NativeBackendGnome); | 117 DISALLOW_COPY_AND_ASSIGN(NativeBackendGnome); |
117 }; | 118 }; |
118 | 119 |
119 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_ | 120 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_ |
OLD | NEW |