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

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

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Rebase + addressed nit 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') | content/public/browser/BUILD.gn » ('j') | 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 4482 matching lines...) Expand 10 before | Expand all | Expand 10 after
4493 loading_weak_factory_.GetWeakPtr()), 4493 loading_weak_factory_.GetWeakPtr()),
4494 min_delay); 4494 min_delay);
4495 } 4495 }
4496 4496
4497 ScopedVector<NavigationThrottle> WebContentsImpl::CreateThrottlesForNavigation( 4497 ScopedVector<NavigationThrottle> WebContentsImpl::CreateThrottlesForNavigation(
4498 NavigationHandle* navigation_handle) { 4498 NavigationHandle* navigation_handle) {
4499 return GetContentClient()->browser()->CreateThrottlesForNavigation( 4499 return GetContentClient()->browser()->CreateThrottlesForNavigation(
4500 navigation_handle); 4500 navigation_handle);
4501 } 4501 }
4502 4502
4503 std::unique_ptr<NavigationUIData> WebContentsImpl::GetNavigationUIData(
4504 NavigationHandle* navigation_handle) {
4505 DCHECK(IsBrowserSideNavigationEnabled());
4506 return GetContentClient()->browser()->GetNavigationUIData(navigation_handle);
4507 }
4508
4503 void WebContentsImpl::DidCancelLoading() { 4509 void WebContentsImpl::DidCancelLoading() {
4504 controller_.DiscardNonCommittedEntries(); 4510 controller_.DiscardNonCommittedEntries();
4505 4511
4506 // Update the URL display. 4512 // Update the URL display.
4507 NotifyNavigationStateChanged(INVALIDATE_TYPE_URL); 4513 NotifyNavigationStateChanged(INVALIDATE_TYPE_URL);
4508 } 4514 }
4509 4515
4510 void WebContentsImpl::DidAccessInitialDocument() { 4516 void WebContentsImpl::DidAccessInitialDocument() {
4511 has_accessed_initial_document_ = true; 4517 has_accessed_initial_document_ = true;
4512 4518
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
5259 dialog_manager_ = dialog_manager; 5265 dialog_manager_ = dialog_manager;
5260 } 5266 }
5261 5267
5262 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { 5268 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) {
5263 auto it = binding_sets_.find(interface_name); 5269 auto it = binding_sets_.find(interface_name);
5264 if (it != binding_sets_.end()) 5270 if (it != binding_sets_.end())
5265 binding_sets_.erase(it); 5271 binding_sets_.erase(it);
5266 } 5272 }
5267 5273
5268 } // namespace content 5274 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698