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

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

Issue 3020063: DevTools: get rid of delayed command dispatching on front-end side. (Closed)
Patch Set: Created 10 years, 4 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
« 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 RenderView* render_view() { return render_view_; } 60 RenderView* render_view() { return render_view_; }
61 61
62 WebKit::WebDevToolsAgent* GetWebAgent(); 62 WebKit::WebDevToolsAgent* GetWebAgent();
63 63
64 private: 64 private:
65 friend class DevToolsAgentFilter; 65 friend class DevToolsAgentFilter;
66 66
67 void OnAttach(const std::vector<std::string>& runtime_features); 67 void OnAttach(const std::vector<std::string>& runtime_features);
68 void OnDetach(); 68 void OnDetach();
69 void OnFrontendLoaded();
69 void OnDispatchOnInspectorBackend(const std::string& message); 70 void OnDispatchOnInspectorBackend(const std::string& message);
70 void OnInspectElement(int x, int y); 71 void OnInspectElement(int x, int y);
71 void OnSetApuAgentEnabled(bool enabled); 72 void OnSetApuAgentEnabled(bool enabled);
72 73
73 static std::map<int, DevToolsAgent*> agent_for_routing_id_; 74 static std::map<int, DevToolsAgent*> agent_for_routing_id_;
74 75
75 int routing_id_; // View routing id that we can access from IO thread. 76 int routing_id_; // View routing id that we can access from IO thread.
76 RenderView* render_view_; 77 RenderView* render_view_;
77 bool expose_v8_debugger_protocol_; 78 bool expose_v8_debugger_protocol_;
78 79
79 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent); 80 DISALLOW_COPY_AND_ASSIGN(DevToolsAgent);
80 }; 81 };
81 82
82 #endif // CHROME_RENDERER_DEVTOOLS_AGENT_H_ 83 #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