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

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

Issue 18655004: Add a quic_in_memory_cache_test data file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add virtual for SetUp(). Created 7 years, 5 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_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"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void ResetForTests(); 66 void ResetForTests();
67 67
68 private: 68 private:
69 typedef base::hash_map<std::string, Response*> ResponseMap; 69 typedef base::hash_map<std::string, Response*> ResponseMap;
70 70
71 71
72 QuicInMemoryCache(); 72 QuicInMemoryCache();
73 friend struct DefaultSingletonTraits<QuicInMemoryCache>; 73 friend struct DefaultSingletonTraits<QuicInMemoryCache>;
74 ~QuicInMemoryCache(); 74 ~QuicInMemoryCache();
75 75
76 void Initialize();
76 std::string GetKey(const BalsaHeaders& response_headers) const; 77 std::string GetKey(const BalsaHeaders& response_headers) const;
77 78
78 // Cached responses. 79 // Cached responses.
79 ResponseMap responses_; 80 ResponseMap responses_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(QuicInMemoryCache); 82 DISALLOW_COPY_AND_ASSIGN(QuicInMemoryCache);
82 }; 83 };
83 84
84 } // namespace tools 85 } // namespace tools
85 } // namespace net 86 } // namespace net
86 87
87 #endif // NET_TOOLS_QUIC_QUIC_IN_MEMORY_CACHE_H_ 88 #endif // NET_TOOLS_QUIC_QUIC_IN_MEMORY_CACHE_H_
OLDNEW
« no previous file with comments | « net/data/quic_in_memory_cache_data/quic-datatesturl.com/index.html ('k') | net/tools/quic/quic_in_memory_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698