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

Side by Side Diff: net/disk_cache/memory/mem_entry_impl.h

Issue 1304363013: Add a size estimation mechanism to StoragePartitionHttpCacheDataRemover. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed some spots again. Created 5 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) 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_DISK_CACHE_MEMORY_MEM_ENTRY_IMPL_H_ 5 #ifndef NET_DISK_CACHE_MEMORY_MEM_ENTRY_IMPL_H_
6 #define NET_DISK_CACHE_MEMORY_MEM_ENTRY_IMPL_H_ 6 #define NET_DISK_CACHE_MEMORY_MEM_ENTRY_IMPL_H_
7 7
8 #include "base/containers/hash_tables.h" 8 #include "base/containers/hash_tables.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 return net_log_; 86 return net_log_;
87 } 87 }
88 88
89 // Entry interface. 89 // Entry interface.
90 void Doom() override; 90 void Doom() override;
91 void Close() override; 91 void Close() override;
92 std::string GetKey() const override; 92 std::string GetKey() const override;
93 base::Time GetLastUsed() const override; 93 base::Time GetLastUsed() const override;
94 base::Time GetLastModified() const override; 94 base::Time GetLastModified() const override;
95 int32 GetDataSize(int index) const override; 95 int32 GetDataSize(int index) const override;
96 int GetEntrySize() const override;
96 int ReadData(int index, 97 int ReadData(int index,
97 int offset, 98 int offset,
98 IOBuffer* buf, 99 IOBuffer* buf,
99 int buf_len, 100 int buf_len,
100 const CompletionCallback& callback) override; 101 const CompletionCallback& callback) override;
101 int WriteData(int index, 102 int WriteData(int index,
102 int offset, 103 int offset,
103 IOBuffer* buf, 104 IOBuffer* buf,
104 int buf_len, 105 int buf_len,
105 const CompletionCallback& callback, 106 const CompletionCallback& callback,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 bool doomed_; // True if this entry was removed from the cache. 189 bool doomed_; // True if this entry was removed from the cache.
189 190
190 net::BoundNetLog net_log_; 191 net::BoundNetLog net_log_;
191 192
192 DISALLOW_COPY_AND_ASSIGN(MemEntryImpl); 193 DISALLOW_COPY_AND_ASSIGN(MemEntryImpl);
193 }; 194 };
194 195
195 } // namespace disk_cache 196 } // namespace disk_cache
196 197
197 #endif // NET_DISK_CACHE_MEMORY_MEM_ENTRY_IMPL_H_ 198 #endif // NET_DISK_CACHE_MEMORY_MEM_ENTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698