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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2345053006: Remove IsSynchronous API from NavigationHandle. (Closed)
Patch Set: Use the renderer value for same_page on handles created during commit. Created 4 years, 3 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/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 // Synchronous renderer-initiated navigations will send a 1211 // Synchronous renderer-initiated navigations will send a
1212 // DidCommitProvisionalLoad IPC without a prior DidStartProvisionalLoad 1212 // DidCommitProvisionalLoad IPC without a prior DidStartProvisionalLoad
1213 // message. 1213 // message.
1214 if (!navigation_handle_) { 1214 if (!navigation_handle_) {
1215 // There is no pending NavigationEntry in these cases, so pass 0 as the 1215 // There is no pending NavigationEntry in these cases, so pass 0 as the
1216 // nav_id. If the previous handle was a prematurely aborted navigation 1216 // nav_id. If the previous handle was a prematurely aborted navigation
1217 // loaded via LoadDataWithBaseURL, propogate the entry id. 1217 // loaded via LoadDataWithBaseURL, propogate the entry id.
1218 navigation_handle_ = NavigationHandleImpl::Create( 1218 navigation_handle_ = NavigationHandleImpl::Create(
1219 validated_params.url, frame_tree_node_, 1219 validated_params.url, frame_tree_node_,
1220 is_renderer_initiated, 1220 is_renderer_initiated,
1221 true, // is_synchronous 1221 validated_params.was_within_same_page,
Charlie Reis 2016/09/16 22:23:53 I don't understand this change. When is this fals
nasko 2016/09/16 23:38:11 Unfortunately, there are some cases where this is
Charlie Reis 2016/09/16 23:59:16 Thanks! That clarifies it. Can you update the co
nasko 2016/09/20 23:11:20 Tried to clarify both this comment and the one abo
1222 validated_params.is_srcdoc, base::TimeTicks::Now(), 1222 validated_params.is_srcdoc, base::TimeTicks::Now(),
1223 entry_id_for_data_nav); 1223 entry_id_for_data_nav);
1224 // PlzNavigate 1224 // PlzNavigate
1225 if (IsBrowserSideNavigationEnabled()) { 1225 if (IsBrowserSideNavigationEnabled()) {
1226 // PlzNavigate: synchronous loads happen in the renderer, and the browser 1226 // PlzNavigate: synchronous loads happen in the renderer, and the browser
1227 // has not been notified about the start of the load yet. Do it now. 1227 // has not been notified about the start of the load yet. Do it now.
1228 if (!is_loading()) { 1228 if (!is_loading()) {
1229 bool was_loading = frame_tree_node()->frame_tree()->IsLoading(); 1229 bool was_loading = frame_tree_node()->frame_tree()->IsLoading();
1230 is_loading_ = true; 1230 is_loading_ = true;
1231 frame_tree_node()->DidStartLoading(true, was_loading); 1231 frame_tree_node()->DidStartLoading(true, was_loading);
(...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after
3092 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( 3092 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind(
3093 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); 3093 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this)));
3094 return web_bluetooth_service_.get(); 3094 return web_bluetooth_service_.get();
3095 } 3095 }
3096 3096
3097 void RenderFrameHostImpl::DeleteWebBluetoothService() { 3097 void RenderFrameHostImpl::DeleteWebBluetoothService() {
3098 web_bluetooth_service_.reset(); 3098 web_bluetooth_service_.reset();
3099 } 3099 }
3100 3100
3101 } // namespace content 3101 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698