| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_EXTENSIONS_EXTENSION_DEVTOOLS_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DEVTOOLS_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DEVTOOLS_BRIDGE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DEVTOOLS_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // DevToolsClientHost, called when the tab inspected by this client is | 27 // DevToolsClientHost, called when the tab inspected by this client is |
| 28 // closing. | 28 // closing. |
| 29 virtual void InspectedTabClosing(); | 29 virtual void InspectedTabClosing(); |
| 30 | 30 |
| 31 // DevToolsClientHost, called to send a message to this host. | 31 // DevToolsClientHost, called to send a message to this host. |
| 32 virtual void SendMessageToClient(const IPC::Message& msg); | 32 virtual void SendMessageToClient(const IPC::Message& msg); |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 void OnRpcMessage(const std::string& class_name, | 35 void OnRpcMessage(const std::string& class_name, |
| 36 const std::string& message_name, | 36 const std::string& message_name, |
| 37 const std::string& msg); | 37 const std::string& param1, |
| 38 const std::string& param2, |
| 39 const std::string& param3); |
| 38 | 40 |
| 39 // ID of the tab we are monitoring. | 41 // ID of the tab we are monitoring. |
| 40 int tab_id_; | 42 int tab_id_; |
| 41 // Host of the tab we are monitoring, NULL if not monitoring anything. | 43 // Host of the tab we are monitoring, NULL if not monitoring anything. |
| 42 RenderViewHost* inspected_rvh_; | 44 RenderViewHost* inspected_rvh_; |
| 43 | 45 |
| 44 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; | 46 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; |
| 45 scoped_refptr<ExtensionMessageService> extension_message_service_; | 47 scoped_refptr<ExtensionMessageService> extension_message_service_; |
| 46 | 48 |
| 47 // Profile that owns our tab | 49 // Profile that owns our tab |
| 48 Profile* profile_; | 50 Profile* profile_; |
| 49 | 51 |
| 50 // The names of the events fired at extensions depend on the tab id, | 52 // The names of the events fired at extensions depend on the tab id, |
| 51 // so we store the various event names in each bridge. | 53 // so we store the various event names in each bridge. |
| 52 const std::string on_page_event_name_; | 54 const std::string on_page_event_name_; |
| 53 const std::string on_tab_url_change_event_name_; | 55 const std::string on_tab_url_change_event_name_; |
| 54 const std::string on_tab_close_event_name_; | 56 const std::string on_tab_close_event_name_; |
| 55 | 57 |
| 56 DISALLOW_COPY_AND_ASSIGN(ExtensionDevToolsBridge); | 58 DISALLOW_COPY_AND_ASSIGN(ExtensionDevToolsBridge); |
| 57 }; | 59 }; |
| 58 | 60 |
| 59 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DEVTOOLS_BRIDGE_H_ | 61 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DEVTOOLS_BRIDGE_H_ |
| 60 | 62 |
| OLD | NEW |