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

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: '' 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
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 17 matching lines...) Expand all
28 28
29 // An HttpStreamRequestImpl exists for each stream which is in progress of being 29 // An HttpStreamRequestImpl exists for each stream which is in progress of being
30 // created for the StreamFactory. 30 // created for the StreamFactory.
31 class HttpStreamFactoryImpl::Job { 31 class HttpStreamFactoryImpl::Job {
32 public: 32 public:
33 Job(HttpStreamFactoryImpl* stream_factory, 33 Job(HttpStreamFactoryImpl* stream_factory,
34 HttpNetworkSession* session, 34 HttpNetworkSession* session,
35 const HttpRequestInfo& request_info, 35 const HttpRequestInfo& request_info,
36 const SSLConfig& server_ssl_config, 36 const SSLConfig& server_ssl_config,
37 const SSLConfig& proxy_ssl_config, 37 const SSLConfig& proxy_ssl_config,
38 const BoundNetLog& net_log); 38 NetLog* net_log);
39 ~Job(); 39 ~Job();
40 40
41 // Start initiates the process of creating a new HttpStream. |request| will be 41 // Start initiates the process of creating a new HttpStream. |request| will be
42 // notified upon completion if the Job has not been Orphan()'d. 42 // notified upon completion if the Job has not been Orphan()'d.
43 void Start(Request* request); 43 void Start(Request* request);
44 44
45 // Preconnect will attempt to request |num_streams| sockets from the 45 // Preconnect will attempt to request |num_streams| sockets from the
46 // appropriate ClientSocketPool. 46 // appropriate ClientSocketPool.
47 int Preconnect(int num_streams); 47 int Preconnect(int num_streams);
48 48
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 bool existing_available_pipeline_; 284 bool existing_available_pipeline_;
285 285
286 base::WeakPtrFactory<Job> ptr_factory_; 286 base::WeakPtrFactory<Job> ptr_factory_;
287 287
288 DISALLOW_COPY_AND_ASSIGN(Job); 288 DISALLOW_COPY_AND_ASSIGN(Job);
289 }; 289 };
290 290
291 } // namespace net 291 } // namespace net
292 292
293 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 293 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698