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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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_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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "net/base/host_port_pair.h" 14 #include "net/base/host_port_pair.h"
15 #include "net/base/net_log.h" 15 #include "net/base/net_log.h"
16 #include "net/http/http_pipelined_host_pool.h" 16 #include "net/http/http_pipelined_host_pool.h"
17 #include "net/http/http_stream_factory.h" 17 #include "net/http/http_stream_factory.h"
18 #include "net/proxy/proxy_server.h" 18 #include "net/proxy/proxy_server.h"
19 #include "net/socket/ssl_client_socket.h" 19 #include "net/socket/ssl_client_socket.h"
20 #include "net/spdy/spdy_session_key.h" 20 #include "net/spdy/spdy_session_key.h"
21 21
22 namespace net { 22 namespace net {
23 23
24 class HttpNetworkSession; 24 class HttpNetworkSession;
25 class HttpPipelinedHost; 25 class HttpPipelinedHost;
26 class SpdySession; 26 class SpdySession;
27 27
28 class NET_EXPORT_PRIVATE HttpStreamFactoryImpl : 28 class NET_EXPORT_PRIVATE HttpStreamFactoryImpl
29 public HttpStreamFactory, 29 : public HttpStreamFactory,
30 public HttpPipelinedHostPool::Delegate { 30 public HttpPipelinedHostPool::Delegate {
31 public: 31 public:
32 // RequestStream may only be called if |for_websockets| is false. 32 // RequestStream may only be called if |for_websockets| is false.
33 // RequestWebSocketHandshakeStream may only be called if |for_websockets| 33 // RequestWebSocketHandshakeStream may only be called if |for_websockets|
34 // is true. 34 // is true.
35 HttpStreamFactoryImpl(HttpNetworkSession* session, bool for_websockets); 35 HttpStreamFactoryImpl(HttpNetworkSession* session, bool for_websockets);
36 virtual ~HttpStreamFactoryImpl(); 36 virtual ~HttpStreamFactoryImpl();
37 37
38 // HttpStreamFactory interface 38 // HttpStreamFactory interface
39 virtual HttpStreamRequest* RequestStream( 39 virtual HttpStreamRequest* RequestStream(
40 const HttpRequestInfo& info, 40 const HttpRequestInfo& info,
(...skipping 28 matching lines...) Expand all
69 69
70 private: 70 private:
71 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, SetPriority); 71 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, SetPriority);
72 72
73 class NET_EXPORT_PRIVATE Request; 73 class NET_EXPORT_PRIVATE Request;
74 class NET_EXPORT_PRIVATE Job; 74 class NET_EXPORT_PRIVATE Job;
75 75
76 typedef std::set<Request*> RequestSet; 76 typedef std::set<Request*> RequestSet;
77 typedef std::vector<Request*> RequestVector; 77 typedef std::vector<Request*> RequestVector;
78 typedef std::map<SpdySessionKey, RequestSet> SpdySessionRequestMap; 78 typedef std::map<SpdySessionKey, RequestSet> SpdySessionRequestMap;
79 typedef std::map<HttpPipelinedHost::Key, 79 typedef std::map<HttpPipelinedHost::Key, RequestVector>
80 RequestVector> HttpPipeliningRequestMap; 80 HttpPipeliningRequestMap;
81 81
82 HttpStreamRequest* RequestStreamInternal( 82 HttpStreamRequest* RequestStreamInternal(
83 const HttpRequestInfo& info, 83 const HttpRequestInfo& info,
84 RequestPriority priority, 84 RequestPriority priority,
85 const SSLConfig& server_ssl_config, 85 const SSLConfig& server_ssl_config,
86 const SSLConfig& proxy_ssl_config, 86 const SSLConfig& proxy_ssl_config,
87 HttpStreamRequest::Delegate* delegate, 87 HttpStreamRequest::Delegate* delegate,
88 WebSocketHandshakeStreamBase::CreateHelper* create_helper, 88 WebSocketHandshakeStreamBase::CreateHelper* create_helper,
89 const BoundNetLog& net_log); 89 const BoundNetLog& net_log);
90 90
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // deleted when the factory is destroyed. 150 // deleted when the factory is destroyed.
151 std::set<const Job*> preconnect_job_set_; 151 std::set<const Job*> preconnect_job_set_;
152 152
153 const bool for_websockets_; 153 const bool for_websockets_;
154 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); 154 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl);
155 }; 155 };
156 156
157 } // namespace net 157 } // namespace net
158 158
159 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ 159 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698