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