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

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: Move over to render frame (but not WebFrameClient yet) + a bunch of cleanups 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 5181 matching lines...) Expand 10 before | Expand all | Expand 10 after
5192 5192
5193 for (auto& observer : observers_) 5193 for (auto& observer : observers_)
5194 observer.FocusedNodeChanged(node); 5194 observer.FocusedNodeChanged(node);
5195 } 5195 }
5196 5196
5197 void RenderFrameImpl::FocusedNodeChangedForAccessibility(const WebNode& node) { 5197 void RenderFrameImpl::FocusedNodeChangedForAccessibility(const WebNode& node) {
5198 if (render_accessibility()) 5198 if (render_accessibility())
5199 render_accessibility()->AccessibilityFocusedNodeChanged(node); 5199 render_accessibility()->AccessibilityFocusedNodeChanged(node);
5200 } 5200 }
5201 5201
5202 mojom::FrameHostIPC* RenderFrameImpl::GetFrameHostIPC() {
5203 if (!frame_host_ipc_)
5204 GetRemoteAssociatedInterfaces()->GetInterface(&frame_host_ipc_);
5205 return frame_host_ipc_.get();
5206 }
5207
5202 // PlzNavigate 5208 // PlzNavigate
5203 void RenderFrameImpl::OnCommitNavigation( 5209 void RenderFrameImpl::OnCommitNavigation(
5204 const ResourceResponseHead& response, 5210 const ResourceResponseHead& response,
5205 const GURL& stream_url, 5211 const GURL& stream_url,
5206 mojo::DataPipeConsumerHandle handle, 5212 mojo::DataPipeConsumerHandle handle,
5207 const CommonNavigationParams& common_params, 5213 const CommonNavigationParams& common_params,
5208 const RequestNavigationParams& request_params) { 5214 const RequestNavigationParams& request_params) {
5209 CHECK(IsBrowserSideNavigationEnabled()); 5215 CHECK(IsBrowserSideNavigationEnabled());
5210 // This will override the url requested by the WebURLLoader, as well as 5216 // This will override the url requested by the WebURLLoader, as well as
5211 // provide it with the response to the request. 5217 // provide it with the response to the request.
(...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after
6989 policy(info.default_policy), 6995 policy(info.default_policy),
6990 replaces_current_history_item(info.replaces_current_history_item), 6996 replaces_current_history_item(info.replaces_current_history_item),
6991 history_navigation_in_new_child_frame( 6997 history_navigation_in_new_child_frame(
6992 info.is_history_navigation_in_new_child_frame), 6998 info.is_history_navigation_in_new_child_frame),
6993 client_redirect(info.is_client_redirect), 6999 client_redirect(info.is_client_redirect),
6994 cache_disabled(info.is_cache_disabled), 7000 cache_disabled(info.is_cache_disabled),
6995 form(info.form), 7001 form(info.form),
6996 source_location(info.source_location) {} 7002 source_location(info.source_location) {}
6997 7003
6998 } // namespace content 7004 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698