Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/loader/navigation_url_loader_impl_core.h" | 5 #include "content/browser/loader/navigation_url_loader_impl_core.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "content/browser/frame_host/navigation_request_info.h" | 9 #include "content/browser/frame_host/navigation_request_info.h" |
| 10 #include "content/browser/loader/navigation_resource_handler.h" | 10 #include "content/browser/loader/navigation_resource_handler.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 94 | 94 |
| 95 void NavigationURLLoaderImplCore::NotifyRequestFailed(int net_error) { | 95 void NavigationURLLoaderImplCore::NotifyRequestFailed(int net_error) { |
| 96 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 96 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 97 | 97 |
| 98 BrowserThread::PostTask( | 98 BrowserThread::PostTask( |
| 99 BrowserThread::UI, FROM_HERE, | 99 BrowserThread::UI, FROM_HERE, |
| 100 base::Bind(&NavigationURLLoaderImpl::NotifyRequestFailed, loader_, | 100 base::Bind(&NavigationURLLoaderImpl::NotifyRequestFailed, loader_, |
| 101 net_error)); | 101 net_error)); |
| 102 } | 102 } |
| 103 | 103 |
| 104 void NavigationURLLoaderImplCore::NavigationRequested( | |
| 105 base::TimeTicks timestamp) { | |
| 106 DCHECK_CURRENTLY_ON(BrowserThread::IO); | |
| 107 BrowserThread::PostTask( | |
| 108 BrowserThread::UI, FROM_HERE, | |
| 109 base::Bind(&NavigationURLLoaderImpl::NavigationRequested, loader_, | |
| 110 timestamp)); | |
|
davidben
2015/01/28 21:33:27
Rather than plumb this all the way to the RDH and
carlosk
2015/01/30 14:01:47
Done. I measured the time we'd not be accounting f
| |
| 111 } | |
| 112 | |
| 104 } // namespace content | 113 } // namespace content |
| OLD | NEW |