OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_TEST_AUTOMATION_TAB_PROXY_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
11 #include <wtypes.h> | 11 #include <wtypes.h> |
12 #endif | 12 #endif |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 #include <vector> | 15 #include <vector> |
16 | 16 |
17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
18 #include "chrome/browser/download/save_package.h" | 18 #include "chrome/browser/download/save_package.h" |
19 #include "chrome/browser/tab_contents/navigation_entry.h" | 19 #include "chrome/browser/tab_contents/navigation_entry.h" |
20 #include "chrome/browser/tab_contents/security_style.h" | 20 #include "chrome/browser/tab_contents/security_style.h" |
21 #include "chrome/test/automation/automation_constants.h" | 21 #include "chrome/test/automation/automation_constants.h" |
22 #include "chrome/test/automation/automation_handle_tracker.h" | 22 #include "chrome/test/automation/automation_handle_tracker.h" |
23 | 23 |
24 class ConstrainedWindowProxy; | 24 class ConstrainedWindowProxy; |
25 class GURL; | 25 class GURL; |
26 class Value; | 26 class Value; |
27 class IPC::Message; | 27 namespace IPC { |
| 28 class Message; |
| 29 }; |
28 | 30 |
29 enum FindInPageDirection { BACK = 0, FWD = 1 }; | 31 enum FindInPageDirection { BACK = 0, FWD = 1 }; |
30 enum FindInPageCase { IGNORE_CASE = 0, CASE_SENSITIVE = 1 }; | 32 enum FindInPageCase { IGNORE_CASE = 0, CASE_SENSITIVE = 1 }; |
31 | 33 |
32 class TabProxy : public AutomationResourceProxy { | 34 class TabProxy : public AutomationResourceProxy { |
33 public: | 35 public: |
34 class TabProxyDelegate { | 36 class TabProxyDelegate { |
35 public: | 37 public: |
36 virtual void OnMessageReceived(TabProxy* tab, const IPC::Message& msg) {} | 38 virtual void OnMessageReceived(TabProxy* tab, const IPC::Message& msg) {} |
37 }; | 39 }; |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 void OnMessageReceived(const IPC::Message& message); | 309 void OnMessageReceived(const IPC::Message& message); |
308 protected: | 310 protected: |
309 virtual ~TabProxy() {} | 311 virtual ~TabProxy() {} |
310 private: | 312 private: |
311 Lock list_lock_; // Protects the observers_list_. | 313 Lock list_lock_; // Protects the observers_list_. |
312 ObserverList<TabProxyDelegate> observers_list_; | 314 ObserverList<TabProxyDelegate> observers_list_; |
313 DISALLOW_COPY_AND_ASSIGN(TabProxy); | 315 DISALLOW_COPY_AND_ASSIGN(TabProxy); |
314 }; | 316 }; |
315 | 317 |
316 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 318 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
OLD | NEW |