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

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

Issue 1608283002: PlzNavigate: Use WebNavigationPolicyHandledByClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@change-did-start-loading-logic
Patch Set: Created 4 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
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 4913 matching lines...) Expand 10 before | Expand all | Expand 10 after
4924 return blink::WebNavigationPolicyIgnore; 4924 return blink::WebNavigationPolicyIgnore;
4925 } 4925 }
4926 4926
4927 // PlzNavigate: if the navigation is not synchronous, send it to the browser. 4927 // PlzNavigate: if the navigation is not synchronous, send it to the browser.
4928 // This includes navigations with no request being sent to the network stack. 4928 // This includes navigations with no request being sent to the network stack.
4929 if (IsBrowserSideNavigationEnabled() && 4929 if (IsBrowserSideNavigationEnabled() &&
4930 info.urlRequest.checkForBrowserSideNavigation() && 4930 info.urlRequest.checkForBrowserSideNavigation() &&
4931 ShouldMakeNetworkRequestForURL(url)) { 4931 ShouldMakeNetworkRequestForURL(url)) {
4932 BeginNavigation(&info.urlRequest, info.replacesCurrentHistoryItem, 4932 BeginNavigation(&info.urlRequest, info.replacesCurrentHistoryItem,
4933 info.isClientRedirect); 4933 info.isClientRedirect);
4934 return blink::WebNavigationPolicyIgnore; 4934 return blink::WebNavigationPolicyHandledByClient;
4935 } 4935 }
4936 4936
4937 return info.defaultPolicy; 4937 return info.defaultPolicy;
4938 } 4938 }
4939 4939
4940 void RenderFrameImpl::OnGetSavableResourceLinks() { 4940 void RenderFrameImpl::OnGetSavableResourceLinks() {
4941 std::vector<GURL> resources_list; 4941 std::vector<GURL> resources_list;
4942 std::vector<SavableSubframe> subframes; 4942 std::vector<SavableSubframe> subframes;
4943 SavableResourcesResult result(&resources_list, &subframes); 4943 SavableResourcesResult result(&resources_list, &subframes);
4944 4944
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after
6103 int match_count, 6103 int match_count,
6104 int ordinal, 6104 int ordinal,
6105 const WebRect& selection_rect, 6105 const WebRect& selection_rect,
6106 bool final_status_update) { 6106 bool final_status_update) {
6107 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count, 6107 Send(new FrameHostMsg_Find_Reply(routing_id_, request_id, match_count,
6108 selection_rect, ordinal, 6108 selection_rect, ordinal,
6109 final_status_update)); 6109 final_status_update));
6110 } 6110 }
6111 6111
6112 } // namespace content 6112 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698