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

Side by Side Diff: content/renderer/devtools/devtools_agent.cc

Issue 1873533002: [DevTools] Force context creation when runtime is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more tests Created 4 years, 8 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 | « content/renderer/devtools/devtools_agent.h ('k') | content/renderer/render_view_browsertest.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) 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/renderer/devtools/devtools_agent.h" 5 #include "content/renderer/devtools/devtools_agent.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 101
102 void DevToolsAgent::WidgetWillClose() { 102 void DevToolsAgent::WidgetWillClose() {
103 ContinueProgram(); 103 ContinueProgram();
104 } 104 }
105 105
106 void DevToolsAgent::sendProtocolMessage(int session_id, 106 void DevToolsAgent::sendProtocolMessage(int session_id,
107 int call_id, 107 int call_id,
108 const blink::WebString& message, 108 const blink::WebString& message,
109 const blink::WebString& state_cookie) { 109 const blink::WebString& state_cookie) {
110 if (!send_protocol_message_callback_for_test_.is_null()) {
111 send_protocol_message_callback_for_test_.Run(
112 session_id, call_id, message.utf8(), state_cookie.utf8());
113 return;
114 }
110 SendChunkedProtocolMessage(this, routing_id(), session_id, call_id, 115 SendChunkedProtocolMessage(this, routing_id(), session_id, call_id,
111 message.utf8(), state_cookie.utf8()); 116 message.utf8(), state_cookie.utf8());
112 } 117 }
113 118
114 blink::WebDevToolsAgentClient::WebKitClientMessageLoop* 119 blink::WebDevToolsAgentClient::WebKitClientMessageLoop*
115 DevToolsAgent::createClientMessageLoop() { 120 DevToolsAgent::createClientMessageLoop() {
116 return new WebKitClientMessageLoopImpl(); 121 return new WebKitClientMessageLoopImpl();
117 } 122 }
118 123
119 void DevToolsAgent::willEnterDebugLoop() { 124 void DevToolsAgent::willEnterDebugLoop() {
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 284
280 WebDevToolsAgent* DevToolsAgent::GetWebAgent() { 285 WebDevToolsAgent* DevToolsAgent::GetWebAgent() {
281 return frame_->GetWebFrame()->devToolsAgent(); 286 return frame_->GetWebFrame()->devToolsAgent();
282 } 287 }
283 288
284 bool DevToolsAgent::IsAttached() { 289 bool DevToolsAgent::IsAttached() {
285 return is_attached_; 290 return is_attached_;
286 } 291 }
287 292
288 } // namespace content 293 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/devtools/devtools_agent.h ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698