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 16 matching lines...) Expand all Loading... |
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 // Called in response to OnRequestRedirected to continue processing the |
36 // request. | 36 // request. |
37 void FollowRedirect() override; | 37 void FollowRedirect(const std::vector<std::pair<std::string, std::string> >& |
| 38 extra_headers) override; |
38 | 39 |
39 private: | 40 private: |
40 friend class NavigationURLLoaderImplCore; | 41 friend class NavigationURLLoaderImplCore; |
41 | 42 |
42 // Notifies the delegate of a redirect. | 43 // Notifies the delegate of a redirect. |
43 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info, | 44 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info, |
44 const scoped_refptr<ResourceResponse>& response); | 45 const scoped_refptr<ResourceResponse>& response); |
45 | 46 |
46 // Notifies the delegate that the response has started. | 47 // Notifies the delegate that the response has started. |
47 void NotifyResponseStarted(const scoped_refptr<ResourceResponse>& response, | 48 void NotifyResponseStarted(const scoped_refptr<ResourceResponse>& response, |
(...skipping 13 matching lines...) Expand all Loading... |
61 NavigationURLLoaderImplCore* core_; | 62 NavigationURLLoaderImplCore* core_; |
62 | 63 |
63 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; | 64 base::WeakPtrFactory<NavigationURLLoaderImpl> weak_factory_; |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); | 66 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImpl); |
66 }; | 67 }; |
67 | 68 |
68 } // namespace content | 69 } // namespace content |
69 | 70 |
70 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ | 71 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_H_ |
OLD | NEW |