OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DEBUGGER_INSPECTABLE_TAB_PROXY_H_ | 5 #ifndef CHROME_BROWSER_DEBUGGER_INSPECTABLE_TAB_PROXY_H_ |
6 #define CHROME_BROWSER_DEBUGGER_INSPECTABLE_TAB_PROXY_H_ | 6 #define CHROME_BROWSER_DEBUGGER_INSPECTABLE_TAB_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/hash_tables.h" | 12 #include "base/hash_tables.h" |
13 #include "content/browser/debugger/devtools_client_host.h" | 13 #include "content/browser/debugger/devtools_client_host.h" |
14 | 14 |
15 class DebuggerRemoteService; | 15 class DebuggerRemoteService; |
16 class DevToolsClientHost; | 16 class DevToolsClientHost; |
17 class DevToolsClientHostImpl; | 17 class DevToolsClientHostImpl; |
18 struct DevToolsMessageData; | |
19 class TabContentsWrapper; | 18 class TabContentsWrapper; |
20 | 19 |
21 // Proxies debugged tabs' TabContentsWrapper using their UIDs. | 20 // Proxies debugged tabs' TabContentsWrapper using their UIDs. |
22 // Keeps track of tabs being debugged so that we can detach from | 21 // Keeps track of tabs being debugged so that we can detach from |
23 // them on remote debugger connection loss. | 22 // them on remote debugger connection loss. |
24 class InspectableTabProxy { | 23 class InspectableTabProxy { |
25 public: | 24 public: |
26 typedef base::hash_map<int32, TabContentsWrapper*> TabMap; | 25 typedef base::hash_map<int32, TabContentsWrapper*> TabMap; |
27 typedef base::hash_map<int32, DevToolsClientHostImpl*> IdToClientHostMap; | 26 typedef base::hash_map<int32, DevToolsClientHostImpl*> IdToClientHostMap; |
28 | 27 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 void OnDebuggerOutput(const std::string& msg); | 81 void OnDebuggerOutput(const std::string& msg); |
83 virtual void FrameNavigating(const std::string& url); | 82 virtual void FrameNavigating(const std::string& url); |
84 void TabClosed(); | 83 void TabClosed(); |
85 | 84 |
86 int32 id_; | 85 int32 id_; |
87 DebuggerRemoteService* service_; | 86 DebuggerRemoteService* service_; |
88 InspectableTabProxy::IdToClientHostMap* map_; | 87 InspectableTabProxy::IdToClientHostMap* map_; |
89 }; | 88 }; |
90 | 89 |
91 #endif // CHROME_BROWSER_DEBUGGER_INSPECTABLE_TAB_PROXY_H_ | 90 #endif // CHROME_BROWSER_DEBUGGER_INSPECTABLE_TAB_PROXY_H_ |
OLD | NEW |