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" |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 class NavigationURLLoaderImpl : public NavigationURLLoader { | 26 class NavigationURLLoaderImpl : public NavigationURLLoader { |
27 public: | 27 public: |
28 // The caller is responsible for ensuring that |delegate| outlives the loader. | 28 // The caller is responsible for ensuring that |delegate| outlives the loader. |
29 NavigationURLLoaderImpl(BrowserContext* browser_context, | 29 NavigationURLLoaderImpl(BrowserContext* browser_context, |
30 scoped_ptr<NavigationRequestInfo> request_info, | 30 scoped_ptr<NavigationRequestInfo> request_info, |
31 ServiceWorkerNavigationHandle* service_worker_handle, | 31 ServiceWorkerNavigationHandle* service_worker_handle, |
32 NavigationURLLoaderDelegate* delegate); | 32 NavigationURLLoaderDelegate* delegate); |
33 ~NavigationURLLoaderImpl() override; | 33 ~NavigationURLLoaderImpl() override; |
34 | 34 |
35 // Called in response to OnRequestRedirected to continue processing the | 35 // NavigationURLLoader implementation. |
36 // request. | |
37 void FollowRedirect() override; | 36 void FollowRedirect() override; |
| 37 void ProceedWithResponse() override; |
38 | 38 |
39 private: | 39 private: |
40 friend class NavigationURLLoaderImplCore; | 40 friend class NavigationURLLoaderImplCore; |
41 | 41 |
42 // Notifies the delegate of a redirect. | 42 // Notifies the delegate of a redirect. |
43 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info, | 43 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info, |
44 const scoped_refptr<ResourceResponse>& response); | 44 const scoped_refptr<ResourceResponse>& response); |
45 | 45 |
46 // Notifies the delegate that the response has started. | 46 // Notifies the delegate that the response has started. |
47 void NotifyResponseStarted(const scoped_refptr<ResourceResponse>& response, | 47 void NotifyResponseStarted(const scoped_refptr<ResourceResponse>& response, |
(...skipping 13 matching lines...) Expand all Loading... |
61 NavigationURLLoaderImplCore* core_; | 61 NavigationURLLoaderImplCore* core_; |
62 | 62 |
63 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; | 63 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); | 65 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace content | 68 } // namespace content |
69 | 69 |
70 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ | 70 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ |
OLD | NEW |