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

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

Issue 1574423003: Revert of Add a whitelist for QUIC hosts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « net/http/http_network_session.h ('k') | net/http/http_stream_factory_impl.cc » ('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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 // Invoked when an orphaned Job finishes. 112 // Invoked when an orphaned Job finishes.
113 void OnOrphanedJobComplete(const Job* job); 113 void OnOrphanedJobComplete(const Job* job);
114 114
115 // Invoked when the Job finishes preconnecting sockets. 115 // Invoked when the Job finishes preconnecting sockets.
116 void OnPreconnectsComplete(const Job* job); 116 void OnPreconnectsComplete(const Job* job);
117 117
118 // Called when the Preconnect completes. Used for testing. 118 // Called when the Preconnect completes. Used for testing.
119 virtual void OnPreconnectsCompleteInternal() {} 119 virtual void OnPreconnectsCompleteInternal() {}
120 120
121 // Returns true if QUIC is whitelisted for |host|, which should be
122 // the result of calling ApplyHostMappingRules().
123 bool IsQuicWhitelistedForHost(const std::string& host);
124
125 HttpNetworkSession* const session_; 121 HttpNetworkSession* const session_;
126 122
127 // All Requests are handed out to clients. By the time HttpStreamFactoryImpl 123 // All Requests are handed out to clients. By the time HttpStreamFactoryImpl
128 // is destroyed, all Requests should be deleted (which should remove them from 124 // is destroyed, all Requests should be deleted (which should remove them from
129 // |request_map_|. The Requests will delete the corresponding job. 125 // |request_map_|. The Requests will delete the corresponding job.
130 std::map<const Job*, Request*> request_map_; 126 std::map<const Job*, Request*> request_map_;
131 127
132 SpdySessionRequestMap spdy_session_request_map_; 128 SpdySessionRequestMap spdy_session_request_map_;
133 129
134 // These jobs correspond to jobs orphaned by Requests and now owned by 130 // These jobs correspond to jobs orphaned by Requests and now owned by
135 // HttpStreamFactoryImpl. Since they are no longer tied to Requests, they will 131 // HttpStreamFactoryImpl. Since they are no longer tied to Requests, they will
136 // not be canceled when Requests are canceled. Therefore, in 132 // not be canceled when Requests are canceled. Therefore, in
137 // ~HttpStreamFactoryImpl, it is possible for some jobs to still exist in this 133 // ~HttpStreamFactoryImpl, it is possible for some jobs to still exist in this
138 // set. Leftover jobs will be deleted when the factory is destroyed. 134 // set. Leftover jobs will be deleted when the factory is destroyed.
139 std::set<const Job*> orphaned_job_set_; 135 std::set<const Job*> orphaned_job_set_;
140 136
141 // These jobs correspond to preconnect requests and have no associated Request 137 // These jobs correspond to preconnect requests and have no associated Request
142 // object. They're owned by HttpStreamFactoryImpl. Leftover jobs will be 138 // object. They're owned by HttpStreamFactoryImpl. Leftover jobs will be
143 // deleted when the factory is destroyed. 139 // deleted when the factory is destroyed.
144 std::set<const Job*> preconnect_job_set_; 140 std::set<const Job*> preconnect_job_set_;
145 141
146 const bool for_websockets_; 142 const bool for_websockets_;
147 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl); 143 DISALLOW_COPY_AND_ASSIGN(HttpStreamFactoryImpl);
148 }; 144 };
149 145
150 } // namespace net 146 } // namespace net
151 147
152 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_ 148 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_stream_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698