| 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 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1180 // Allows automation provider to wait for getting passwords to finish. | 1180 // Allows automation provider to wait for getting passwords to finish. | 
| 1181 class AutomationProviderGetPasswordsObserver : public PasswordStoreConsumer { | 1181 class AutomationProviderGetPasswordsObserver : public PasswordStoreConsumer { | 
| 1182  public: | 1182  public: | 
| 1183   AutomationProviderGetPasswordsObserver( | 1183   AutomationProviderGetPasswordsObserver( | 
| 1184       AutomationProvider* provider, | 1184       AutomationProvider* provider, | 
| 1185       IPC::Message* reply_message); | 1185       IPC::Message* reply_message); | 
| 1186   virtual ~AutomationProviderGetPasswordsObserver(); | 1186   virtual ~AutomationProviderGetPasswordsObserver(); | 
| 1187 | 1187 | 
| 1188   virtual void OnPasswordStoreRequestDone( | 1188   virtual void OnPasswordStoreRequestDone( | 
| 1189       CancelableRequestProvider::Handle handle, | 1189       CancelableRequestProvider::Handle handle, | 
| 1190       const std::vector<webkit::forms::PasswordForm*>& result) OVERRIDE; | 1190       const std::vector<content::PasswordForm*>& result) OVERRIDE; | 
| 1191 | 1191 | 
| 1192  private: | 1192  private: | 
| 1193   base::WeakPtr<AutomationProvider> provider_; | 1193   base::WeakPtr<AutomationProvider> provider_; | 
| 1194   scoped_ptr<IPC::Message> reply_message_; | 1194   scoped_ptr<IPC::Message> reply_message_; | 
| 1195 }; | 1195 }; | 
| 1196 | 1196 | 
| 1197 // Observes when login entries stored in the password store are changed.  The | 1197 // Observes when login entries stored in the password store are changed.  The | 
| 1198 // notifications are sent on the DB thread, the thread that interacts with the | 1198 // notifications are sent on the DB thread, the thread that interacts with the | 
| 1199 // web database. | 1199 // web database. | 
| 1200 class PasswordStoreLoginsChangedObserver | 1200 class PasswordStoreLoginsChangedObserver | 
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1827   base::WeakPtr<AutomationProvider> automation_; | 1827   base::WeakPtr<AutomationProvider> automation_; | 
| 1828   scoped_ptr<IPC::Message> reply_message_; | 1828   scoped_ptr<IPC::Message> reply_message_; | 
| 1829   int new_window_id_; | 1829   int new_window_id_; | 
| 1830   int num_loads_; | 1830   int num_loads_; | 
| 1831 | 1831 | 
| 1832   DISALLOW_COPY_AND_ASSIGN( | 1832   DISALLOW_COPY_AND_ASSIGN( | 
| 1833       BrowserOpenedWithExistingProfileNotificationObserver); | 1833       BrowserOpenedWithExistingProfileNotificationObserver); | 
| 1834 }; | 1834 }; | 
| 1835 | 1835 | 
| 1836 #endif  // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1836 #endif  // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 
| OLD | NEW | 
|---|