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

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

Issue 9959033: Move NextProto enum to a new file net/socket/next_proto.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address wtc's comments Created 8 years, 8 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Tells |this| that |job| has determined it still needs to continue 61 // Tells |this| that |job| has determined it still needs to continue
62 // connecting, so allow |this| to continue. If this is not called, then 62 // connecting, so allow |this| to continue. If this is not called, then
63 // |request_| is expected to cancel |this| by deleting it. 63 // |request_| is expected to cancel |this| by deleting it.
64 void Resume(Job* job); 64 void Resume(Job* job);
65 65
66 // Used to detach the Job from |request|. 66 // Used to detach the Job from |request|.
67 void Orphan(const Request* request); 67 void Orphan(const Request* request);
68 68
69 bool was_npn_negotiated() const; 69 bool was_npn_negotiated() const;
70 SSLClientSocket::NextProto protocol_negotiated() const; 70 NextProto protocol_negotiated() const;
71 bool using_spdy() const; 71 bool using_spdy() const;
72 const BoundNetLog& net_log() const { return net_log_; } 72 const BoundNetLog& net_log() const { return net_log_; }
73 73
74 const SSLConfig& server_ssl_config() const; 74 const SSLConfig& server_ssl_config() const;
75 const SSLConfig& proxy_ssl_config() const; 75 const SSLConfig& proxy_ssl_config() const;
76 const ProxyInfo& proxy_info() const; 76 const ProxyInfo& proxy_info() const;
77 77
78 // Indicates whether or not this job is performing a preconnect. 78 // Indicates whether or not this job is performing a preconnect.
79 bool IsPreconnecting() const; 79 bool IsPreconnecting() const;
80 80
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // True when the tunnel is in the process of being established - we can't 259 // True when the tunnel is in the process of being established - we can't
260 // read from the socket until the tunnel is done. 260 // read from the socket until the tunnel is done.
261 bool establishing_tunnel_; 261 bool establishing_tunnel_;
262 262
263 scoped_ptr<HttpStream> stream_; 263 scoped_ptr<HttpStream> stream_;
264 264
265 // True if we negotiated NPN. 265 // True if we negotiated NPN.
266 bool was_npn_negotiated_; 266 bool was_npn_negotiated_;
267 267
268 // Protocol negotiated with the server. 268 // Protocol negotiated with the server.
269 SSLClientSocket::NextProto protocol_negotiated_; 269 NextProto protocol_negotiated_;
270 270
271 // 0 if we're not preconnecting. Otherwise, the number of streams to 271 // 0 if we're not preconnecting. Otherwise, the number of streams to
272 // preconnect. 272 // preconnect.
273 int num_streams_; 273 int num_streams_;
274 274
275 // Initialized when we create a new SpdySession. 275 // Initialized when we create a new SpdySession.
276 scoped_refptr<SpdySession> new_spdy_session_; 276 scoped_refptr<SpdySession> new_spdy_session_;
277 277
278 // Initialized when we have an existing SpdySession. 278 // Initialized when we have an existing SpdySession.
279 scoped_refptr<SpdySession> existing_spdy_session_; 279 scoped_refptr<SpdySession> existing_spdy_session_;
280 280
281 // Only used if |new_spdy_session_| is non-NULL. 281 // Only used if |new_spdy_session_| is non-NULL.
282 bool spdy_session_direct_; 282 bool spdy_session_direct_;
283 283
284 // Key used to identify the HttpPipelinedHost for |request_|. 284 // Key used to identify the HttpPipelinedHost for |request_|.
285 scoped_ptr<HttpPipelinedHost::Key> http_pipelining_key_; 285 scoped_ptr<HttpPipelinedHost::Key> http_pipelining_key_;
286 286
287 // True if an existing pipeline can handle this job's request. 287 // True if an existing pipeline can handle this job's request.
288 bool existing_available_pipeline_; 288 bool existing_available_pipeline_;
289 289
290 base::WeakPtrFactory<Job> ptr_factory_; 290 base::WeakPtrFactory<Job> ptr_factory_;
291 291
292 DISALLOW_COPY_AND_ASSIGN(Job); 292 DISALLOW_COPY_AND_ASSIGN(Job);
293 }; 293 };
294 294
295 } // namespace net 295 } // namespace net
296 296
297 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 297 #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