| OLD | NEW |
| 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 4476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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( | 4491 ScopedVector<NavigationThrottle> WebContentsImpl::CreateThrottlesForNavigation( |
| 4492 NavigationHandle* navigation_handle) { | 4492 NavigationHandle* navigation_handle) { |
| 4493 return GetContentClient()->browser()->CreateThrottlesForNavigation( | 4493 return GetContentClient()->browser()->CreateThrottlesForNavigation( |
| 4494 navigation_handle); | 4494 navigation_handle); |
| 4495 } | 4495 } |
| 4496 | 4496 |
| 4497 std::unique_ptr<NavigationUIData> WebContentsImpl::GetNavigationUIData( |
| 4498 NavigationHandle* navigation_handle) { |
| 4499 DCHECK(IsBrowserSideNavigationEnabled()); |
| 4500 return GetContentClient()->browser()->GetNavigationUIData(navigation_handle); |
| 4501 } |
| 4502 |
| 4497 void WebContentsImpl::DidCancelLoading() { | 4503 void WebContentsImpl::DidCancelLoading() { |
| 4498 controller_.DiscardNonCommittedEntries(); | 4504 controller_.DiscardNonCommittedEntries(); |
| 4499 | 4505 |
| 4500 // Update the URL display. | 4506 // Update the URL display. |
| 4501 NotifyNavigationStateChanged(INVALIDATE_TYPE_URL); | 4507 NotifyNavigationStateChanged(INVALIDATE_TYPE_URL); |
| 4502 } | 4508 } |
| 4503 | 4509 |
| 4504 void WebContentsImpl::DidAccessInitialDocument() { | 4510 void WebContentsImpl::DidAccessInitialDocument() { |
| 4505 has_accessed_initial_document_ = true; | 4511 has_accessed_initial_document_ = true; |
| 4506 | 4512 |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5253 dialog_manager_ = dialog_manager; | 5259 dialog_manager_ = dialog_manager; |
| 5254 } | 5260 } |
| 5255 | 5261 |
| 5256 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { | 5262 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { |
| 5257 auto it = binding_sets_.find(interface_name); | 5263 auto it = binding_sets_.find(interface_name); |
| 5258 if (it != binding_sets_.end()) | 5264 if (it != binding_sets_.end()) |
| 5259 binding_sets_.erase(it); | 5265 binding_sets_.erase(it); |
| 5260 } | 5266 } |
| 5261 | 5267 |
| 5262 } // namespace content | 5268 } // namespace content |
| OLD | NEW |