Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 const HttpRequestInfo& info, | 55 const HttpRequestInfo& info, |
| 56 RequestPriority priority, | 56 RequestPriority priority, |
| 57 const SSLConfig& server_ssl_config, | 57 const SSLConfig& server_ssl_config, |
| 58 const SSLConfig& proxy_ssl_config, | 58 const SSLConfig& proxy_ssl_config, |
| 59 HttpStreamRequest::Delegate* delegate, | 59 HttpStreamRequest::Delegate* delegate, |
| 60 const BoundNetLog& net_log) override; | 60 const BoundNetLog& net_log) override; |
| 61 | 61 |
| 62 void PreconnectStreams(int num_streams, const HttpRequestInfo& info) override; | 62 void PreconnectStreams(int num_streams, const HttpRequestInfo& info) override; |
| 63 const HostMappingRules* GetHostMappingRules() const override; | 63 const HostMappingRules* GetHostMappingRules() const override; |
| 64 | 64 |
| 65 enum JobType { | |
| 66 NON_ALTERNATIVE, | |
|
Ryan Hamilton
2016/05/06 21:33:14
How about MAIN?
Zhongyi Shi
2016/05/13 00:31:24
Done.
| |
| 67 ALTERNATIVE, | |
| 68 PRECONNECT, | |
| 69 }; | |
| 70 | |
| 65 private: | 71 private: |
| 66 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, SetPriority); | 72 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, SetPriority); |
| 67 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, DelayMainJob); | 73 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, DelayMainJob); |
| 68 | 74 |
| 69 class NET_EXPORT_PRIVATE Request; | 75 class NET_EXPORT_PRIVATE Request; |
| 70 class NET_EXPORT_PRIVATE Job; | 76 class NET_EXPORT_PRIVATE Job; |
| 71 class NET_EXPORT_PRIVATE JobController; | 77 class NET_EXPORT_PRIVATE JobController; |
| 72 | 78 |
| 73 typedef std::set<Request*> RequestSet; | 79 typedef std::set<Request*> RequestSet; |
| 74 typedef std::map<SpdySessionKey, RequestSet> SpdySessionRequestMap; | 80 typedef std::map<SpdySessionKey, RequestSet> SpdySessionRequestMap; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 127 | 133 |
| 128 SpdySessionRequestMap spdy_session_request_map_; | 134 SpdySessionRequestMap spdy_session_request_map_; |
| 129 | 135 |
| 130 const bool for_websockets_; | 136 const bool for_websockets_; |
| 131 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); | 137 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); |
| 132 }; | 138 }; |
| 133 | 139 |
| 134 } // namespace net | 140 } // namespace net |
| 135 | 141 |
| 136 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ | 142 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ |
| OLD | NEW |