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 4482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |