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

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

Issue 1034283002: Cleanup QUIC code to sync with internal version after recent changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/tools/quic/quic_server.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_TOOLS_QUIC_QUIC_IN_MEMORY_CACHE_H_ 5 #ifndef NET_TOOLS_QUIC_QUIC_IN_MEMORY_CACHE_H_
6 #define NET_TOOLS_QUIC_QUIC_IN_MEMORY_CACHE_H_ 6 #define NET_TOOLS_QUIC_QUIC_IN_MEMORY_CACHE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "base/strings/string_piece.h" 12 #include "base/strings/string_piece.h"
13 #include "net/spdy/spdy_framer.h" 13 #include "net/spdy/spdy_framer.h"
14 14
15 template <typename T> struct DefaultSingletonTraits; 15 template <typename T> struct DefaultSingletonTraits;
16 16
17 namespace net { 17 namespace net {
18 namespace tools { 18 namespace tools {
19 19
20 namespace test { 20 namespace test {
21 class QuicInMemoryCachePeer; 21 class QuicInMemoryCachePeer;
22 } // namespace 22 } // namespace test
23 23
24 class QuicServer; 24 class QuicServer;
25 25
26 // In-memory cache for HTTP responses. 26 // In-memory cache for HTTP responses.
27 // Reads from disk cache generated by: 27 // Reads from disk cache generated by:
28 // `wget -p --save_headers <url>` 28 // `wget -p --save_headers <url>`
29 class QuicInMemoryCache { 29 class QuicInMemoryCache {
30 public: 30 public:
31 enum SpecialResponseType { 31 enum SpecialResponseType {
32 REGULAR_RESPONSE, // Send the headers and body like a server should. 32 REGULAR_RESPONSE, // Send the headers and body like a server should.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Cached responses. 115 // Cached responses.
116 ResponseMap responses_; 116 ResponseMap responses_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(QuicInMemoryCache); 118 DISALLOW_COPY_AND_ASSIGN(QuicInMemoryCache);
119 }; 119 };
120 120
121 } // namespace tools 121 } // namespace tools
122 } // namespace net 122 } // namespace net
123 123
124 #endif // NET_TOOLS_QUIC_QUIC_IN_MEMORY_CACHE_H_ 124 #endif // NET_TOOLS_QUIC_QUIC_IN_MEMORY_CACHE_H_
OLDNEW
« no previous file with comments | « no previous file | net/tools/quic/quic_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698