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

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

Issue 6542027: Out of line cleanups for Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Killer rebase. :( Created 9 years, 10 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 19 matching lines...) Expand all
30 // Initializes |thread_| and |notification_service_|. 30 // Initializes |thread_| and |notification_service_|.
31 virtual bool Init(); 31 virtual bool Init();
32 32
33 protected: 33 protected:
34 virtual ~PasswordStoreMac(); 34 virtual ~PasswordStoreMac();
35 35
36 // Schedules tasks on |thread_|. 36 // Schedules tasks on |thread_|.
37 virtual void ScheduleTask(Task* task); 37 virtual void ScheduleTask(Task* task);
38 38
39 private: 39 private:
40 void ReportMetricsImpl(); 40 virtual void ReportMetricsImpl();
41 void AddLoginImpl(const webkit_glue::PasswordForm& form); 41 virtual void AddLoginImpl(const webkit_glue::PasswordForm& form);
42 void UpdateLoginImpl(const webkit_glue::PasswordForm& form); 42 virtual void UpdateLoginImpl(const webkit_glue::PasswordForm& form);
43 void RemoveLoginImpl(const webkit_glue::PasswordForm& form); 43 virtual void RemoveLoginImpl(const webkit_glue::PasswordForm& form);
44 void RemoveLoginsCreatedBetweenImpl(const base::Time& delete_begin, 44 virtual void RemoveLoginsCreatedBetweenImpl(const base::Time& delete_begin,
45 const base::Time& delete_end); 45 const base::Time& delete_end);
46 void GetLoginsImpl(GetLoginsRequest* request, 46 virtual void GetLoginsImpl(GetLoginsRequest* request,
47 const webkit_glue::PasswordForm& form); 47 const webkit_glue::PasswordForm& form);
48 void GetAutofillableLoginsImpl(GetLoginsRequest* request); 48 virtual void GetAutofillableLoginsImpl(GetLoginsRequest* request);
49 void GetBlacklistLoginsImpl(GetLoginsRequest* request); 49 virtual void GetBlacklistLoginsImpl(GetLoginsRequest* request);
50 bool FillAutofillableLogins( 50 virtual bool FillAutofillableLogins(
51 std::vector<webkit_glue::PasswordForm*>* forms); 51 std::vector<webkit_glue::PasswordForm*>* forms);
52 bool FillBlacklistLogins( 52 virtual bool FillBlacklistLogins(
53 std::vector<webkit_glue::PasswordForm*>* forms); 53 std::vector<webkit_glue::PasswordForm*>* forms);
54 54
55 // Adds the given form to the Keychain if it's something we want to store 55 // Adds the given form to the Keychain if it's something we want to store
56 // there (i.e., not a blacklist entry). Returns true if the operation 56 // there (i.e., not a blacklist entry). Returns true if the operation
57 // succeeded (either we added successfully, or we didn't need to). 57 // succeeded (either we added successfully, or we didn't need to).
58 bool AddToKeychainIfNecessary(const webkit_glue::PasswordForm& form); 58 bool AddToKeychainIfNecessary(const webkit_glue::PasswordForm& form);
59 59
60 // Returns true if our database contains a form that exactly matches the given 60 // Returns true if our database contains a form that exactly matches the given
61 // keychain form. 61 // keychain form.
62 bool DatabaseHasFormMatchingKeychainForm( 62 bool DatabaseHasFormMatchingKeychainForm(
(...skipping 23 matching lines...) Expand all
86 scoped_ptr<base::Thread> thread_; 86 scoped_ptr<base::Thread> thread_;
87 87
88 // Since we aren't running on a well-known thread but still want to send out 88 // Since we aren't running on a well-known thread but still want to send out
89 // notifications, we need to run our own service. 89 // notifications, we need to run our own service.
90 scoped_ptr<NotificationService> notification_service_; 90 scoped_ptr<NotificationService> notification_service_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); 92 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac);
93 }; 93 };
94 94
95 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ 95 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/mach_broker_mac.cc ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698