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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2364943002: Create NavigationHandles for interstitials if needed (Closed)
Patch Set: Fixed Android issue Created 4 years, 2 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 4470 matching lines...) Expand 10 before | Expand all | Expand 10 after
4481 4481
4482 if (loading_weak_factory_.HasWeakPtrs()) 4482 if (loading_weak_factory_.HasWeakPtrs())
4483 return; 4483 return;
4484 4484
4485 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( 4485 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
4486 FROM_HERE, base::Bind(&WebContentsImpl::SendChangeLoadProgress, 4486 FROM_HERE, base::Bind(&WebContentsImpl::SendChangeLoadProgress,
4487 loading_weak_factory_.GetWeakPtr()), 4487 loading_weak_factory_.GetWeakPtr()),
4488 min_delay); 4488 min_delay);
4489 } 4489 }
4490 4490
4491 ScopedVector<NavigationThrottle> WebContentsImpl::CreateThrottlesForNavigation(
4492 NavigationHandle* navigation_handle) {
4493 return GetContentClient()->browser()->CreateThrottlesForNavigation(
4494 navigation_handle);
4495 }
4496
4491 void WebContentsImpl::DidCancelLoading() { 4497 void WebContentsImpl::DidCancelLoading() {
4492 controller_.DiscardNonCommittedEntries(); 4498 controller_.DiscardNonCommittedEntries();
4493 4499
4494 // Update the URL display. 4500 // Update the URL display.
4495 NotifyNavigationStateChanged(INVALIDATE_TYPE_URL); 4501 NotifyNavigationStateChanged(INVALIDATE_TYPE_URL);
4496 } 4502 }
4497 4503
4498 void WebContentsImpl::DidAccessInitialDocument() { 4504 void WebContentsImpl::DidAccessInitialDocument() {
4499 has_accessed_initial_document_ = true; 4505 has_accessed_initial_document_ = true;
4500 4506
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
5247 dialog_manager_ = dialog_manager; 5253 dialog_manager_ = dialog_manager;
5248 } 5254 }
5249 5255
5250 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { 5256 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) {
5251 auto it = binding_sets_.find(interface_name); 5257 auto it = binding_sets_.find(interface_name);
5252 if (it != binding_sets_.end()) 5258 if (it != binding_sets_.end())
5253 binding_sets_.erase(it); 5259 binding_sets_.erase(it);
5254 } 5260 }
5255 5261
5256 } // namespace content 5262 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698