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

Side by Side Diff: content/shell/browser/shell_url_request_context_getter.h

Issue 2100583002: Apply Referrer-Policy header when following redirects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: jochen suggestion Created 4 years, 5 months 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 protected: 53 protected:
54 ~ShellURLRequestContextGetter() override; 54 ~ShellURLRequestContextGetter() override;
55 55
56 // Used by subclasses to create their own implementation of NetworkDelegate 56 // Used by subclasses to create their own implementation of NetworkDelegate
57 // and net::ProxyService. 57 // and net::ProxyService.
58 virtual std::unique_ptr<net::NetworkDelegate> CreateNetworkDelegate(); 58 virtual std::unique_ptr<net::NetworkDelegate> CreateNetworkDelegate();
59 virtual std::unique_ptr<net::ProxyConfigService> GetProxyConfigService(); 59 virtual std::unique_ptr<net::ProxyConfigService> GetProxyConfigService();
60 virtual std::unique_ptr<net::ProxyService> GetProxyService(); 60 virtual std::unique_ptr<net::ProxyService> GetProxyService();
61 61
62 // TODO(estark): Remove this once the Referrer-Policy header is no
63 // longer an experimental feature. https://crbug.com/619228
64 virtual bool ShouldEnableReferrerPolicyHeader();
65
62 private: 66 private:
63 bool ignore_certificate_errors_; 67 bool ignore_certificate_errors_;
64 base::FilePath base_path_; 68 base::FilePath base_path_;
65 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 69 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
66 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; 70 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
67 net::NetLog* net_log_; 71 net::NetLog* net_log_;
68 72
69 std::unique_ptr<net::ProxyConfigService> proxy_config_service_; 73 std::unique_ptr<net::ProxyConfigService> proxy_config_service_;
70 std::unique_ptr<net::NetworkDelegate> network_delegate_; 74 std::unique_ptr<net::NetworkDelegate> network_delegate_;
71 std::unique_ptr<net::URLRequestContextStorage> storage_; 75 std::unique_ptr<net::URLRequestContextStorage> storage_;
72 std::unique_ptr<net::URLRequestContext> url_request_context_; 76 std::unique_ptr<net::URLRequestContext> url_request_context_;
73 ProtocolHandlerMap protocol_handlers_; 77 ProtocolHandlerMap protocol_handlers_;
74 URLRequestInterceptorScopedVector request_interceptors_; 78 URLRequestInterceptorScopedVector request_interceptors_;
75 79
76 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); 80 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter);
77 }; 81 };
78 82
79 } // namespace content 83 } // namespace content
80 84
81 #endif // CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ 85 #endif // CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698