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

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

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, 11 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.cc ('k') | net/http/http_stream_factory_impl_job.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 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 18 matching lines...) Expand all
29 29
30 // An HttpStreamRequestImpl exists for each stream which is in progress of being 30 // An HttpStreamRequestImpl exists for each stream which is in progress of being
31 // created for the StreamFactory. 31 // created for the StreamFactory.
32 class HttpStreamFactoryImpl::Job { 32 class HttpStreamFactoryImpl::Job {
33 public: 33 public:
34 Job(HttpStreamFactoryImpl* stream_factory, 34 Job(HttpStreamFactoryImpl* stream_factory,
35 HttpNetworkSession* session, 35 HttpNetworkSession* session,
36 const HttpRequestInfo& request_info, 36 const HttpRequestInfo& request_info,
37 const SSLConfig& server_ssl_config, 37 const SSLConfig& server_ssl_config,
38 const SSLConfig& proxy_ssl_config, 38 const SSLConfig& proxy_ssl_config,
39 const BoundNetLog& net_log); 39 NetLog* net_log);
40 ~Job(); 40 ~Job();
41 41
42 // Start initiates the process of creating a new HttpStream. |request| will be 42 // Start initiates the process of creating a new HttpStream. |request| will be
43 // notified upon completion if the Job has not been Orphan()'d. 43 // notified upon completion if the Job has not been Orphan()'d.
44 void Start(Request* request); 44 void Start(Request* request);
45 45
46 // Preconnect will attempt to request |num_streams| sockets from the 46 // Preconnect will attempt to request |num_streams| sockets from the
47 // appropriate ClientSocketPool. 47 // appropriate ClientSocketPool.
48 int Preconnect(int num_streams); 48 int Preconnect(int num_streams);
49 49
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 bool existing_available_pipeline_; 294 bool existing_available_pipeline_;
295 295
296 base::WeakPtrFactory<Job> ptr_factory_; 296 base::WeakPtrFactory<Job> ptr_factory_;
297 297
298 DISALLOW_COPY_AND_ASSIGN(Job); 298 DISALLOW_COPY_AND_ASSIGN(Job);
299 }; 299 };
300 300
301 } // namespace net 301 } // namespace net
302 302
303 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 303 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl.cc ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698