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

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

Issue 283563002: Password Login Database: report correct changes from AddLogin(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unused variable 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698