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

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

Issue 23856018: Changes to HttpNetworkTransaction for WebSocket Handshake (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add tests by yhirano Created 7 years, 1 month 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_cache_transaction.cc » ('j') | net/http/http_network_transaction.cc » ('J')
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 // This file declares HttpCache::Transaction, a private class of HttpCache so 5 // This file declares HttpCache::Transaction, a private class of HttpCache so
6 // it should only be included by http_cache.cc 6 // it should only be included by http_cache.cc
7 7
8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_
9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 virtual void StopCaching() OVERRIDE; 123 virtual void StopCaching() OVERRIDE;
124 virtual bool GetFullRequestHeaders( 124 virtual bool GetFullRequestHeaders(
125 HttpRequestHeaders* headers) const OVERRIDE; 125 HttpRequestHeaders* headers) const OVERRIDE;
126 virtual void DoneReading() OVERRIDE; 126 virtual void DoneReading() OVERRIDE;
127 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE; 127 virtual const HttpResponseInfo* GetResponseInfo() const OVERRIDE;
128 virtual LoadState GetLoadState() const OVERRIDE; 128 virtual LoadState GetLoadState() const OVERRIDE;
129 virtual UploadProgress GetUploadProgress(void) const OVERRIDE; 129 virtual UploadProgress GetUploadProgress(void) const OVERRIDE;
130 virtual bool GetLoadTimingInfo( 130 virtual bool GetLoadTimingInfo(
131 LoadTimingInfo* load_timing_info) const OVERRIDE; 131 LoadTimingInfo* load_timing_info) const OVERRIDE;
132 virtual void SetPriority(RequestPriority priority) OVERRIDE; 132 virtual void SetPriority(RequestPriority priority) OVERRIDE;
133 virtual void SetWebSocketHandshakeStreamFactory(
134 net::WebSocketHandshakeStreamBase::Factory* factory) OVERRIDE;
133 135
134 private: 136 private:
135 static const size_t kNumValidationHeaders = 2; 137 static const size_t kNumValidationHeaders = 2;
136 // Helper struct to pair a header name with its value, for 138 // Helper struct to pair a header name with its value, for
137 // headers used to validate cache entries. 139 // headers used to validate cache entries.
138 struct ValidationHeaders { 140 struct ValidationHeaders {
139 ValidationHeaders() : initialized(false) {} 141 ValidationHeaders() : initialized(false) {}
140 142
141 std::string values[kNumValidationHeaders]; 143 std::string values[kNumValidationHeaders];
142 bool initialized; 144 bool initialized;
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 433
432 // Load timing information for the last network request, if any. Set in the 434 // Load timing information for the last network request, if any. Set in the
433 // 304 and 206 response cases, as the network transaction may be destroyed 435 // 304 and 206 response cases, as the network transaction may be destroyed
434 // before the caller requests load timing information. 436 // before the caller requests load timing information.
435 scoped_ptr<LoadTimingInfo> old_network_trans_load_timing_; 437 scoped_ptr<LoadTimingInfo> old_network_trans_load_timing_;
436 }; 438 };
437 439
438 } // namespace net 440 } // namespace net
439 441
440 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 442 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_cache_transaction.cc » ('j') | net/http/http_network_transaction.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698