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

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

Issue 1326503003: Added a net::BidirectionalStream to expose a bidirectional streaming interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Misha's comments Created 5 years 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_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 HttpStreamRequest* RequestWebSocketHandshakeStream( 45 HttpStreamRequest* RequestWebSocketHandshakeStream(
46 const HttpRequestInfo& info, 46 const HttpRequestInfo& info,
47 RequestPriority priority, 47 RequestPriority priority,
48 const SSLConfig& server_ssl_config, 48 const SSLConfig& server_ssl_config,
49 const SSLConfig& proxy_ssl_config, 49 const SSLConfig& proxy_ssl_config,
50 HttpStreamRequest::Delegate* delegate, 50 HttpStreamRequest::Delegate* delegate,
51 WebSocketHandshakeStreamBase::CreateHelper* create_helper, 51 WebSocketHandshakeStreamBase::CreateHelper* create_helper,
52 const BoundNetLog& net_log) override; 52 const BoundNetLog& net_log) override;
53 53
54 HttpStreamRequest* RequestBidirectionalStreamJob(
55 const HttpRequestInfo& info,
56 RequestPriority priority,
57 const SSLConfig& server_ssl_config,
58 const SSLConfig& proxy_ssl_config,
59 HttpStreamRequest::Delegate* delegate,
60 const BoundNetLog& net_log) override;
61
54 void PreconnectStreams(int num_streams, 62 void PreconnectStreams(int num_streams,
55 const HttpRequestInfo& info, 63 const HttpRequestInfo& info,
56 const SSLConfig& server_ssl_config, 64 const SSLConfig& server_ssl_config,
57 const SSLConfig& proxy_ssl_config) override; 65 const SSLConfig& proxy_ssl_config) override;
58 const HostMappingRules* GetHostMappingRules() const override; 66 const HostMappingRules* GetHostMappingRules() const override;
59 67
60 size_t num_orphaned_jobs() const { return orphaned_job_set_.size(); } 68 size_t num_orphaned_jobs() const { return orphaned_job_set_.size(); }
61 69
62 private: 70 private:
63 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, SetPriority); 71 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, SetPriority);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // deleted when the factory is destroyed. 139 // deleted when the factory is destroyed.
132 std::set<const Job*> preconnect_job_set_; 140 std::set<const Job*> preconnect_job_set_;
133 141
134 const bool for_websockets_; 142 const bool for_websockets_;
135 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); 143 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl);
136 }; 144 };
137 145
138 } // namespace net 146 } // namespace net
139 147
140 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ 148 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698