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_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_ |
6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_ | 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_ |
7 | 7 |
| 8 #include <vector> |
| 9 |
8 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
12 | 14 |
13 namespace content { | 15 namespace content { |
14 | 16 |
15 class BrowserContext; | 17 class BrowserContext; |
16 class NavigationURLLoaderDelegate; | 18 class NavigationURLLoaderDelegate; |
17 class NavigationURLLoaderFactory; | 19 class NavigationURLLoaderFactory; |
(...skipping 21 matching lines...) Expand all Loading... |
39 ServiceWorkerNavigationHandle* service_worker_handle, | 41 ServiceWorkerNavigationHandle* service_worker_handle, |
40 NavigationURLLoaderDelegate* delegate); | 42 NavigationURLLoaderDelegate* delegate); |
41 | 43 |
42 // For testing purposes; sets the factory for use in testing. | 44 // For testing purposes; sets the factory for use in testing. |
43 static void SetFactoryForTesting(NavigationURLLoaderFactory* factory); | 45 static void SetFactoryForTesting(NavigationURLLoaderFactory* factory); |
44 | 46 |
45 virtual ~NavigationURLLoader() {} | 47 virtual ~NavigationURLLoader() {} |
46 | 48 |
47 // Called in response to OnRequestRedirected to continue processing the | 49 // Called in response to OnRequestRedirected to continue processing the |
48 // request. | 50 // request. |
49 virtual void FollowRedirect() = 0; | 51 virtual void FollowRedirect( |
| 52 const std::vector<std::pair<std::string, std::string> >& |
| 53 extra_headers) = 0; |
50 | 54 |
51 protected: | 55 protected: |
52 NavigationURLLoader() {} | 56 NavigationURLLoader() {} |
53 | 57 |
54 private: | 58 private: |
55 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoader); | 59 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoader); |
56 }; | 60 }; |
57 | 61 |
58 } // namespace content | 62 } // namespace content |
59 | 63 |
60 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_ | 64 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_H_ |
OLD | NEW |