| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 const net::RedirectInfo& redirect_info, | 73 const net::RedirectInfo& redirect_info, |
| 74 const scoped_refptr<ResourceResponse>& response) { | 74 const scoped_refptr<ResourceResponse>& response) { |
| 75 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 75 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 76 | 76 |
| 77 delegate_->OnRequestRedirected(redirect_info, response); | 77 delegate_->OnRequestRedirected(redirect_info, response); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void NavigationURLLoaderImpl::NotifyResponseStarted( | 80 void NavigationURLLoaderImpl::NotifyResponseStarted( |
| 81 const scoped_refptr<ResourceResponse>& response, | 81 const scoped_refptr<ResourceResponse>& response, |
| 82 std::unique_ptr<StreamHandle> body, | 82 std::unique_ptr<StreamHandle> body, |
| 83 const SSLStatus& ssl_status, |
| 83 std::unique_ptr<NavigationData> navigation_data) { | 84 std::unique_ptr<NavigationData> navigation_data) { |
| 84 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 85 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 85 | 86 |
| 86 delegate_->OnResponseStarted(response, std::move(body), | 87 delegate_->OnResponseStarted(response, std::move(body), ssl_status, |
| 87 std::move(navigation_data)); | 88 std::move(navigation_data)); |
| 88 } | 89 } |
| 89 | 90 |
| 90 void NavigationURLLoaderImpl::NotifyRequestFailed(bool in_cache, | 91 void NavigationURLLoaderImpl::NotifyRequestFailed(bool in_cache, |
| 91 int net_error) { | 92 int net_error) { |
| 92 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 93 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 93 | 94 |
| 94 delegate_->OnRequestFailed(in_cache, net_error); | 95 delegate_->OnRequestFailed(in_cache, net_error); |
| 95 } | 96 } |
| 96 | 97 |
| 97 void NavigationURLLoaderImpl::NotifyRequestStarted(base::TimeTicks timestamp) { | 98 void NavigationURLLoaderImpl::NotifyRequestStarted(base::TimeTicks timestamp) { |
| 98 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 99 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 99 | 100 |
| 100 delegate_->OnRequestStarted(timestamp); | 101 delegate_->OnRequestStarted(timestamp); |
| 101 } | 102 } |
| 102 | 103 |
| 103 void NavigationURLLoaderImpl::NotifyServiceWorkerEncountered() { | 104 void NavigationURLLoaderImpl::NotifyServiceWorkerEncountered() { |
| 104 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 105 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 105 | 106 |
| 106 delegate_->OnServiceWorkerEncountered(); | 107 delegate_->OnServiceWorkerEncountered(); |
| 107 } | 108 } |
| 108 | 109 |
| 109 } // namespace content | 110 } // namespace content |
| OLD | NEW |