| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" // NOLINT | 9 #include "build/build_config.h" // NOLINT |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 MEDIUM_FONT = 16, | 41 MEDIUM_FONT = 16, |
| 42 LARGE_FONT = 24, | 42 LARGE_FONT = 24, |
| 43 LARGEST_FONT = 36 | 43 LARGEST_FONT = 36 |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 class TabProxy : public AutomationResourceProxy, | 46 class TabProxy : public AutomationResourceProxy, |
| 47 public JavaScriptExecutionController { | 47 public JavaScriptExecutionController { |
| 48 public: | 48 public: |
| 49 class TabProxyDelegate { | 49 class TabProxyDelegate { |
| 50 public: | 50 public: |
| 51 virtual bool OnMessageReceived(TabProxy* tab, const IPC::Message& msg) { | 51 virtual bool OnMessageReceived(TabProxy* tab, const IPC::Message& msg) {} |
| 52 return false; | |
| 53 } | |
| 54 virtual void OnChannelError(TabProxy* tab) {} | 52 virtual void OnChannelError(TabProxy* tab) {} |
| 55 | 53 |
| 56 protected: | 54 protected: |
| 57 virtual ~TabProxyDelegate() {} | 55 virtual ~TabProxyDelegate() {} |
| 58 }; | 56 }; |
| 59 | 57 |
| 60 TabProxy(AutomationMessageSender* sender, | 58 TabProxy(AutomationMessageSender* sender, |
| 61 AutomationHandleTracker* tracker, | 59 AutomationHandleTracker* tracker, |
| 62 int handle); | 60 int handle); |
| 63 | 61 |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 // purposes. | 423 // purposes. |
| 426 void LastObjectRemoved(); | 424 void LastObjectRemoved(); |
| 427 | 425 |
| 428 private: | 426 private: |
| 429 Lock list_lock_; // Protects the observers_list_. | 427 Lock list_lock_; // Protects the observers_list_. |
| 430 ObserverList<TabProxyDelegate> observers_list_; | 428 ObserverList<TabProxyDelegate> observers_list_; |
| 431 DISALLOW_COPY_AND_ASSIGN(TabProxy); | 429 DISALLOW_COPY_AND_ASSIGN(TabProxy); |
| 432 }; | 430 }; |
| 433 | 431 |
| 434 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 432 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
| OLD | NEW |