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

Side by Side Diff: content/browser/devtools/devtools_agent_host_impl.cc

Issue 12209107: Intercept Inspector DOM.setFileInputFiles and grant read permissions to the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/browser/devtools/devtools_agent_host_impl.h" 5 #include "content/browser/devtools/devtools_agent_host_impl.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "content/common/devtools_messages.h" 8 #include "content/common/devtools_messages.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 17 matching lines...) Expand all
28 MSG_ROUTING_NONE, 28 MSG_ROUTING_NONE,
29 saved_agent_state)); 29 saved_agent_state));
30 NotifyClientAttaching(); 30 NotifyClientAttaching();
31 } 31 }
32 32
33 void DevToolsAgentHostImpl::Detach() { 33 void DevToolsAgentHostImpl::Detach() {
34 SendMessageToAgent(new DevToolsAgentMsg_Detach(MSG_ROUTING_NONE)); 34 SendMessageToAgent(new DevToolsAgentMsg_Detach(MSG_ROUTING_NONE));
35 NotifyClientDetaching(); 35 NotifyClientDetaching();
36 } 36 }
37 37
38 void DevToolsAgentHostImpl::DipatchOnInspectorBackend( 38 void DevToolsAgentHostImpl::DispatchOnInspectorBackend(
39 const std::string& message) { 39 const std::string& message) {
40 SendMessageToAgent(new DevToolsAgentMsg_DispatchOnInspectorBackend( 40 SendMessageToAgent(new DevToolsAgentMsg_DispatchOnInspectorBackend(
41 MSG_ROUTING_NONE, message)); 41 MSG_ROUTING_NONE, message));
42 } 42 }
43 43
44 void DevToolsAgentHostImpl::InspectElement(int x, int y) { 44 void DevToolsAgentHostImpl::InspectElement(int x, int y) {
45 SendMessageToAgent(new DevToolsAgentMsg_InspectElement(MSG_ROUTING_NONE, 45 SendMessageToAgent(new DevToolsAgentMsg_InspectElement(MSG_ROUTING_NONE,
46 x, y)); 46 x, y));
47 } 47 }
48 48
(...skipping 11 matching lines...) Expand all
60 60
61 void DevToolsAgentHostImpl::NotifyCloseListener() { 61 void DevToolsAgentHostImpl::NotifyCloseListener() {
62 if (close_listener_) { 62 if (close_listener_) {
63 scoped_refptr<DevToolsAgentHostImpl> protect(this); 63 scoped_refptr<DevToolsAgentHostImpl> protect(this);
64 close_listener_->AgentHostClosing(this); 64 close_listener_->AgentHostClosing(this);
65 close_listener_ = NULL; 65 close_listener_ = NULL;
66 } 66 }
67 } 67 }
68 68
69 } // namespace content 69 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/devtools_agent_host_impl.h ('k') | content/browser/devtools/devtools_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698