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 "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "content/browser/loader/navigation_url_loader.h" | 13 #include "content/browser/loader/navigation_url_loader.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 struct RedirectInfo; | 16 struct RedirectInfo; |
17 } | 17 } |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 class NavigationURLLoaderImplCore; | 21 class NavigationURLLoaderImplCore; |
| 22 class ServiceWorkerNavigationHandle; |
22 class StreamHandle; | 23 class StreamHandle; |
23 struct ResourceResponse; | 24 struct ResourceResponse; |
24 | 25 |
25 class NavigationURLLoaderImpl : public NavigationURLLoader { | 26 class NavigationURLLoaderImpl : public NavigationURLLoader { |
26 public: | 27 public: |
27 // The caller is responsible for ensuring that |delegate| outlives the loader. | 28 // The caller is responsible for ensuring that |delegate| outlives the loader. |
28 NavigationURLLoaderImpl(BrowserContext* browser_context, | 29 NavigationURLLoaderImpl(BrowserContext* browser_context, |
29 scoped_ptr<NavigationRequestInfo> request_info, | 30 scoped_ptr<NavigationRequestInfo> request_info, |
| 31 ServiceWorkerNavigationHandle* service_worker_handle, |
30 NavigationURLLoaderDelegate* delegate); | 32 NavigationURLLoaderDelegate* delegate); |
31 ~NavigationURLLoaderImpl() override; | 33 ~NavigationURLLoaderImpl() override; |
32 | 34 |
33 // Called in response to OnRequestRedirected to continue processing the | 35 // Called in response to OnRequestRedirected to continue processing the |
34 // request. | 36 // request. |
35 void FollowRedirect() override; | 37 void FollowRedirect() override; |
36 | 38 |
37 private: | 39 private: |
38 friend class NavigationURLLoaderImplCore; | 40 friend class NavigationURLLoaderImplCore; |
39 | 41 |
(...skipping 19 matching lines...) Expand all Loading... |
59 NavigationURLLoaderImplCore* core_; | 61 NavigationURLLoaderImplCore* core_; |
60 | 62 |
61 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; | 63 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; |
62 | 64 |
63 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); | 65 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); |
64 }; | 66 }; |
65 | 67 |
66 } // namespace content | 68 } // namespace content |
67 | 69 |
68 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ | 70 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ |
OLD | NEW |