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

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

Issue 1586513002: QUIC - Whne alternate job decides to delay the main(TCP) job and if the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix comments Created 4 years, 11 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
« no previous file with comments | « no previous file | net/http/http_stream_factory_impl_job.h » ('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_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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void PreconnectStreams(int num_streams, 62 void PreconnectStreams(int num_streams,
63 const HttpRequestInfo& info, 63 const HttpRequestInfo& info,
64 const SSLConfig& server_ssl_config, 64 const SSLConfig& server_ssl_config,
65 const SSLConfig& proxy_ssl_config) override; 65 const SSLConfig& proxy_ssl_config) override;
66 const HostMappingRules* GetHostMappingRules() const override; 66 const HostMappingRules* GetHostMappingRules() const override;
67 67
68 size_t num_orphaned_jobs() const { return orphaned_job_set_.size(); } 68 size_t num_orphaned_jobs() const { return orphaned_job_set_.size(); }
69 69
70 private: 70 private:
71 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, SetPriority); 71 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, SetPriority);
72 FRIEND_TEST_ALL_PREFIXES(HttpStreamFactoryImplRequestTest, DelayMainJob);
72 73
73 class NET_EXPORT_PRIVATE Request; 74 class NET_EXPORT_PRIVATE Request;
74 class NET_EXPORT_PRIVATE Job; 75 class NET_EXPORT_PRIVATE Job;
75 76
76 typedef std::set<Request*> RequestSet; 77 typedef std::set<Request*> RequestSet;
77 typedef std::map<SpdySessionKey, RequestSet> SpdySessionRequestMap; 78 typedef std::map<SpdySessionKey, RequestSet> SpdySessionRequestMap;
78 79
79 HttpStreamRequest* RequestStreamInternal( 80 HttpStreamRequest* RequestStreamInternal(
80 const HttpRequestInfo& info, 81 const HttpRequestInfo& info,
81 RequestPriority priority, 82 RequestPriority priority,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // deleted when the factory is destroyed. 144 // deleted when the factory is destroyed.
144 std::set<const Job*> preconnect_job_set_; 145 std::set<const Job*> preconnect_job_set_;
145 146
146 const bool for_websockets_; 147 const bool for_websockets_;
147 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); 148 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl);
148 }; 149 };
149 150
150 } // namespace net 151 } // namespace net
151 152
152 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ 153 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_stream_factory_impl_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698