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

Side by Side Diff: net/url_request/url_request_context_builder.h

Issue 302893003: Enable SPDY 3.1 and 3.0 in UrlRequestContextBuilder by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add NextProtosDefaults Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/socket/next_proto.cc ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This class is useful for building a simple URLRequestContext. Most creators 5 // This class is useful for building a simple URLRequestContext. Most creators
6 // of new URLRequestContexts should use this helper class to construct it. Call 6 // of new URLRequestContexts should use this helper class to construct it. Call
7 // any configuration params, and when done, invoke Build() to construct the 7 // any configuration params, and when done, invoke Build() to construct the
8 // URLRequestContext. This URLRequestContext will own all its own storage. 8 // URLRequestContext. This URLRequestContext will own all its own storage.
9 // 9 //
10 // URLRequestContextBuilder and its associated params classes are initially 10 // URLRequestContextBuilder and its associated params classes are initially
11 // populated with "sane" default values. Read through the comments to figure out 11 // populated with "sane" default values. Read through the comments to figure out
12 // what these are. 12 // what these are.
13 13
14 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ 14 #ifndef NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_
15 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ 15 #define NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_
16 16
17 #include <string> 17 #include <string>
18 #include <vector> 18 #include <vector>
19 19
20 #include "base/basictypes.h" 20 #include "base/basictypes.h"
21 #include "base/files/file_path.h" 21 #include "base/files/file_path.h"
22 #include "base/memory/ref_counted.h" 22 #include "base/memory/ref_counted.h"
23 #include "base/memory/scoped_ptr.h" 23 #include "base/memory/scoped_ptr.h"
24 #include "build/build_config.h" 24 #include "build/build_config.h"
25 #include "net/base/net_export.h" 25 #include "net/base/net_export.h"
26 #include "net/socket/next_proto.h"
26 27
27 namespace net { 28 namespace net {
28 29
29 class FtpTransactionFactory; 30 class FtpTransactionFactory;
30 class HostResolver; 31 class HostResolver;
31 class HostMappingRules; 32 class HostMappingRules;
32 class HttpAuthHandlerFactory; 33 class HttpAuthHandlerFactory;
33 class ProxyConfigService; 34 class ProxyConfigService;
34 class URLRequestContext; 35 class URLRequestContext;
35 class NetworkDelegate; 36 class NetworkDelegate;
(...skipping 22 matching lines...) Expand all
58 59
59 struct NET_EXPORT HttpNetworkSessionParams { 60 struct NET_EXPORT HttpNetworkSessionParams {
60 HttpNetworkSessionParams(); 61 HttpNetworkSessionParams();
61 ~HttpNetworkSessionParams(); 62 ~HttpNetworkSessionParams();
62 63
63 // These fields mirror those in net::HttpNetworkSession::Params; 64 // These fields mirror those in net::HttpNetworkSession::Params;
64 bool ignore_certificate_errors; 65 bool ignore_certificate_errors;
65 HostMappingRules* host_mapping_rules; 66 HostMappingRules* host_mapping_rules;
66 uint16 testing_fixed_http_port; 67 uint16 testing_fixed_http_port;
67 uint16 testing_fixed_https_port; 68 uint16 testing_fixed_https_port;
69 NextProtoVector next_protos;
68 std::string trusted_spdy_proxy; 70 std::string trusted_spdy_proxy;
71 bool use_alternate_protocols;
69 }; 72 };
70 73
71 URLRequestContextBuilder(); 74 URLRequestContextBuilder();
72 ~URLRequestContextBuilder(); 75 ~URLRequestContextBuilder();
73 76
74 void set_proxy_config_service(ProxyConfigService* proxy_config_service); 77 void set_proxy_config_service(ProxyConfigService* proxy_config_service);
75 78
76 // Call these functions to specify hard-coded Accept-Language 79 // Call these functions to specify hard-coded Accept-Language
77 // or User-Agent header values for all requests that don't 80 // or User-Agent header values for all requests that don't
78 // have the headers already set. 81 // have the headers already set.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 scoped_ptr<NetworkDelegate> network_delegate_; 176 scoped_ptr<NetworkDelegate> network_delegate_;
174 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_; 177 scoped_ptr<FtpTransactionFactory> ftp_transaction_factory_;
175 std::vector<SchemeFactory> extra_http_auth_handlers_; 178 std::vector<SchemeFactory> extra_http_auth_handlers_;
176 179
177 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); 180 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder);
178 }; 181 };
179 182
180 } // namespace net 183 } // namespace net
181 184
182 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ 185 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_
OLDNEW
« no previous file with comments | « net/socket/next_proto.cc ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698