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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2830753004: Pipe the devTools FrameId from blink into the browser for headless (Closed)
Patch Set: Changes for Sami and creis@ Created 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 3317 matching lines...) Expand 10 before | Expand all | Expand 10 after
3328 const blink::WebVector<blink::WebString>& newly_matching_selectors, 3328 const blink::WebVector<blink::WebString>& newly_matching_selectors,
3329 const blink::WebVector<blink::WebString>& stopped_matching_selectors) { 3329 const blink::WebVector<blink::WebString>& stopped_matching_selectors) {
3330 for (auto& observer : observers_) 3330 for (auto& observer : observers_)
3331 observer.DidMatchCSS(newly_matching_selectors, stopped_matching_selectors); 3331 observer.DidMatchCSS(newly_matching_selectors, stopped_matching_selectors);
3332 } 3332 }
3333 3333
3334 void RenderFrameImpl::SetHasReceivedUserGesture() { 3334 void RenderFrameImpl::SetHasReceivedUserGesture() {
3335 Send(new FrameHostMsg_SetHasReceivedUserGesture(routing_id_)); 3335 Send(new FrameHostMsg_SetHasReceivedUserGesture(routing_id_));
3336 } 3336 }
3337 3337
3338 void RenderFrameImpl::SetDevToolsFrameId(
3339 const blink::WebString& devtools_frame_id) {
3340 Send(new FrameHostMsg_SetDevToolsFrameId(routing_id_,
3341 devtools_frame_id.Utf8()));
3342 }
3343
3338 bool RenderFrameImpl::ShouldReportDetailedMessageForSource( 3344 bool RenderFrameImpl::ShouldReportDetailedMessageForSource(
3339 const blink::WebString& source) { 3345 const blink::WebString& source) {
3340 return GetContentClient()->renderer()->ShouldReportDetailedMessageForSource( 3346 return GetContentClient()->renderer()->ShouldReportDetailedMessageForSource(
3341 source.Utf16()); 3347 source.Utf16());
3342 } 3348 }
3343 3349
3344 void RenderFrameImpl::DidAddMessageToConsole( 3350 void RenderFrameImpl::DidAddMessageToConsole(
3345 const blink::WebConsoleMessage& message, 3351 const blink::WebConsoleMessage& message,
3346 const blink::WebString& source_name, 3352 const blink::WebString& source_name,
3347 unsigned source_line, 3353 unsigned source_line,
(...skipping 3678 matching lines...) Expand 10 before | Expand all | Expand 10 after
7026 policy(info.default_policy), 7032 policy(info.default_policy),
7027 replaces_current_history_item(info.replaces_current_history_item), 7033 replaces_current_history_item(info.replaces_current_history_item),
7028 history_navigation_in_new_child_frame( 7034 history_navigation_in_new_child_frame(
7029 info.is_history_navigation_in_new_child_frame), 7035 info.is_history_navigation_in_new_child_frame),
7030 client_redirect(info.is_client_redirect), 7036 client_redirect(info.is_client_redirect),
7031 cache_disabled(info.is_cache_disabled), 7037 cache_disabled(info.is_cache_disabled),
7032 form(info.form), 7038 form(info.form),
7033 source_location(info.source_location) {} 7039 source_location(info.source_location) {}
7034 7040
7035 } // namespace content 7041 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698