| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 void UnregisterAsDevToolsClientHost(); | 26 void UnregisterAsDevToolsClientHost(); |
| 27 | 27 |
| 28 // DevToolsClientHost, called when the tab inspected by this client is | 28 // DevToolsClientHost, called when the tab inspected by this client is |
| 29 // closing. | 29 // closing. |
| 30 virtual void InspectedTabClosing(); | 30 virtual void InspectedTabClosing(); |
| 31 | 31 |
| 32 // DevToolsClientHost, called to send a message to this host. | 32 // DevToolsClientHost, called to send a message to this host. |
| 33 virtual void SendMessageToClient(const IPC::Message& msg); | 33 virtual void SendMessageToClient(const IPC::Message& msg); |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 void OnRpcMessage(const DevToolsMessageData& data); | 36 void OnDispatchToAPU(const std::string& data); |
| 37 | 37 |
| 38 // ID of the tab we are monitoring. | 38 // ID of the tab we are monitoring. |
| 39 int tab_id_; | 39 int tab_id_; |
| 40 | 40 |
| 41 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; | 41 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; |
| 42 scoped_refptr<ExtensionMessageService> extension_message_service_; | 42 scoped_refptr<ExtensionMessageService> extension_message_service_; |
| 43 | 43 |
| 44 // Profile that owns our tab | 44 // Profile that owns our tab |
| 45 Profile* profile_; | 45 Profile* profile_; |
| 46 | 46 |
| 47 // The names of the events fired at extensions depend on the tab id, | 47 // The names of the events fired at extensions depend on the tab id, |
| 48 // so we store the various event names in each bridge. | 48 // so we store the various event names in each bridge. |
| 49 const std::string on_page_event_name_; | 49 const std::string on_page_event_name_; |
| 50 const std::string on_tab_close_event_name_; | 50 const std::string on_tab_close_event_name_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(ExtensionDevToolsBridge); | 52 DISALLOW_COPY_AND_ASSIGN(ExtensionDevToolsBridge); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DEVTOOLS_BRIDGE_H_ | 55 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DEVTOOLS_BRIDGE_H_ |
| 56 | 56 |
| OLD | NEW |