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

Unified Diff: chrome/browser/password_manager/password_store_gnome.h

Issue 114057: Re-land the password store work from bug 8205, with changes that should fix b... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/password_manager/password_store_gnome.h
===================================================================
--- chrome/browser/password_manager/password_store_gnome.h (revision 0)
+++ chrome/browser/password_manager/password_store_gnome.h (revision 0)
@@ -0,0 +1,40 @@
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_GNOME
+#define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_GNOME
+
+extern "C" {
+#include <gnome-keyring.h>
+}
+
+#include "base/lock.h"
+#include "chrome/browser/password_manager/password_store.h"
+
+class Profile;
+class Task;
+
+// PasswordStore implementation using Gnome Keyring.
+class PasswordStoreGnome : public PasswordStore {
+ public:
+ PasswordStoreGnome();
+ virtual ~PasswordStoreGnome();
+
+ virtual bool Init();
+
+ private:
+ void AddLoginImpl(const PasswordForm& form);
+ void UpdateLoginImpl(const PasswordForm& form);
+ void RemoveLoginImpl(const PasswordForm& form);
+ void GetLoginsImpl(GetLoginsRequest* request);
+
+ static const GnomeKeyringPasswordSchema kGnomeSchema;
+
+ // Mutex for all interactions with Gnome Keyring.
+ Lock gnome_keyring_lock_;
+
+ DISALLOW_COPY_AND_ASSIGN(PasswordStoreGnome);
+};
+
+#endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_GNOME
« no previous file with comments | « chrome/browser/password_manager/password_store_default.cc ('k') | chrome/browser/password_manager/password_store_gnome.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698