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" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "content/browser/loader/navigation_url_loader.h" | 14 #include "content/browser/loader/navigation_url_loader.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 struct RedirectInfo; | 17 struct RedirectInfo; |
18 } | 18 } |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
| 22 class AppCacheNavigationHandle; |
22 class NavigationURLLoaderImplCore; | 23 class NavigationURLLoaderImplCore; |
23 class NavigationData; | 24 class NavigationData; |
24 class ServiceWorkerNavigationHandle; | 25 class ServiceWorkerNavigationHandle; |
25 class StreamHandle; | 26 class StreamHandle; |
26 struct GlobalRequestID; | 27 struct GlobalRequestID; |
27 struct ResourceResponse; | 28 struct ResourceResponse; |
28 struct SSLStatus; | 29 struct SSLStatus; |
29 | 30 |
30 class NavigationURLLoaderImpl : public NavigationURLLoader { | 31 class NavigationURLLoaderImpl : public NavigationURLLoader { |
31 public: | 32 public: |
32 // The caller is responsible for ensuring that |delegate| outlives the loader. | 33 // The caller is responsible for ensuring that |delegate| outlives the loader. |
33 NavigationURLLoaderImpl(BrowserContext* browser_context, | 34 NavigationURLLoaderImpl(BrowserContext* browser_context, |
34 std::unique_ptr<NavigationRequestInfo> request_info, | 35 std::unique_ptr<NavigationRequestInfo> request_info, |
35 std::unique_ptr<NavigationUIData> navigation_ui_data, | 36 std::unique_ptr<NavigationUIData> navigation_ui_data, |
36 ServiceWorkerNavigationHandle* service_worker_handle, | 37 ServiceWorkerNavigationHandle* service_worker_handle, |
| 38 AppCacheNavigationHandle* appcache_handle, |
37 NavigationURLLoaderDelegate* delegate); | 39 NavigationURLLoaderDelegate* delegate); |
38 ~NavigationURLLoaderImpl() override; | 40 ~NavigationURLLoaderImpl() override; |
39 | 41 |
40 // NavigationURLLoader implementation. | 42 // NavigationURLLoader implementation. |
41 void FollowRedirect() override; | 43 void FollowRedirect() override; |
42 void ProceedWithResponse() override; | 44 void ProceedWithResponse() override; |
43 | 45 |
44 private: | 46 private: |
45 friend class NavigationURLLoaderImplCore; | 47 friend class NavigationURLLoaderImplCore; |
46 | 48 |
(...skipping 24 matching lines...) Expand all Loading... |
71 NavigationURLLoaderImplCore* core_; | 73 NavigationURLLoaderImplCore* core_; |
72 | 74 |
73 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; | 75 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; |
74 | 76 |
75 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); | 77 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); |
76 }; | 78 }; |
77 | 79 |
78 } // namespace content | 80 } // namespace content |
79 | 81 |
80 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ | 82 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ |
OLD | NEW |