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

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

Issue 1901173003: Cleanup: Migrate references from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@119568788
Patch Set: Created 4 years, 8 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 | « net/tools/quic/quic_dispatcher_test.cc ('k') | net/tools/quic/quic_packet_writer_wrapper.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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <memory>
10 #include <string> 11 #include <string>
11 #include <unordered_map> 12 #include <unordered_map>
12 #include <vector> 13 #include <vector>
13 14
14 #include "base/containers/hash_tables.h" 15 #include "base/containers/hash_tables.h"
15 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
16 #include "base/macros.h" 17 #include "base/macros.h"
17 #include "base/memory/singleton.h" 18 #include "base/memory/singleton.h"
18 #include "base/strings/string_piece.h" 19 #include "base/strings/string_piece.h"
19 #include "net/http/http_response_headers.h" 20 #include "net/http/http_response_headers.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 221
221 // Check if push resource(push_host/push_path) associated with given request 222 // Check if push resource(push_host/push_path) associated with given request
222 // url already exists in server push map. 223 // url already exists in server push map.
223 bool PushResourceExistsInCache(std::string original_request_url, 224 bool PushResourceExistsInCache(std::string original_request_url,
224 ServerPushInfo resource); 225 ServerPushInfo resource);
225 226
226 // Cached responses. 227 // Cached responses.
227 ResponseMap responses_; 228 ResponseMap responses_;
228 229
229 // The default response for cache misses, if set. 230 // The default response for cache misses, if set.
230 scoped_ptr<Response> default_response_; 231 std::unique_ptr<Response> default_response_;
231 232
232 // A map from request URL to associated server push responses (if any). 233 // A map from request URL to associated server push responses (if any).
233 std::multimap<std::string, ServerPushInfo> server_push_resources_; 234 std::multimap<std::string, ServerPushInfo> server_push_resources_;
234 235
235 DISALLOW_COPY_AND_ASSIGN(QuicInMemoryCache); 236 DISALLOW_COPY_AND_ASSIGN(QuicInMemoryCache);
236 }; 237 };
237 238
238 } // namespace net 239 } // namespace net
239 240
240 #endif // NET_TOOLS_QUIC_QUIC_IN_MEMORY_CACHE_H_ 241 #endif // NET_TOOLS_QUIC_QUIC_IN_MEMORY_CACHE_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_dispatcher_test.cc ('k') | net/tools/quic/quic_packet_writer_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698