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

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

Issue 9665007: Profile refactoring: Remove all PasswordStore code from the Profile interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win and Mac Created 8 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PASSWORD_STORE_MAC_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 // http://dev.chromium.org/developers/design-documents/os-x-password-manager-key chain-integration 27 // http://dev.chromium.org/developers/design-documents/os-x-password-manager-key chain-integration
28 class PasswordStoreMac : public PasswordStore { 28 class PasswordStoreMac : public PasswordStore {
29 public: 29 public:
30 // Takes ownership of |keychain| and |login_db|, both of which must be 30 // Takes ownership of |keychain| and |login_db|, both of which must be
31 // non-NULL. 31 // non-NULL.
32 PasswordStoreMac(MacKeychain* keychain, LoginDatabase* login_db); 32 PasswordStoreMac(MacKeychain* keychain, LoginDatabase* login_db);
33 33
34 // Initializes |thread_| and |notification_service_|. 34 // Initializes |thread_| and |notification_service_|.
35 virtual bool Init() OVERRIDE; 35 virtual bool Init() OVERRIDE;
36 36
37 virtual void ShutdownOnUIThread() OVERRIDE;
38
37 protected: 39 protected:
38 virtual ~PasswordStoreMac(); 40 virtual ~PasswordStoreMac();
39 41
40 virtual void ScheduleTask(const base::Closure& task) OVERRIDE; 42 virtual void ScheduleTask(const base::Closure& task) OVERRIDE;
41 43
42 private: 44 private:
43 virtual void ReportMetricsImpl() OVERRIDE; 45 virtual void ReportMetricsImpl() OVERRIDE;
44 virtual void AddLoginImpl(const webkit::forms::PasswordForm& form) OVERRIDE; 46 virtual void AddLoginImpl(const webkit::forms::PasswordForm& form) OVERRIDE;
45 virtual void UpdateLoginImpl( 47 virtual void UpdateLoginImpl(
46 const webkit::forms::PasswordForm& form) OVERRIDE; 48 const webkit::forms::PasswordForm& form) OVERRIDE;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 scoped_ptr<base::Thread> thread_; 93 scoped_ptr<base::Thread> thread_;
92 94
93 // Since we aren't running on a well-known thread but still want to send out 95 // Since we aren't running on a well-known thread but still want to send out
94 // notifications, we need to run our own service. 96 // notifications, we need to run our own service.
95 scoped_ptr<content::NotificationService> notification_service_; 97 scoped_ptr<content::NotificationService> notification_service_;
96 98
97 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); 99 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac);
98 }; 100 };
99 101
100 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ 102 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698