| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_GNOME | |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_GNOME | |
| 7 | |
| 8 extern "C" { | |
| 9 #include <gnome-keyring.h> | |
| 10 } | |
| 11 | |
| 12 #include "base/lock.h" | |
| 13 #include "chrome/browser/password_manager/password_store.h" | |
| 14 | |
| 15 class Profile; | |
| 16 class Task; | |
| 17 | |
| 18 // PasswordStore implementation using Gnome Keyring. | |
| 19 class PasswordStoreGnome : public PasswordStore { | |
| 20 public: | |
| 21 PasswordStoreGnome(); | |
| 22 virtual ~PasswordStoreGnome(); | |
| 23 | |
| 24 virtual bool Init(); | |
| 25 | |
| 26 private: | |
| 27 void AddLoginImpl(const PasswordForm& form); | |
| 28 void UpdateLoginImpl(const PasswordForm& form); | |
| 29 void RemoveLoginImpl(const PasswordForm& form); | |
| 30 void GetLoginsImpl(GetLoginsRequest* request); | |
| 31 | |
| 32 static const GnomeKeyringPasswordSchema kGnomeSchema; | |
| 33 | |
| 34 // Mutex for all interactions with Gnome Keyring. | |
| 35 Lock gnome_keyring_lock_; | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(PasswordStoreGnome); | |
| 38 }; | |
| 39 | |
| 40 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_GNOME | |
| OLD | NEW |