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

Side by Side Diff: net/tools/quic/quic_http_response_cache.h

Issue 2591143003: Add QuicStrCat. (Closed)
Patch Set: correct quic_client_bin.cc Created 3 years, 12 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
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_TOOLS_QUIC_QUIC_HTTP_RESPONSE_CACHE_H_ 5 #ifndef NET_TOOLS_QUIC_QUIC_HTTP_RESPONSE_CACHE_H_
6 #define NET_TOOLS_QUIC_QUIC_HTTP_RESPONSE_CACHE_H_ 6 #define NET_TOOLS_QUIC_QUIC_HTTP_RESPONSE_CACHE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <unordered_map> 12 #include <unordered_map>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/strings/string_piece.h" 17 #include "base/strings/string_piece.h"
18 #include "net/http/http_response_headers.h" 18 #include "net/http/http_response_headers.h"
19 #include "net/quic/core/spdy_utils.h" 19 #include "net/quic/core/spdy_utils.h"
20 #include "net/quic/platform/api/quic_mutex.h" 20 #include "net/quic/platform/api/quic_mutex.h"
21 #include "net/quic/platform/api/quic_str_cat.h"
Ryan Hamilton 2016/12/22 18:17:30 nit: is this required?
21 #include "net/spdy/spdy_framer.h" 22 #include "net/spdy/spdy_framer.h"
22 #include "url/gurl.h" 23 #include "url/gurl.h"
23 24
24 namespace net { 25 namespace net {
25 26
26 // In-memory cache for HTTP responses. 27 // In-memory cache for HTTP responses.
27 // Reads from disk cache generated by: 28 // Reads from disk cache generated by:
28 // `wget -p --save_headers <url>` 29 // `wget -p --save_headers <url>`
29 class QuicHttpResponseCache { 30 class QuicHttpResponseCache {
30 public: 31 public:
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // Protects against concurrent access from test threads setting responses, and 216 // Protects against concurrent access from test threads setting responses, and
216 // server threads accessing those responses. 217 // server threads accessing those responses.
217 mutable QuicMutex response_mutex_; 218 mutable QuicMutex response_mutex_;
218 219
219 DISALLOW_COPY_AND_ASSIGN(QuicHttpResponseCache); 220 DISALLOW_COPY_AND_ASSIGN(QuicHttpResponseCache);
220 }; 221 };
221 222
222 } // namespace net 223 } // namespace net
223 224
224 #endif // NET_TOOLS_QUIC_QUIC_HTTP_RESPONSE_CACHE_H_ 225 #endif // NET_TOOLS_QUIC_QUIC_HTTP_RESPONSE_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698