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

Side by Side Diff: net/disk_cache/tracing/tracing_cache_backend.h

Issue 542733002: Remove void** from disk_cache interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: narrowest, remove unused function Created 6 years, 3 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_DISK_CACHE_TRACING_TRACING_CACHE_BACKEND_H_ 5 #ifndef NET_DISK_CACHE_TRACING_TRACING_CACHE_BACKEND_H_
6 #define NET_DISK_CACHE_TRACING_TRACING_CACHE_BACKEND_H_ 6 #define NET_DISK_CACHE_TRACING_TRACING_CACHE_BACKEND_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 20 matching lines...) Expand all
31 virtual int CreateEntry(const std::string& key, Entry** entry, 31 virtual int CreateEntry(const std::string& key, Entry** entry,
32 const CompletionCallback& callback) OVERRIDE; 32 const CompletionCallback& callback) OVERRIDE;
33 virtual int DoomEntry(const std::string& key, 33 virtual int DoomEntry(const std::string& key,
34 const CompletionCallback& callback) OVERRIDE; 34 const CompletionCallback& callback) OVERRIDE;
35 virtual int DoomAllEntries(const CompletionCallback& callback) OVERRIDE; 35 virtual int DoomAllEntries(const CompletionCallback& callback) OVERRIDE;
36 virtual int DoomEntriesBetween(base::Time initial_time, 36 virtual int DoomEntriesBetween(base::Time initial_time,
37 base::Time end_time, 37 base::Time end_time,
38 const CompletionCallback& callback) OVERRIDE; 38 const CompletionCallback& callback) OVERRIDE;
39 virtual int DoomEntriesSince(base::Time initial_time, 39 virtual int DoomEntriesSince(base::Time initial_time,
40 const CompletionCallback& callback) OVERRIDE; 40 const CompletionCallback& callback) OVERRIDE;
41 virtual int OpenNextEntry(void** iter, Entry** next_entry, 41 virtual int OpenNextEntry(Iterator* iter, Entry** next_entry,
42 const CompletionCallback& callback) OVERRIDE; 42 const CompletionCallback& callback) OVERRIDE;
43 virtual void EndEnumeration(void** iter) OVERRIDE;
44 virtual void GetStats(StatsItems* stats) OVERRIDE; 43 virtual void GetStats(StatsItems* stats) OVERRIDE;
45 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE; 44 virtual void OnExternalCacheHit(const std::string& key) OVERRIDE;
46 45
47 private: 46 private:
48 friend class EntryProxy; 47 friend class EntryProxy;
49 enum Operation { 48 enum Operation {
50 OP_OPEN, 49 OP_OPEN,
51 OP_CREATE, 50 OP_CREATE,
52 OP_DOOM_ENTRY, 51 OP_DOOM_ENTRY,
53 OP_READ, 52 OP_READ,
(...skipping 21 matching lines...) Expand all
75 scoped_ptr<Backend> backend_; 74 scoped_ptr<Backend> backend_;
76 typedef std::map<Entry*, EntryProxy*> EntryToProxyMap; 75 typedef std::map<Entry*, EntryProxy*> EntryToProxyMap;
77 EntryToProxyMap open_entries_; 76 EntryToProxyMap open_entries_;
78 77
79 DISALLOW_COPY_AND_ASSIGN(TracingCacheBackend); 78 DISALLOW_COPY_AND_ASSIGN(TracingCacheBackend);
80 }; 79 };
81 80
82 } // namespace disk_cache 81 } // namespace disk_cache
83 82
84 #endif // NET_DISK_CACHE_TRACING_TRACING_CACHE_BACKEND_H_ 83 #endif // NET_DISK_CACHE_TRACING_TRACING_CACHE_BACKEND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698