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

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

Issue 2108423002: Revert of Apply Referrer-Policy header when following redirects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
66 private: 62 private:
67 bool ignore_certificate_errors_; 63 bool ignore_certificate_errors_;
68 base::FilePath base_path_; 64 base::FilePath base_path_;
69 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 65 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
70 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_; 66 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner_;
71 net::NetLog* net_log_; 67 net::NetLog* net_log_;
72 68
73 std::unique_ptr<net::ProxyConfigService> proxy_config_service_; 69 std::unique_ptr<net::ProxyConfigService> proxy_config_service_;
74 std::unique_ptr<net::NetworkDelegate> network_delegate_; 70 std::unique_ptr<net::NetworkDelegate> network_delegate_;
75 std::unique_ptr<net::URLRequestContextStorage> storage_; 71 std::unique_ptr<net::URLRequestContextStorage> storage_;
76 std::unique_ptr<net::URLRequestContext> url_request_context_; 72 std::unique_ptr<net::URLRequestContext> url_request_context_;
77 ProtocolHandlerMap protocol_handlers_; 73 ProtocolHandlerMap protocol_handlers_;
78 URLRequestInterceptorScopedVector request_interceptors_; 74 URLRequestInterceptorScopedVector request_interceptors_;
79 75
80 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter); 76 DISALLOW_COPY_AND_ASSIGN(ShellURLRequestContextGetter);
81 }; 77 };
82 78
83 } // namespace content 79 } // namespace content
84 80
85 #endif // CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_ 81 #endif // CONTENT_SHELL_BROWSER_SHELL_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698