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

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

Issue 264077: Convert devtools interfaces over to using WebString.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « no previous file | 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 14 matching lines...) Expand all
25 public: 25 public:
26 DevToolsAgent(int routing_id, RenderView* view); 26 DevToolsAgent(int routing_id, RenderView* view);
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 WebKit::WebString& class_name,
36 const std::string& method_name, 36 const WebKit::WebString& method_name,
37 const std::string& param1, 37 const WebKit::WebString& param1,
38 const std::string& param2, 38 const WebKit::WebString& param2,
39 const std::string& param3); 39 const WebKit::WebString& param3);
40 virtual int GetHostId(); 40 virtual int GetHostId();
41 virtual void ForceRepaint(); 41 virtual void ForceRepaint();
42 42
43 // Returns agent instance for its host id. 43 // Returns agent instance for its host id.
44 static DevToolsAgent* FromHostId(int host_id); 44 static DevToolsAgent* FromHostId(int host_id);
45 45
46 RenderView* render_view() { return view_; } 46 RenderView* render_view() { return view_; }
47 47
48 WebDevToolsAgent* GetWebAgent(); 48 WebDevToolsAgent* GetWebAgent();
49 49
(...skipping 12 matching lines...) Expand all
62 62
63 static std::map<int, DevToolsAgent*> agent_for_routing_id_; 63 static std::map<int, DevToolsAgent*> agent_for_routing_id_;
64 64
65 int routing_id_; // View routing id that we can access from IO thread. 65 int routing_id_; // View routing id that we can access from IO thread.
66 RenderView* view_; 66 RenderView* view_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); 68 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent);
69 }; 69 };
70 70
71 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ 71 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698