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

Side by Side Diff: content/browser/loader/navigation_resource_throttle.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_RESOURCE_THROTTLE_H_ 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_THROTTLE_H_
6 #define CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_THROTTLE_H_ 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_THROTTLE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/public/browser/navigation_throttle.h" 10 #include "content/public/browser/navigation_throttle.h"
(...skipping 13 matching lines...) Expand all
24 NavigationResourceThrottle(net::URLRequest* request); 24 NavigationResourceThrottle(net::URLRequest* request);
25 ~NavigationResourceThrottle() override; 25 ~NavigationResourceThrottle() override;
26 26
27 // ResourceThrottle overrides: 27 // ResourceThrottle overrides:
28 void WillStartRequest(bool* defer) override; 28 void WillStartRequest(bool* defer) override;
29 void WillRedirectRequest(const net::RedirectInfo& redirect_info, 29 void WillRedirectRequest(const net::RedirectInfo& redirect_info,
30 bool* defer) override; 30 bool* defer) override;
31 const char* GetNameForLogging() const override; 31 const char* GetNameForLogging() const override;
32 32
33 private: 33 private:
34 void OnUIChecksPerformed(NavigationThrottle::ThrottleCheckResult result); 34 void OnUIChecksPerformed(NavigationThrottle::ThrottleCheckResult result,
35 const std::vector<std::pair<std::string, std::string> >& extra_headers);
35 36
36 net::URLRequest* request_; 37 net::URLRequest* request_;
37 base::WeakPtrFactory<NavigationResourceThrottle> weak_ptr_factory_; 38 base::WeakPtrFactory<NavigationResourceThrottle> weak_ptr_factory_;
38 39
39 DISALLOW_COPY_AND_ASSIGN(NavigationResourceThrottle); 40 DISALLOW_COPY_AND_ASSIGN(NavigationResourceThrottle);
40 }; 41 };
41 42
42 } // namespace content 43 } // namespace content
43 44
44 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_THROTTLE_H_ 45 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_THROTTLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698