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

Side by Side Diff: net/disk_cache/entry_impl.h

Issue 8568021: Add OVERRIDE to net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net only Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « net/disk_cache/disk_cache_test_util.h ('k') | net/disk_cache/in_flight_backend_io.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_ENTRY_IMPL_H_ 5 #ifndef NET_DISK_CACHE_ENTRY_IMPL_H_
6 #define NET_DISK_CACHE_ENTRY_IMPL_H_ 6 #define NET_DISK_CACHE_ENTRY_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "net/base/net_log.h" 10 #include "net/base/net_log.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // initialized before this is called. |created| is true if the Entry was 133 // initialized before this is called. |created| is true if the Entry was
134 // created rather than opened. 134 // created rather than opened.
135 void BeginLogging(net::NetLog* net_log, bool created); 135 void BeginLogging(net::NetLog* net_log, bool created);
136 136
137 const net::BoundNetLog& net_log() const; 137 const net::BoundNetLog& net_log() const;
138 138
139 // Returns the number of blocks needed to store an EntryStore. 139 // Returns the number of blocks needed to store an EntryStore.
140 static int NumBlocksForEntry(int key_size); 140 static int NumBlocksForEntry(int key_size);
141 141
142 // Entry interface. 142 // Entry interface.
143 virtual void Doom(); 143 virtual void Doom() OVERRIDE;
144 virtual void Close(); 144 virtual void Close() OVERRIDE;
145 virtual std::string GetKey() const; 145 virtual std::string GetKey() const OVERRIDE;
146 virtual base::Time GetLastUsed() const; 146 virtual base::Time GetLastUsed() const OVERRIDE;
147 virtual base::Time GetLastModified() const; 147 virtual base::Time GetLastModified() const OVERRIDE;
148 virtual int32 GetDataSize(int index) const; 148 virtual int32 GetDataSize(int index) const OVERRIDE;
149 virtual int ReadData(int index, int offset, net::IOBuffer* buf, int buf_len, 149 virtual int ReadData(
150 net::OldCompletionCallback* completion_callback); 150 int index, int offset, net::IOBuffer* buf, int buf_len,
151 net::OldCompletionCallback* completion_callback) OVERRIDE;
151 virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len, 152 virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len,
152 net::OldCompletionCallback* completion_callback, 153 net::OldCompletionCallback* completion_callback,
153 bool truncate); 154 bool truncate) OVERRIDE;
154 virtual int ReadSparseData(int64 offset, net::IOBuffer* buf, int buf_len, 155 virtual int ReadSparseData(
155 net::OldCompletionCallback* completion_callback); 156 int64 offset, net::IOBuffer* buf, int buf_len,
156 virtual int WriteSparseData(int64 offset, net::IOBuffer* buf, int buf_len, 157 net::OldCompletionCallback* completion_callback) OVERRIDE;
157 net::OldCompletionCallback* completion_callback); 158 virtual int WriteSparseData(
159 int64 offset, net::IOBuffer* buf, int buf_len,
160 net::OldCompletionCallback* completion_callback) OVERRIDE;
158 virtual int GetAvailableRange(int64 offset, int len, int64* start, 161 virtual int GetAvailableRange(int64 offset, int len, int64* start,
159 OldCompletionCallback* callback); 162 OldCompletionCallback* callback) OVERRIDE;
160 virtual bool CouldBeSparse() const; 163 virtual bool CouldBeSparse() const OVERRIDE;
161 virtual void CancelSparseIO(); 164 virtual void CancelSparseIO() OVERRIDE;
162 virtual int ReadyForSparseIO(net::OldCompletionCallback* completion_callback); 165 virtual int ReadyForSparseIO(
166 net::OldCompletionCallback* completion_callback) OVERRIDE;
163 167
164 private: 168 private:
165 enum { 169 enum {
166 kNumStreams = 3 170 kNumStreams = 3
167 }; 171 };
168 class UserBuffer; 172 class UserBuffer;
169 173
170 virtual ~EntryImpl(); 174 virtual ~EntryImpl();
171 175
172 // Do all the work for ReadDataImpl and WriteDataImpl. Implemented as 176 // Do all the work for ReadDataImpl and WriteDataImpl. Implemented as
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 scoped_ptr<SparseControl> sparse_; // Support for sparse entries. 265 scoped_ptr<SparseControl> sparse_; // Support for sparse entries.
262 266
263 net::BoundNetLog net_log_; 267 net::BoundNetLog net_log_;
264 268
265 DISALLOW_COPY_AND_ASSIGN(EntryImpl); 269 DISALLOW_COPY_AND_ASSIGN(EntryImpl);
266 }; 270 };
267 271
268 } // namespace disk_cache 272 } // namespace disk_cache
269 273
270 #endif // NET_DISK_CACHE_ENTRY_IMPL_H_ 274 #endif // NET_DISK_CACHE_ENTRY_IMPL_H_
OLDNEW
« no previous file with comments | « net/disk_cache/disk_cache_test_util.h ('k') | net/disk_cache/in_flight_backend_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698