| 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_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/memory/ref_counted.h" |  10 #include "base/memory/ref_counted.h" | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
|  24  |  24  | 
|  25   // DevToolsClientHost, called when the tab inspected by this client is |  25   // DevToolsClientHost, called when the tab inspected by this client is | 
|  26   // closing. |  26   // closing. | 
|  27   virtual void InspectedContentsClosing() OVERRIDE; |  27   virtual void InspectedContentsClosing() OVERRIDE; | 
|  28  |  28  | 
|  29   // DevToolsClientHost, called to dispatch a message on this client. |  29   // DevToolsClientHost, called to dispatch a message on this client. | 
|  30   virtual void DispatchOnInspectorFrontend(const std::string& message) OVERRIDE; |  30   virtual void DispatchOnInspectorFrontend(const std::string& message) OVERRIDE; | 
|  31  |  31  | 
|  32   virtual void ContentsReplaced(content::WebContents* new_contents) OVERRIDE; |  32   virtual void ContentsReplaced(content::WebContents* new_contents) OVERRIDE; | 
|  33  |  33  | 
 |  34   virtual void ReplacedWithAnotherClient() OVERRIDE; | 
 |  35  | 
|  34  private: |  36  private: | 
|  35   virtual void FrameNavigating(const std::string& url) OVERRIDE {} |  37   virtual void FrameNavigating(const std::string& url) OVERRIDE {} | 
|  36  |  38  | 
|  37   // ID of the tab we are monitoring. |  39   // ID of the tab we are monitoring. | 
|  38   int tab_id_; |  40   int tab_id_; | 
|  39  |  41  | 
|  40   scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; |  42   scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; | 
|  41  |  43  | 
|  42   // Profile that owns our tab |  44   // Profile that owns our tab | 
|  43   Profile* profile_; |  45   Profile* profile_; | 
|  44  |  46  | 
|  45   // 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, | 
|  46   // so we store the various event names in each bridge. |  48   // so we store the various event names in each bridge. | 
|  47   const std::string on_page_event_name_; |  49   const std::string on_page_event_name_; | 
|  48   const std::string on_tab_close_event_name_; |  50   const std::string on_tab_close_event_name_; | 
|  49  |  51  | 
|  50   DISALLOW_COPY_AND_ASSIGN(ExtensionDevToolsBridge); |  52   DISALLOW_COPY_AND_ASSIGN(ExtensionDevToolsBridge); | 
|  51 }; |  53 }; | 
|  52  |  54  | 
|  53 #endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_DEVTOOLS_BRIDGE_H_ |  55 #endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_DEVTOOLS_BRIDGE_H_ | 
| OLD | NEW |