Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: chrome/renderer/devtools_agent.h

Issue 343075: DevTools: support cross-navigation instrumentation. (Closed)
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/devtools_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector>
10 11
11 #include "base/basictypes.h" 12 #include "base/basictypes.h"
12 #include "webkit/api/public/WebDevToolsAgentClient.h" 13 #include "webkit/api/public/WebDevToolsAgentClient.h"
13 14
14 namespace IPC { 15 namespace IPC {
15 class Message; 16 class Message;
16 } 17 }
17 18
18 namespace WebKit { 19 namespace WebKit {
19 class WebDevToolsAgent; 20 class WebDevToolsAgent;
(...skipping 16 matching lines...) Expand all
36 virtual bool OnMessageReceived(const IPC::Message& message); 37 virtual bool OnMessageReceived(const IPC::Message& message);
37 38
38 // WebDevToolsAgentClient implementation 39 // WebDevToolsAgentClient implementation
39 virtual void sendMessageToFrontend(const WebKit::WebString& class_name, 40 virtual void sendMessageToFrontend(const WebKit::WebString& class_name,
40 const WebKit::WebString& method_name, 41 const WebKit::WebString& method_name,
41 const WebKit::WebString& param1, 42 const WebKit::WebString& param1,
42 const WebKit::WebString& param2, 43 const WebKit::WebString& param2,
43 const WebKit::WebString& param3); 44 const WebKit::WebString& param3);
44 virtual int hostIdentifier(); 45 virtual int hostIdentifier();
45 virtual void forceRepaint(); 46 virtual void forceRepaint();
47 virtual void runtimeFeatureStateChanged(const WebKit::WebString& feature,
48 bool enabled);
46 49
47 // Returns agent instance for its host id. 50 // Returns agent instance for its host id.
48 static DevToolsAgent* FromHostId(int host_id); 51 static DevToolsAgent* FromHostId(int host_id);
49 52
50 RenderView* render_view() { return view_; } 53 RenderView* render_view() { return render_view_; }
51 54
52 WebKit::WebDevToolsAgent* GetWebAgent(); 55 WebKit::WebDevToolsAgent* GetWebAgent();
53 56
54 private: 57 private:
55 friend class DevToolsAgentFilter; 58 friend class DevToolsAgentFilter;
56 59
57 void OnAttach(); 60 void OnAttach(const std::vector<std::string>& runtime_features);
58 void OnDetach(); 61 void OnDetach();
59 void OnRpcMessage(const std::string& class_name, 62 void OnRpcMessage(const std::string& class_name,
60 const std::string& method_name, 63 const std::string& method_name,
61 const std::string& param1, 64 const std::string& param1,
62 const std::string& param2, 65 const std::string& param2,
63 const std::string& param3); 66 const std::string& param3);
64 void OnInspectElement(int x, int y); 67 void OnInspectElement(int x, int y);
65 void OnSetApuAgentEnabled(bool enabled); 68 void OnSetApuAgentEnabled(bool enabled);
66 69
67 static std::map<int, DevToolsAgent*> agent_for_routing_id_; 70 static std::map<int, DevToolsAgent*> agent_for_routing_id_;
68 71
69 int routing_id_; // View routing id that we can access from IO thread. 72 int routing_id_; // View routing id that we can access from IO thread.
70 RenderView* view_; 73 RenderView* render_view_;
71 74
72 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); 75 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent);
73 }; 76 };
74 77
75 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ 78 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/renderer/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698