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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 IPC::Message* reply_message, | 224 IPC::Message* reply_message, |
225 int number_of_navigations, | 225 int number_of_navigations, |
226 bool include_current_navigation, | 226 bool include_current_navigation, |
227 bool use_json_interface); | 227 bool use_json_interface); |
228 virtual ~NavigationNotificationObserver(); | 228 virtual ~NavigationNotificationObserver(); |
229 | 229 |
230 virtual void Observe(int type, | 230 virtual void Observe(int type, |
231 const content::NotificationSource& source, | 231 const content::NotificationSource& source, |
232 const content::NotificationDetails& details); | 232 const content::NotificationDetails& details); |
233 | 233 |
234 private: | |
235 void ConditionMet(AutomationMsg_NavigationResponseValues navigation_result); | 234 void ConditionMet(AutomationMsg_NavigationResponseValues navigation_result); |
236 | 235 |
| 236 private: |
237 content::NotificationRegistrar registrar_; | 237 content::NotificationRegistrar registrar_; |
238 base::WeakPtr<AutomationProvider> automation_; | 238 base::WeakPtr<AutomationProvider> automation_; |
239 scoped_ptr<IPC::Message> reply_message_; | 239 scoped_ptr<IPC::Message> reply_message_; |
240 content::NavigationController* controller_; | 240 content::NavigationController* controller_; |
241 int navigations_remaining_; | 241 int navigations_remaining_; |
242 bool navigation_started_; | 242 bool navigation_started_; |
243 bool use_json_interface_; | 243 bool use_json_interface_; |
244 | 244 |
245 DISALLOW_COPY_AND_ASSIGN(NavigationNotificationObserver); | 245 DISALLOW_COPY_AND_ASSIGN(NavigationNotificationObserver); |
246 }; | 246 }; |
(...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1891 private: | 1891 private: |
1892 base::WeakPtr<AutomationProvider> automation_; | 1892 base::WeakPtr<AutomationProvider> automation_; |
1893 scoped_ptr<IPC::Message> reply_message_; | 1893 scoped_ptr<IPC::Message> reply_message_; |
1894 std::string extension_id_; | 1894 std::string extension_id_; |
1895 content::NotificationRegistrar registrar_; | 1895 content::NotificationRegistrar registrar_; |
1896 | 1896 |
1897 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); | 1897 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); |
1898 }; | 1898 }; |
1899 | 1899 |
1900 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1900 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
OLD | NEW |