OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 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 | 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_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 int handle; | 97 int handle; |
98 // The message loop that the request was made from. We send the result | 98 // The message loop that the request was made from. We send the result |
99 // back to the consumer in this same message loop. | 99 // back to the consumer in this same message loop. |
100 MessageLoop* message_loop; | 100 MessageLoop* message_loop; |
101 | 101 |
102 private: | 102 private: |
103 DISALLOW_COPY_AND_ASSIGN(GetLoginsRequest); | 103 DISALLOW_COPY_AND_ASSIGN(GetLoginsRequest); |
104 }; | 104 }; |
105 | 105 |
106 // Schedule the given task to be run in the PasswordStore's own thread. | 106 // Schedule the given task to be run in the PasswordStore's own thread. |
107 void ScheduleTask(Task* task); | 107 virtual void ScheduleTask(Task* task); |
108 | 108 |
109 // These will be run in PasswordStore's own thread. | 109 // These will be run in PasswordStore's own thread. |
110 // Synchronous implementation that reports usage metrics. | 110 // Synchronous implementation that reports usage metrics. |
111 virtual void ReportMetricsImpl() = 0; | 111 virtual void ReportMetricsImpl() = 0; |
112 // Synchronous implementation to add the given login. | 112 // Synchronous implementation to add the given login. |
113 virtual void AddLoginImpl(const webkit_glue::PasswordForm& form) = 0; | 113 virtual void AddLoginImpl(const webkit_glue::PasswordForm& form) = 0; |
114 // Synchronous implementation to update the given login. | 114 // Synchronous implementation to update the given login. |
115 virtual void UpdateLoginImpl(const webkit_glue::PasswordForm& form) = 0; | 115 virtual void UpdateLoginImpl(const webkit_glue::PasswordForm& form) = 0; |
116 // Synchronous implementation to remove the given login. | 116 // Synchronous implementation to remove the given login. |
117 virtual void RemoveLoginImpl(const webkit_glue::PasswordForm& form) = 0; | 117 virtual void RemoveLoginImpl(const webkit_glue::PasswordForm& form) = 0; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 int handle_; | 156 int handle_; |
157 | 157 |
158 // List of pending request handles. Handles are removed from the set when | 158 // List of pending request handles. Handles are removed from the set when |
159 // they finish or are canceled. | 159 // they finish or are canceled. |
160 std::set<int> pending_requests_; | 160 std::set<int> pending_requests_; |
161 | 161 |
162 DISALLOW_COPY_AND_ASSIGN(PasswordStore); | 162 DISALLOW_COPY_AND_ASSIGN(PasswordStore); |
163 }; | 163 }; |
164 | 164 |
165 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ | 165 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ |
OLD | NEW |