| 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 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ |
| 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ | 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 | 56 |
| 57 // Notifies |loader_| on the UI thread that the request was redirected. | 57 // Notifies |loader_| on the UI thread that the request was redirected. |
| 58 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info, | 58 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info, |
| 59 ResourceResponse* response); | 59 ResourceResponse* response); |
| 60 | 60 |
| 61 // Notifies |loader_| on the UI thread that the response started. | 61 // Notifies |loader_| on the UI thread that the response started. |
| 62 void NotifyResponseStarted(ResourceResponse* response, | 62 void NotifyResponseStarted(ResourceResponse* response, |
| 63 std::unique_ptr<StreamHandle> body, | 63 std::unique_ptr<StreamHandle> body, |
| 64 const SSLStatus& ssl_status, | 64 const SSLStatus& ssl_status, |
| 65 std::unique_ptr<NavigationData> navigation_data); | 65 std::unique_ptr<NavigationData> navigation_data, |
| 66 bool is_download); |
| 66 | 67 |
| 67 // Notifies |loader_| on the UI thread that the request failed. | 68 // Notifies |loader_| on the UI thread that the request failed. |
| 68 void NotifyRequestFailed(bool in_cache, int net_error); | 69 void NotifyRequestFailed(bool in_cache, int net_error); |
| 69 | 70 |
| 70 private: | 71 private: |
| 71 base::WeakPtr<NavigationURLLoaderImpl> loader_; | 72 base::WeakPtr<NavigationURLLoaderImpl> loader_; |
| 72 NavigationResourceHandler* resource_handler_; | 73 NavigationResourceHandler* resource_handler_; |
| 73 | 74 |
| 74 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); | 75 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace content | 78 } // namespace content |
| 78 | 79 |
| 79 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ | 80 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ |
| OLD | NEW |