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_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ |
6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ | 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 class StreamHandle; | 25 class StreamHandle; |
26 struct ResourceResponse; | 26 struct ResourceResponse; |
27 struct SSLStatus; | 27 struct SSLStatus; |
28 | 28 |
29 class NavigationURLLoaderImpl : public NavigationURLLoader { | 29 class NavigationURLLoaderImpl : public NavigationURLLoader { |
30 public: | 30 public: |
31 // The caller is responsible for ensuring that |delegate| outlives the loader. | 31 // The caller is responsible for ensuring that |delegate| outlives the loader. |
32 NavigationURLLoaderImpl( | 32 NavigationURLLoaderImpl( |
33 BrowserContext* browser_context, | 33 BrowserContext* browser_context, |
34 std::unique_ptr<NavigationRequestInfo> request_info, | 34 std::unique_ptr<NavigationRequestInfo> request_info, |
| 35 std::unique_ptr<NavigationUIData> navigation_ui_data, |
35 ServiceWorkerContextWrapper* service_worker_context_wrapper, | 36 ServiceWorkerContextWrapper* service_worker_context_wrapper, |
36 NavigationURLLoaderDelegate* delegate); | 37 NavigationURLLoaderDelegate* delegate); |
37 ~NavigationURLLoaderImpl() override; | 38 ~NavigationURLLoaderImpl() override; |
38 | 39 |
39 // NavigationURLLoader implementation. | 40 // NavigationURLLoader implementation. |
40 void FollowRedirect() override; | 41 void FollowRedirect() override; |
41 void ProceedWithResponse() override; | 42 void ProceedWithResponse() override; |
42 | 43 |
43 private: | 44 private: |
44 friend class NavigationURLLoaderImplCore; | 45 friend class NavigationURLLoaderImplCore; |
(...skipping 25 matching lines...) Expand all Loading... |
70 NavigationURLLoaderImplCore* core_; | 71 NavigationURLLoaderImplCore* core_; |
71 | 72 |
72 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; | 73 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; |
73 | 74 |
74 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); | 75 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); |
75 }; | 76 }; |
76 | 77 |
77 } // namespace content | 78 } // namespace content |
78 | 79 |
79 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ | 80 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ |
OLD | NEW |