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

Side by Side Diff: net/spdy/spdy_test_util.cc

Issue 7827033: Introduce net::HttpServerPropertiesManager to manage server-specific properties. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/net.gyp ('k') | net/url_request/url_request_context.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "net/spdy/spdy_test_util.h" 5 #include "net/spdy/spdy_test_util.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 storage_.set_http_auth_handler_factory(HttpAuthHandlerFactory::CreateDefault( 950 storage_.set_http_auth_handler_factory(HttpAuthHandlerFactory::CreateDefault(
951 host_resolver())); 951 host_resolver()));
952 net::HttpNetworkSession::Params params; 952 net::HttpNetworkSession::Params params;
953 params.client_socket_factory = &socket_factory_; 953 params.client_socket_factory = &socket_factory_;
954 params.host_resolver = host_resolver(); 954 params.host_resolver = host_resolver();
955 params.cert_verifier = cert_verifier(); 955 params.cert_verifier = cert_verifier();
956 params.proxy_service = proxy_service(); 956 params.proxy_service = proxy_service();
957 params.ssl_config_service = ssl_config_service(); 957 params.ssl_config_service = ssl_config_service();
958 params.http_auth_handler_factory = http_auth_handler_factory(); 958 params.http_auth_handler_factory = http_auth_handler_factory();
959 params.network_delegate = network_delegate(); 959 params.network_delegate = network_delegate();
960 params.http_server_properties = http_server_properties();
960 scoped_refptr<HttpNetworkSession> network_session( 961 scoped_refptr<HttpNetworkSession> network_session(
961 new HttpNetworkSession(params)); 962 new HttpNetworkSession(params));
962 storage_.set_http_transaction_factory(new HttpCache( 963 storage_.set_http_transaction_factory(new HttpCache(
963 network_session, 964 network_session,
964 HttpCache::DefaultBackend::InMemory(0))); 965 HttpCache::DefaultBackend::InMemory(0)));
965 } 966 }
966 967
967 SpdyURLRequestContext::~SpdyURLRequestContext() { 968 SpdyURLRequestContext::~SpdyURLRequestContext() {
968 } 969 }
969 970
970 const SpdyHeaderInfo MakeSpdyHeader(spdy::SpdyControlType type) { 971 const SpdyHeaderInfo MakeSpdyHeader(spdy::SpdyControlType type) {
971 const SpdyHeaderInfo kHeader = { 972 const SpdyHeaderInfo kHeader = {
972 type, // Kind = Syn 973 type, // Kind = Syn
973 1, // Stream ID 974 1, // Stream ID
974 0, // Associated stream ID 975 0, // Associated stream ID
975 2, // Priority 976 2, // Priority
976 spdy::CONTROL_FLAG_FIN, // Control Flags 977 spdy::CONTROL_FLAG_FIN, // Control Flags
977 false, // Compressed 978 false, // Compressed
978 spdy::INVALID, // Status 979 spdy::INVALID, // Status
979 NULL, // Data 980 NULL, // Data
980 0, // Length 981 0, // Length
981 spdy::DATA_FLAG_NONE // Data Flags 982 spdy::DATA_FLAG_NONE // Data Flags
982 }; 983 };
983 return kHeader; 984 return kHeader;
984 } 985 }
985 } // namespace net 986 } // namespace net
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/url_request/url_request_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698