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

Side by Side Diff: net/disk_cache/blockfile/entry_impl_v3.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_BLOCKFILE_ENTRY_IMPL_V3_H_ 5 #ifndef NET_DISK_CACHE_BLOCKFILE_ENTRY_IMPL_V3_H_
6 #define NET_DISK_CACHE_BLOCKFILE_ENTRY_IMPL_V3_H_ 6 #define NET_DISK_CACHE_BLOCKFILE_ENTRY_IMPL_V3_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 const net::BoundNetLog& net_log() const; 77 const net::BoundNetLog& net_log() const;
78 78
79 // Entry interface. 79 // Entry interface.
80 void Doom() override; 80 void Doom() override;
81 void Close() override; 81 void Close() override;
82 std::string GetKey() const override; 82 std::string GetKey() const override;
83 base::Time GetLastUsed() const override; 83 base::Time GetLastUsed() const override;
84 base::Time GetLastModified() const override; 84 base::Time GetLastModified() const override;
85 int32 GetDataSize(int index) const override; 85 int32 GetDataSize(int index) const override;
86 int GetEntrySize() const override;
86 int ReadData(int index, 87 int ReadData(int index,
87 int offset, 88 int offset,
88 IOBuffer* buf, 89 IOBuffer* buf,
89 int buf_len, 90 int buf_len,
90 const CompletionCallback& callback) override; 91 const CompletionCallback& callback) override;
91 int WriteData(int index, 92 int WriteData(int index,
92 int offset, 93 int offset,
93 IOBuffer* buf, 94 IOBuffer* buf,
94 int buf_len, 95 int buf_len,
95 const CompletionCallback& callback, 96 const CompletionCallback& callback,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // scoped_ptr<SparseControlV3> sparse_; // Support for sparse entries. 212 // scoped_ptr<SparseControlV3> sparse_; // Support for sparse entries.
212 213
213 net::BoundNetLog net_log_; 214 net::BoundNetLog net_log_;
214 215
215 DISALLOW_COPY_AND_ASSIGN(EntryImplV3); 216 DISALLOW_COPY_AND_ASSIGN(EntryImplV3);
216 }; 217 };
217 218
218 } // namespace disk_cache 219 } // namespace disk_cache
219 220
220 #endif // NET_DISK_CACHE_BLOCKFILE_ENTRY_IMPL_V3_H_ 221 #endif // NET_DISK_CACHE_BLOCKFILE_ENTRY_IMPL_V3_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698