Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: chrome/browser/password_manager/native_backend_gnome_x.h

Issue 299443002: Password Login Database: report correct changes from UpdateLogin(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respect primary key in the UpdateLogin() Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 password_manager::PasswordStoreChangeList AddLogin( 84 virtual password_manager::PasswordStoreChangeList AddLogin(
85 const autofill::PasswordForm& form) OVERRIDE; 85 const autofill::PasswordForm& form) OVERRIDE;
86 virtual bool UpdateLogin(const autofill::PasswordForm& form) OVERRIDE; 86 virtual bool UpdateLogin(
87 const autofill::PasswordForm& form,
88 password_manager::PasswordStoreChangeList* changes) OVERRIDE;
87 virtual bool RemoveLogin(const autofill::PasswordForm& form) OVERRIDE; 89 virtual bool RemoveLogin(const autofill::PasswordForm& form) OVERRIDE;
88 virtual bool RemoveLoginsCreatedBetween( 90 virtual bool RemoveLoginsCreatedBetween(
89 const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE; 91 const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE;
90 virtual bool GetLogins(const autofill::PasswordForm& form, 92 virtual bool GetLogins(const autofill::PasswordForm& form,
91 PasswordFormList* forms) OVERRIDE; 93 PasswordFormList* forms) OVERRIDE;
92 virtual bool GetLoginsCreatedBetween(const base::Time& get_begin, 94 virtual bool GetLoginsCreatedBetween(const base::Time& get_begin,
93 const base::Time& get_end, 95 const base::Time& get_end,
94 PasswordFormList* forms) OVERRIDE; 96 PasswordFormList* forms) OVERRIDE;
95 virtual bool GetAutofillableLogins(PasswordFormList* forms) OVERRIDE; 97 virtual bool GetAutofillableLogins(PasswordFormList* forms) OVERRIDE;
96 virtual bool GetBlacklistLogins(PasswordFormList* forms) OVERRIDE; 98 virtual bool GetBlacklistLogins(PasswordFormList* forms) OVERRIDE;
(...skipping 14 matching lines...) Expand all
111 // The local profile id, used to generate the app string. 113 // The local profile id, used to generate the app string.
112 const LocalProfileId profile_id_; 114 const LocalProfileId profile_id_;
113 115
114 // The app string, possibly based on the local profile id. 116 // The app string, possibly based on the local profile id.
115 std::string app_string_; 117 std::string app_string_;
116 118
117 DISALLOW_COPY_AND_ASSIGN(NativeBackendGnome); 119 DISALLOW_COPY_AND_ASSIGN(NativeBackendGnome);
118 }; 120 };
119 121
120 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_ 122 #endif // CHROME_BROWSER_PASSWORD_MANAGER_NATIVE_BACKEND_GNOME_X_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698