OLD | NEW |
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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1210 // Allows automation provider to wait for getting passwords to finish. | 1210 // Allows automation provider to wait for getting passwords to finish. |
1211 class AutomationProviderGetPasswordsObserver : public PasswordStoreConsumer { | 1211 class AutomationProviderGetPasswordsObserver : public PasswordStoreConsumer { |
1212 public: | 1212 public: |
1213 AutomationProviderGetPasswordsObserver( | 1213 AutomationProviderGetPasswordsObserver( |
1214 AutomationProvider* provider, | 1214 AutomationProvider* provider, |
1215 IPC::Message* reply_message); | 1215 IPC::Message* reply_message); |
1216 virtual ~AutomationProviderGetPasswordsObserver(); | 1216 virtual ~AutomationProviderGetPasswordsObserver(); |
1217 | 1217 |
1218 virtual void OnPasswordStoreRequestDone( | 1218 virtual void OnPasswordStoreRequestDone( |
1219 CancelableRequestProvider::Handle handle, | 1219 CancelableRequestProvider::Handle handle, |
1220 const std::vector<webkit_glue::PasswordForm*>& result); | 1220 const std::vector<webkit::forms::PasswordForm*>& result) OVERRIDE; |
1221 | 1221 |
1222 private: | 1222 private: |
1223 base::WeakPtr<AutomationProvider> provider_; | 1223 base::WeakPtr<AutomationProvider> provider_; |
1224 scoped_ptr<IPC::Message> reply_message_; | 1224 scoped_ptr<IPC::Message> reply_message_; |
1225 }; | 1225 }; |
1226 | 1226 |
1227 // Observes when login entries stored in the password store are changed. The | 1227 // Observes when login entries stored in the password store are changed. The |
1228 // notifications are sent on the DB thread, the thread that interacts with the | 1228 // notifications are sent on the DB thread, the thread that interacts with the |
1229 // web database. | 1229 // web database. |
1230 class PasswordStoreLoginsChangedObserver | 1230 class PasswordStoreLoginsChangedObserver |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1858 private: | 1858 private: |
1859 base::WeakPtr<AutomationProvider> automation_; | 1859 base::WeakPtr<AutomationProvider> automation_; |
1860 scoped_ptr<IPC::Message> reply_message_; | 1860 scoped_ptr<IPC::Message> reply_message_; |
1861 std::string extension_id_; | 1861 std::string extension_id_; |
1862 content::NotificationRegistrar registrar_; | 1862 content::NotificationRegistrar registrar_; |
1863 | 1863 |
1864 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); | 1864 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); |
1865 }; | 1865 }; |
1866 | 1866 |
1867 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1867 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
OLD | NEW |