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

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

Issue 1744693002: Implement QUIC-based net::BidirectionalStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basecl
Patch Set: Address Ryan's comments Created 4 years, 9 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) 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/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Used to detach the Job from |request|. 86 // Used to detach the Job from |request|.
87 void Orphan(const Request* request); 87 void Orphan(const Request* request);
88 88
89 void SetPriority(RequestPriority priority); 89 void SetPriority(RequestPriority priority);
90 90
91 RequestPriority priority() const { return priority_; } 91 RequestPriority priority() const { return priority_; }
92 bool was_npn_negotiated() const; 92 bool was_npn_negotiated() const;
93 NextProto protocol_negotiated() const; 93 NextProto protocol_negotiated() const;
94 bool using_spdy() const; 94 bool using_spdy() const;
95 const BoundNetLog& net_log() const { return net_log_; } 95 const BoundNetLog& net_log() const { return net_log_; }
96 bool for_bidirectional() const { return for_bidirectional_; } 96 HttpStreamRequest::StreamType stream_type() const { return stream_type_; }
97 97
98 const SSLConfig& server_ssl_config() const; 98 const SSLConfig& server_ssl_config() const;
99 const SSLConfig& proxy_ssl_config() const; 99 const SSLConfig& proxy_ssl_config() const;
100 const ProxyInfo& proxy_info() const; 100 const ProxyInfo& proxy_info() const;
101 101
102 // Indicates whether or not this job is performing a preconnect. 102 // Indicates whether or not this job is performing a preconnect.
103 bool IsPreconnecting() const; 103 bool IsPreconnecting() const;
104 104
105 // Indicates whether or not this Job has been orphaned by a Request. 105 // Indicates whether or not this Job has been orphaned by a Request.
106 bool IsOrphaned() const; 106 bool IsOrphaned() const;
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 // Initialized when we have an existing SpdySession. 411 // Initialized when we have an existing SpdySession.
412 base::WeakPtr<SpdySession> existing_spdy_session_; 412 base::WeakPtr<SpdySession> existing_spdy_session_;
413 413
414 // Only used if |new_spdy_session_| is non-NULL. 414 // Only used if |new_spdy_session_| is non-NULL.
415 bool spdy_session_direct_; 415 bool spdy_session_direct_;
416 416
417 JobStatus job_status_; 417 JobStatus job_status_;
418 JobStatus other_job_status_; 418 JobStatus other_job_status_;
419 base::TimeTicks job_stream_ready_start_time_; 419 base::TimeTicks job_stream_ready_start_time_;
420 420
421 // True if BidirectionalStreamJob is requested. 421 // Type of stream that is requested.
422 bool for_bidirectional_; 422 HttpStreamRequest::StreamType stream_type_;
423 423
424 base::WeakPtrFactory<Job> ptr_factory_; 424 base::WeakPtrFactory<Job> ptr_factory_;
425 425
426 DISALLOW_COPY_AND_ASSIGN(Job); 426 DISALLOW_COPY_AND_ASSIGN(Job);
427 }; 427 };
428 428
429 } // namespace net 429 } // namespace net
430 430
431 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 431 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698