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.h" | 5 #include "content/browser/loader/navigation_url_loader_impl.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_url_loader_delegate.h" | 10 #include "content/browser/loader/navigation_url_loader_delegate.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 } | 57 } |
58 | 58 |
59 void NavigationURLLoaderImpl::NotifyResponseStarted( | 59 void NavigationURLLoaderImpl::NotifyResponseStarted( |
60 const scoped_refptr<ResourceResponse>& response, | 60 const scoped_refptr<ResourceResponse>& response, |
61 scoped_ptr<StreamHandle> body) { | 61 scoped_ptr<StreamHandle> body) { |
62 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 62 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
63 | 63 |
64 delegate_->OnResponseStarted(response, body.Pass()); | 64 delegate_->OnResponseStarted(response, body.Pass()); |
65 } | 65 } |
66 | 66 |
67 void NavigationURLLoaderImpl::NotifyRequestFailed(int net_error) { | 67 void NavigationURLLoaderImpl::NotifyRequestFailed(bool in_cache, |
| 68 int net_error) { |
68 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 69 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
69 | 70 |
70 delegate_->OnRequestFailed(net_error); | 71 delegate_->OnRequestFailed(in_cache, net_error); |
71 } | 72 } |
72 | 73 |
73 void NavigationURLLoaderImpl::NotifyRequestStarted(base::TimeTicks timestamp) { | 74 void NavigationURLLoaderImpl::NotifyRequestStarted(base::TimeTicks timestamp) { |
74 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 75 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
75 | 76 |
76 delegate_->OnRequestStarted(timestamp); | 77 delegate_->OnRequestStarted(timestamp); |
77 } | 78 } |
78 | 79 |
79 } // namespace content | 80 } // namespace content |
OLD | NEW |