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

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

Issue 173480: DevTools: Remove base/values dependency from devtools. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/devtools_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 10
(...skipping 16 matching lines...) Expand all
27 virtual ~DevToolsAgent(); 27 virtual ~DevToolsAgent();
28 28
29 void OnNavigate(); 29 void OnNavigate();
30 30
31 // IPC message interceptor. Called on the Render thread. 31 // IPC message interceptor. Called on the Render thread.
32 virtual bool OnMessageReceived(const IPC::Message& message); 32 virtual bool OnMessageReceived(const IPC::Message& message);
33 33
34 // WebDevToolsAgentDelegate implementation 34 // WebDevToolsAgentDelegate implementation
35 virtual void SendMessageToClient(const std::string& class_name, 35 virtual void SendMessageToClient(const std::string& class_name,
36 const std::string& method_name, 36 const std::string& method_name,
37 const std::string& raw_msg); 37 const std::string& param1,
38 const std::string& param2,
39 const std::string& param3);
38 virtual int GetHostId(); 40 virtual int GetHostId();
39 virtual void ForceRepaint(); 41 virtual void ForceRepaint();
40 42
41 // Returns agent instance for its host id. 43 // Returns agent instance for its host id.
42 static DevToolsAgent* FromHostId(int host_id); 44 static DevToolsAgent* FromHostId(int host_id);
43 45
44 RenderView* render_view() { return view_; } 46 RenderView* render_view() { return view_; }
45 47
46 WebDevToolsAgent* GetWebAgent(); 48 WebDevToolsAgent* GetWebAgent();
47 49
48 private: 50 private:
49 friend class DevToolsAgentFilter; 51 friend class DevToolsAgentFilter;
50 52
51 void OnAttach(); 53 void OnAttach();
52 void OnDetach(); 54 void OnDetach();
53 void OnRpcMessage(const std::string& class_name, 55 void OnRpcMessage(const std::string& class_name,
54 const std::string& method_name, 56 const std::string& method_name,
55 const std::string& raw_msg); 57 const std::string& param1,
58 const std::string& param2,
59 const std::string& param3);
56 void OnInspectElement(int x, int y); 60 void OnInspectElement(int x, int y);
57 61
58 static std::map<int, DevToolsAgent*> agent_for_routing_id_; 62 static std::map<int, DevToolsAgent*> agent_for_routing_id_;
59 63
60 int routing_id_; // View routing id that we can access from IO thread. 64 int routing_id_; // View routing id that we can access from IO thread.
61 RenderView* view_; 65 RenderView* view_;
62 66
63 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); 67 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent);
64 }; 68 };
65 69
66 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ 70 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_
OLDNEW
« no previous file with comments | « chrome/common/devtools_messages_internal.h ('k') | chrome/renderer/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698