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

Side by Side Diff: net/http/http_stream_factory_impl_job.cc

Issue 9225028: Add NetLog entries to preconnect HttpStreamFactoryImpl::Jobs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Sync Created 8 years, 10 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/http/http_stream_factory_impl_job.h ('k') | net/http/http_stream_factory_impl_unittest.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 #include "net/http/http_stream_factory_impl_job.h" 5 #include "net/http/http_stream_factory_impl_job.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 dict->SetString("server_protos", 101 dict->SetString("server_protos",
102 SSLClientSocket::ServerProtosToString(server_protos_)); 102 SSLClientSocket::ServerProtosToString(server_protos_));
103 return dict; 103 return dict;
104 } 104 }
105 105
106 HttpStreamFactoryImpl::Job::Job(HttpStreamFactoryImpl* stream_factory, 106 HttpStreamFactoryImpl::Job::Job(HttpStreamFactoryImpl* stream_factory,
107 HttpNetworkSession* session, 107 HttpNetworkSession* session,
108 const HttpRequestInfo& request_info, 108 const HttpRequestInfo& request_info,
109 const SSLConfig& server_ssl_config, 109 const SSLConfig& server_ssl_config,
110 const SSLConfig& proxy_ssl_config, 110 const SSLConfig& proxy_ssl_config,
111 const BoundNetLog& net_log) 111 NetLog* net_log)
112 : request_(NULL), 112 : request_(NULL),
113 request_info_(request_info), 113 request_info_(request_info),
114 server_ssl_config_(server_ssl_config), 114 server_ssl_config_(server_ssl_config),
115 proxy_ssl_config_(proxy_ssl_config), 115 proxy_ssl_config_(proxy_ssl_config),
116 net_log_(BoundNetLog::Make(net_log.net_log(), 116 net_log_(BoundNetLog::Make(net_log, NetLog::SOURCE_HTTP_STREAM_JOB)),
117 NetLog::SOURCE_HTTP_STREAM_JOB)),
118 ALLOW_THIS_IN_INITIALIZER_LIST(io_callback_( 117 ALLOW_THIS_IN_INITIALIZER_LIST(io_callback_(
119 base::Bind(&Job::OnIOComplete, base::Unretained(this)))), 118 base::Bind(&Job::OnIOComplete, base::Unretained(this)))),
120 connection_(new ClientSocketHandle), 119 connection_(new ClientSocketHandle),
121 session_(session), 120 session_(session),
122 stream_factory_(stream_factory), 121 stream_factory_(stream_factory),
123 next_state_(STATE_NONE), 122 next_state_(STATE_NONE),
124 pac_request_(NULL), 123 pac_request_(NULL),
125 blocking_job_(NULL), 124 blocking_job_(NULL),
126 waiting_job_(NULL), 125 waiting_job_(NULL),
127 using_ssl_(false), 126 using_ssl_(false),
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 return false; 1244 return false;
1246 } 1245 }
1247 if (request_info_.method != "GET" && request_info_.method != "HEAD") { 1246 if (request_info_.method != "GET" && request_info_.method != "HEAD") {
1248 return false; 1247 return false;
1249 } 1248 }
1250 return stream_factory_->http_pipelined_host_pool_.IsHostEligibleForPipelining( 1249 return stream_factory_->http_pipelined_host_pool_.IsHostEligibleForPipelining(
1251 origin_); 1250 origin_);
1252 } 1251 }
1253 1252
1254 } // namespace net 1253 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl_job.h ('k') | net/http/http_stream_factory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698