| 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 26 matching lines...) Expand all Loading... |
| 37 public: | 37 public: |
| 38 // Creates a new NavigationURLLoaderImplCore that forwards signals back to | 38 // Creates a new NavigationURLLoaderImplCore that forwards signals back to |
| 39 // |loader| on the UI thread. | 39 // |loader| on the UI thread. |
| 40 explicit NavigationURLLoaderImplCore( | 40 explicit NavigationURLLoaderImplCore( |
| 41 const base::WeakPtr<NavigationURLLoaderImpl>& loader); | 41 const base::WeakPtr<NavigationURLLoaderImpl>& loader); |
| 42 ~NavigationURLLoaderImplCore(); | 42 ~NavigationURLLoaderImplCore(); |
| 43 | 43 |
| 44 // Starts the request. | 44 // Starts the request. |
| 45 void Start(ResourceContext* resource_context, | 45 void Start(ResourceContext* resource_context, |
| 46 ServiceWorkerNavigationHandleCore* service_worker_handle_core, | 46 ServiceWorkerNavigationHandleCore* service_worker_handle_core, |
| 47 std::unique_ptr<NavigationRequestInfo> request_info); | 47 std::unique_ptr<NavigationRequestInfo> request_info, |
| 48 std::unique_ptr<NavigationUIData> navigation_ui_data); |
| 48 | 49 |
| 49 // Follows the current pending redirect. | 50 // Follows the current pending redirect. |
| 50 void FollowRedirect(); | 51 void FollowRedirect(); |
| 51 | 52 |
| 52 // Proceeds with processing the response. | 53 // Proceeds with processing the response. |
| 53 void ProceedWithResponse(); | 54 void ProceedWithResponse(); |
| 54 | 55 |
| 55 void set_resource_handler(NavigationResourceHandler* resource_handler) { | 56 void set_resource_handler(NavigationResourceHandler* resource_handler) { |
| 56 resource_handler_ = resource_handler; | 57 resource_handler_ = resource_handler; |
| 57 } | 58 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 72 private: | 73 private: |
| 73 base::WeakPtr<NavigationURLLoaderImpl> loader_; | 74 base::WeakPtr<NavigationURLLoaderImpl> loader_; |
| 74 NavigationResourceHandler* resource_handler_; | 75 NavigationResourceHandler* resource_handler_; |
| 75 | 76 |
| 76 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); | 77 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace content | 80 } // namespace content |
| 80 | 81 |
| 81 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ | 82 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ |
| OLD | NEW |