| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 void NavigationURLLoaderImpl::NotifyResponseStarted( | 93 void NavigationURLLoaderImpl::NotifyResponseStarted( |
| 94 const scoped_refptr<ResourceResponse>& response, | 94 const scoped_refptr<ResourceResponse>& response, |
| 95 std::unique_ptr<StreamHandle> body, | 95 std::unique_ptr<StreamHandle> body, |
| 96 const SSLStatus& ssl_status, | 96 const SSLStatus& ssl_status, |
| 97 std::unique_ptr<NavigationData> navigation_data, | 97 std::unique_ptr<NavigationData> navigation_data, |
| 98 const GlobalRequestID& request_id, | 98 const GlobalRequestID& request_id, |
| 99 bool is_download, | 99 bool is_download, |
| 100 bool is_stream) { | 100 bool is_stream) { |
| 101 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 101 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 102 | 102 |
| 103 delegate_->OnResponseStarted(response, std::move(body), ssl_status, | 103 delegate_->OnResponseStarted(response, std::move(body), |
| 104 mojo::ScopedDataPipeConsumerHandle(), ssl_status, |
| 104 std::move(navigation_data), request_id, | 105 std::move(navigation_data), request_id, |
| 105 is_download, is_stream); | 106 is_download, is_stream); |
| 106 } | 107 } |
| 107 | 108 |
| 108 void NavigationURLLoaderImpl::NotifyRequestFailed(bool in_cache, | 109 void NavigationURLLoaderImpl::NotifyRequestFailed(bool in_cache, |
| 109 int net_error) { | 110 int net_error) { |
| 110 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 111 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 111 | 112 |
| 112 delegate_->OnRequestFailed(in_cache, net_error); | 113 delegate_->OnRequestFailed(in_cache, net_error); |
| 113 } | 114 } |
| 114 | 115 |
| 115 void NavigationURLLoaderImpl::NotifyRequestStarted(base::TimeTicks timestamp) { | 116 void NavigationURLLoaderImpl::NotifyRequestStarted(base::TimeTicks timestamp) { |
| 116 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 117 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 117 | 118 |
| 118 delegate_->OnRequestStarted(timestamp); | 119 delegate_->OnRequestStarted(timestamp); |
| 119 } | 120 } |
| 120 | 121 |
| 121 } // namespace content | 122 } // namespace content |
| OLD | NEW |