Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: content/browser/loader/navigation_url_loader.h

Issue 1416953007: Add a function to add extra headers from NavigationThrottle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@data-reduction-proxy-resource-throttle
Patch Set: Fixed compilation issue Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698