| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Reports usage metrics for the database. | 78 // Reports usage metrics for the database. |
| 79 virtual void ReportMetrics(); | 79 virtual void ReportMetrics(); |
| 80 | 80 |
| 81 protected: | 81 protected: |
| 82 friend class base::RefCountedThreadSafe<PasswordStore>; | 82 friend class base::RefCountedThreadSafe<PasswordStore>; |
| 83 friend class browser_sync::PasswordDataTypeController; | 83 friend class browser_sync::PasswordDataTypeController; |
| 84 friend class browser_sync::PasswordModelAssociator; | 84 friend class browser_sync::PasswordModelAssociator; |
| 85 friend class browser_sync::PasswordModelWorker; | 85 friend class browser_sync::PasswordModelWorker; |
| 86 friend class LivePasswordsSyncTest; | 86 friend class LivePasswordsSyncTest; |
| 87 | 87 |
| 88 virtual ~PasswordStore() {} | 88 virtual ~PasswordStore(); |
| 89 | 89 |
| 90 // Simple container class that represents a login lookup request. | 90 // Simple container class that represents a login lookup request. |
| 91 class GetLoginsRequest { | 91 class GetLoginsRequest { |
| 92 public: | 92 public: |
| 93 GetLoginsRequest(PasswordStoreConsumer* c, | 93 GetLoginsRequest(PasswordStoreConsumer* c, |
| 94 int handle); | 94 int handle); |
| 95 | 95 |
| 96 // The consumer to notify when this request is complete. | 96 // The consumer to notify when this request is complete. |
| 97 PasswordStoreConsumer* consumer; | 97 PasswordStoreConsumer* consumer; |
| 98 // A unique handle for the request | 98 // A unique handle for the request |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 int handle_; | 158 int handle_; |
| 159 | 159 |
| 160 // List of pending request handles. Handles are removed from the set when | 160 // List of pending request handles. Handles are removed from the set when |
| 161 // they finish or are canceled. | 161 // they finish or are canceled. |
| 162 std::set<int> pending_requests_; | 162 std::set<int> pending_requests_; |
| 163 | 163 |
| 164 DISALLOW_COPY_AND_ASSIGN(PasswordStore); | 164 DISALLOW_COPY_AND_ASSIGN(PasswordStore); |
| 165 }; | 165 }; |
| 166 | 166 |
| 167 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ | 167 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ |
| OLD | NEW |