OLD | NEW |
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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 220 |
221 // Check if push resource(push_host/push_path) associated with given request | 221 // Check if push resource(push_host/push_path) associated with given request |
222 // url already exists in server push map. | 222 // url already exists in server push map. |
223 bool PushResourceExistsInCache(std::string original_request_url, | 223 bool PushResourceExistsInCache(std::string original_request_url, |
224 ServerPushInfo resource); | 224 ServerPushInfo resource); |
225 | 225 |
226 // Cached responses. | 226 // Cached responses. |
227 ResponseMap responses_; | 227 ResponseMap responses_; |
228 | 228 |
229 // The default response for cache misses, if set. | 229 // The default response for cache misses, if set. |
230 scoped_ptr<Response> default_response_; | 230 std::unique_ptr<Response> default_response_; |
231 | 231 |
232 // A map from request URL to associated server push responses (if any). | 232 // A map from request URL to associated server push responses (if any). |
233 std::multimap<std::string, ServerPushInfo> server_push_resources_; | 233 std::multimap<std::string, ServerPushInfo> server_push_resources_; |
234 | 234 |
235 DISALLOW_COPY_AND_ASSIGN(QuicInMemoryCache); | 235 DISALLOW_COPY_AND_ASSIGN(QuicInMemoryCache); |
236 }; | 236 }; |
237 | 237 |
238 } // namespace net | 238 } // namespace net |
239 | 239 |
240 #endif // NET_TOOLS_QUIC_QUIC_IN_MEMORY_CACHE_H_ | 240 #endif // NET_TOOLS_QUIC_QUIC_IN_MEMORY_CACHE_H_ |
OLD | NEW |