| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_RENDERER_DEVTOOLS_AGENT_H_ | 5 #ifndef CHROME_RENDERER_DEVTOOLS_AGENT_H_ |
| 6 #define CHROME_RENDERER_DEVTOOLS_AGENT_H_ | 6 #define CHROME_RENDERER_DEVTOOLS_AGENT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "chrome/common/devtools_messages.h" | |
| 14 #include "chrome/renderer/render_view_observer.h" | 13 #include "chrome/renderer/render_view_observer.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgentClien
t.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgentClien
t.h" |
| 16 | 15 |
| 17 namespace WebKit { | 16 namespace WebKit { |
| 18 class WebDevToolsAgent; | 17 class WebDevToolsAgent; |
| 19 } | 18 } |
| 20 | 19 |
| 21 struct DevToolsMessageData; | 20 struct DevToolsMessageData; |
| 22 | 21 |
| 22 typedef std::map<std::string, std::string> DevToolsRuntimeProperties; |
| 23 |
| 23 // DevToolsAgent belongs to the inspectable RenderView and provides Glue's | 24 // DevToolsAgent belongs to the inspectable RenderView and provides Glue's |
| 24 // agents with the communication capabilities. All messages from/to Glue's | 25 // agents with the communication capabilities. All messages from/to Glue's |
| 25 // agents infrastructure are flowing through this communication agent. | 26 // agents infrastructure are flowing through this communication agent. |
| 26 // There is a corresponding DevToolsClient object on the client side. | 27 // There is a corresponding DevToolsClient object on the client side. |
| 27 class DevToolsAgent : public RenderViewObserver, | 28 class DevToolsAgent : public RenderViewObserver, |
| 28 public WebKit::WebDevToolsAgentClient { | 29 public WebKit::WebDevToolsAgentClient { |
| 29 public: | 30 public: |
| 30 explicit DevToolsAgent(RenderView* render_view); | 31 explicit DevToolsAgent(RenderView* render_view); |
| 31 virtual ~DevToolsAgent(); | 32 virtual ~DevToolsAgent(); |
| 32 | 33 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void OnNavigate(); | 65 void OnNavigate(); |
| 65 | 66 |
| 66 static std::map<int, DevToolsAgent*> agent_for_routing_id_; | 67 static std::map<int, DevToolsAgent*> agent_for_routing_id_; |
| 67 | 68 |
| 68 bool expose_v8_debugger_protocol_; | 69 bool expose_v8_debugger_protocol_; |
| 69 | 70 |
| 70 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); | 71 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ | 74 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ |
| OLD | NEW |