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 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
12 #include "chrome/browser/extensions/extension_devtools_manager.h" | 11 #include "chrome/browser/extensions/extension_devtools_manager.h" |
13 #include "content/public/browser/devtools_client_host.h" | 12 #include "content/public/browser/devtools_client_host.h" |
14 | 13 |
15 class Profile; | 14 class Profile; |
16 | 15 |
17 // This class is a DevToolsClientHost that fires extension events. | 16 // This class is a DevToolsClientHost that fires extension events. |
(...skipping 27 matching lines...) Expand all Loading... |
45 | 44 |
46 // The names of the events fired at extensions depend on the tab id, | 45 // The names of the events fired at extensions depend on the tab id, |
47 // so we store the various event names in each bridge. | 46 // so we store the various event names in each bridge. |
48 const std::string on_page_event_name_; | 47 const std::string on_page_event_name_; |
49 const std::string on_tab_close_event_name_; | 48 const std::string on_tab_close_event_name_; |
50 | 49 |
51 DISALLOW_COPY_AND_ASSIGN(ExtensionDevToolsBridge); | 50 DISALLOW_COPY_AND_ASSIGN(ExtensionDevToolsBridge); |
52 }; | 51 }; |
53 | 52 |
54 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DEVTOOLS_BRIDGE_H_ | 53 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DEVTOOLS_BRIDGE_H_ |
OLD | NEW |