| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
| 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 class AutomationProviderGetPasswordsObserver : public PasswordStoreConsumer { | 1130 class AutomationProviderGetPasswordsObserver : public PasswordStoreConsumer { |
| 1131 public: | 1131 public: |
| 1132 AutomationProviderGetPasswordsObserver( | 1132 AutomationProviderGetPasswordsObserver( |
| 1133 AutomationProvider* provider, | 1133 AutomationProvider* provider, |
| 1134 IPC::Message* reply_message); | 1134 IPC::Message* reply_message); |
| 1135 virtual ~AutomationProviderGetPasswordsObserver(); | 1135 virtual ~AutomationProviderGetPasswordsObserver(); |
| 1136 | 1136 |
| 1137 // PasswordStoreConsumer implementation. | 1137 // PasswordStoreConsumer implementation. |
| 1138 virtual void OnPasswordStoreRequestDone( | 1138 virtual void OnPasswordStoreRequestDone( |
| 1139 CancelableRequestProvider::Handle handle, | 1139 CancelableRequestProvider::Handle handle, |
| 1140 const std::vector<content::PasswordForm*>& result) OVERRIDE; | 1140 const std::vector<autofill::PasswordForm*>& result) OVERRIDE; |
| 1141 virtual void OnGetPasswordStoreResults( | 1141 virtual void OnGetPasswordStoreResults( |
| 1142 const std::vector<content::PasswordForm*>& results) OVERRIDE; | 1142 const std::vector<autofill::PasswordForm*>& results) OVERRIDE; |
| 1143 | 1143 |
| 1144 private: | 1144 private: |
| 1145 base::WeakPtr<AutomationProvider> provider_; | 1145 base::WeakPtr<AutomationProvider> provider_; |
| 1146 scoped_ptr<IPC::Message> reply_message_; | 1146 scoped_ptr<IPC::Message> reply_message_; |
| 1147 }; | 1147 }; |
| 1148 | 1148 |
| 1149 // Observes when login entries stored in the password store are changed. The | 1149 // Observes when login entries stored in the password store are changed. The |
| 1150 // notifications are sent on the DB thread, the thread that interacts with the | 1150 // notifications are sent on the DB thread, the thread that interacts with the |
| 1151 // web database. | 1151 // web database. |
| 1152 class PasswordStoreLoginsChangedObserver | 1152 class PasswordStoreLoginsChangedObserver |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1653 base::WeakPtr<AutomationProvider> automation_; | 1653 base::WeakPtr<AutomationProvider> automation_; |
| 1654 scoped_ptr<IPC::Message> reply_message_; | 1654 scoped_ptr<IPC::Message> reply_message_; |
| 1655 int new_window_id_; | 1655 int new_window_id_; |
| 1656 int num_loads_; | 1656 int num_loads_; |
| 1657 | 1657 |
| 1658 DISALLOW_COPY_AND_ASSIGN( | 1658 DISALLOW_COPY_AND_ASSIGN( |
| 1659 BrowserOpenedWithExistingProfileNotificationObserver); | 1659 BrowserOpenedWithExistingProfileNotificationObserver); |
| 1660 }; | 1660 }; |
| 1661 | 1661 |
| 1662 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1662 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
| OLD | NEW |