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

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

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: dcheng fixes + security exploit browsertest nerfing 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 5183 matching lines...) Expand 10 before | Expand all | Expand 10 after
5194 5194
5195 for (auto& observer : observers_) 5195 for (auto& observer : observers_)
5196 observer.FocusedNodeChanged(node); 5196 observer.FocusedNodeChanged(node);
5197 } 5197 }
5198 5198
5199 void RenderFrameImpl::FocusedNodeChangedForAccessibility(const WebNode& node) { 5199 void RenderFrameImpl::FocusedNodeChangedForAccessibility(const WebNode& node) {
5200 if (render_accessibility()) 5200 if (render_accessibility())
5201 render_accessibility()->AccessibilityFocusedNodeChanged(node); 5201 render_accessibility()->AccessibilityFocusedNodeChanged(node);
5202 } 5202 }
5203 5203
5204 mojom::FrameHostIPC* RenderFrameImpl::GetFrameHostIPC() {
5205 if (!frame_host_ipc_)
5206 GetRemoteAssociatedInterfaces()->GetInterface(&frame_host_ipc_);
5207 return frame_host_ipc_.get();
5208 }
5209
5204 // PlzNavigate 5210 // PlzNavigate
5205 void RenderFrameImpl::OnCommitNavigation( 5211 void RenderFrameImpl::OnCommitNavigation(
5206 const ResourceResponseHead& response, 5212 const ResourceResponseHead& response,
5207 const GURL& stream_url, 5213 const GURL& stream_url,
5208 mojo::DataPipeConsumerHandle handle, 5214 mojo::DataPipeConsumerHandle handle,
5209 const CommonNavigationParams& common_params, 5215 const CommonNavigationParams& common_params,
5210 const RequestNavigationParams& request_params) { 5216 const RequestNavigationParams& request_params) {
5211 CHECK(IsBrowserSideNavigationEnabled()); 5217 CHECK(IsBrowserSideNavigationEnabled());
5212 // This will override the url requested by the WebURLLoader, as well as 5218 // This will override the url requested by the WebURLLoader, as well as
5213 // provide it with the response to the request. 5219 // provide it with the response to the request.
(...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after
6991 policy(info.default_policy), 6997 policy(info.default_policy),
6992 replaces_current_history_item(info.replaces_current_history_item), 6998 replaces_current_history_item(info.replaces_current_history_item),
6993 history_navigation_in_new_child_frame( 6999 history_navigation_in_new_child_frame(
6994 info.is_history_navigation_in_new_child_frame), 7000 info.is_history_navigation_in_new_child_frame),
6995 client_redirect(info.is_client_redirect), 7001 client_redirect(info.is_client_redirect),
6996 cache_disabled(info.is_cache_disabled), 7002 cache_disabled(info.is_cache_disabled),
6997 form(info.form), 7003 form(info.form),
6998 source_location(info.source_location) {} 7004 source_location(info.source_location) {}
6999 7005
7000 } // namespace content 7006 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698