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/compiler_specific.h" |
12 #include "base/hash_tables.h" | 13 #include "base/hash_tables.h" |
13 #include "content/browser/debugger/devtools_client_host.h" | 14 #include "content/browser/debugger/devtools_client_host.h" |
14 | 15 |
15 class DebuggerRemoteService; | 16 class DebuggerRemoteService; |
16 class DevToolsClientHost; | 17 class DevToolsClientHost; |
17 class DevToolsClientHostImpl; | 18 class DevToolsClientHostImpl; |
18 class TabContentsWrapper; | 19 class TabContentsWrapper; |
19 | 20 |
20 // Proxies debugged tabs' TabContentsWrapper using their UIDs. | 21 // Proxies debugged tabs' TabContentsWrapper using their UIDs. |
21 // Keeps track of tabs being debugged so that we can detach from | 22 // Keeps track of tabs being debugged so that we can detach from |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 InspectableTabProxy::IdToClientHostMap* map); | 66 InspectableTabProxy::IdToClientHostMap* map); |
66 virtual ~DevToolsClientHostImpl(); | 67 virtual ~DevToolsClientHostImpl(); |
67 | 68 |
68 DebuggerRemoteService* debugger_remote_service() { | 69 DebuggerRemoteService* debugger_remote_service() { |
69 return service_; | 70 return service_; |
70 } | 71 } |
71 | 72 |
72 void CloseImpl(); | 73 void CloseImpl(); |
73 | 74 |
74 // DevToolsClientHost interface | 75 // DevToolsClientHost interface |
75 virtual void InspectedTabClosing(); | 76 virtual void InspectedTabClosing() OVERRIDE; |
76 virtual void SendMessageToClient(const IPC::Message& msg); | 77 virtual void SendMessageToClient(const IPC::Message& msg) OVERRIDE; |
77 virtual void TabReplaced(TabContents* new_tab); | 78 virtual void TabReplaced(TabContents* new_tab) OVERRIDE; |
78 | 79 |
79 private: | 80 private: |
80 // Message handling routines | 81 // Message handling routines |
81 void OnDebuggerOutput(const std::string& msg); | 82 void OnDebuggerOutput(const std::string& msg); |
82 virtual void FrameNavigating(const std::string& url); | 83 virtual void FrameNavigating(const std::string& url) OVERRIDE; |
83 void TabClosed(); | 84 void TabClosed(); |
84 | 85 |
85 int32 id_; | 86 int32 id_; |
86 DebuggerRemoteService* service_; | 87 DebuggerRemoteService* service_; |
87 InspectableTabProxy::IdToClientHostMap* map_; | 88 InspectableTabProxy::IdToClientHostMap* map_; |
88 }; | 89 }; |
89 | 90 |
90 #endif // CHROME_BROWSER_DEBUGGER_INSPECTABLE_TAB_PROXY_H_ | 91 #endif // CHROME_BROWSER_DEBUGGER_INSPECTABLE_TAB_PROXY_H_ |
OLD | NEW |