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

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

Issue 3533013: net: plumb DnsRRResolver from IOThread to HttpNetworkSession. (Closed)
Patch Set: Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_
6 #define NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 155
156 private: 156 private:
157 void Init() { 157 void Init() {
158 ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_); 158 ftp_transaction_factory_ = new net::FtpNetworkLayer(host_resolver_);
159 ssl_config_service_ = new net::SSLConfigServiceDefaults; 159 ssl_config_service_ = new net::SSLConfigServiceDefaults;
160 http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault( 160 http_auth_handler_factory_ = net::HttpAuthHandlerFactory::CreateDefault(
161 host_resolver_); 161 host_resolver_);
162 http_transaction_factory_ = new net::HttpCache( 162 http_transaction_factory_ = new net::HttpCache(
163 net::HttpNetworkLayer::CreateFactory(host_resolver_, 163 net::HttpNetworkLayer::CreateFactory(host_resolver_,
164 NULL,
164 proxy_service_, 165 proxy_service_,
165 ssl_config_service_, 166 ssl_config_service_,
166 http_auth_handler_factory_, 167 http_auth_handler_factory_,
167 network_delegate_, 168 network_delegate_,
168 NULL), 169 NULL),
169 net::HttpCache::DefaultBackend::InMemory(0)); 170 net::HttpCache::DefaultBackend::InMemory(0));
170 // In-memory cookie store. 171 // In-memory cookie store.
171 cookie_store_ = new net::CookieMonster(NULL, NULL); 172 cookie_store_ = new net::CookieMonster(NULL, NULL);
172 accept_language_ = "en-us,fr"; 173 accept_language_ = "en-us,fr";
173 accept_charset_ = "iso-8859-1,*,utf-8"; 174 accept_charset_ = "iso-8859-1,*,utf-8";
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 bool received_data_before_response_; 387 bool received_data_before_response_;
387 bool request_failed_; 388 bool request_failed_;
388 bool have_certificate_errors_; 389 bool have_certificate_errors_;
389 std::string data_received_; 390 std::string data_received_;
390 391
391 // our read buffer 392 // our read buffer
392 scoped_refptr<net::IOBuffer> buf_; 393 scoped_refptr<net::IOBuffer> buf_;
393 }; 394 };
394 395
395 #endif // NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_ 396 #endif // NET_URL_REQUEST_URL_REQUEST_UNITTEST_H_
OLDNEW
« net/socket/ssl_client_socket_pool.cc ('K') | « net/url_request/url_request_context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698