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

Side by Side Diff: net/disk_cache/mem_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/mem_backend_impl.h ('k') | net/disk_cache/net_log_parameters.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_MEM_ENTRY_IMPL_H_ 5 #ifndef NET_DISK_CACHE_MEM_ENTRY_IMPL_H_
6 #define NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ 6 #define NET_DISK_CACHE_MEM_ENTRY_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 std::string& key() { 86 std::string& key() {
87 return key_; 87 return key_;
88 } 88 }
89 89
90 net::BoundNetLog& net_log() { 90 net::BoundNetLog& net_log() {
91 return net_log_; 91 return net_log_;
92 } 92 }
93 93
94 // Entry interface. 94 // Entry interface.
95 virtual void Doom(); 95 virtual void Doom() OVERRIDE;
96 virtual void Close(); 96 virtual void Close() OVERRIDE;
97 virtual std::string GetKey() const; 97 virtual std::string GetKey() const OVERRIDE;
98 virtual base::Time GetLastUsed() const; 98 virtual base::Time GetLastUsed() const OVERRIDE;
99 virtual base::Time GetLastModified() const; 99 virtual base::Time GetLastModified() const OVERRIDE;
100 virtual int32 GetDataSize(int index) const; 100 virtual int32 GetDataSize(int index) const OVERRIDE;
101 virtual int ReadData(int index, int offset, net::IOBuffer* buf, int buf_len, 101 virtual int ReadData(
102 net::OldCompletionCallback* completion_callback); 102 int index, int offset, net::IOBuffer* buf, int buf_len,
103 net::OldCompletionCallback* completion_callback) OVERRIDE;
103 virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len, 104 virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len,
104 net::OldCompletionCallback* completion_callback, 105 net::OldCompletionCallback* completion_callback,
105 bool truncate); 106 bool truncate) OVERRIDE;
106 virtual int ReadSparseData(int64 offset, net::IOBuffer* buf, int buf_len, 107 virtual int ReadSparseData(
107 net::OldCompletionCallback* completion_callback); 108 int64 offset, net::IOBuffer* buf, int buf_len,
108 virtual int WriteSparseData(int64 offset, net::IOBuffer* buf, int buf_len, 109 net::OldCompletionCallback* completion_callback) OVERRIDE;
109 net::OldCompletionCallback* completion_callback); 110 virtual int WriteSparseData(
111 int64 offset, net::IOBuffer* buf, int buf_len,
112 net::OldCompletionCallback* completion_callback) OVERRIDE;
110 virtual int GetAvailableRange(int64 offset, int len, int64* start, 113 virtual int GetAvailableRange(int64 offset, int len, int64* start,
111 OldCompletionCallback* callback); 114 OldCompletionCallback* callback) OVERRIDE;
112 virtual bool CouldBeSparse() const; 115 virtual bool CouldBeSparse() const OVERRIDE;
113 virtual void CancelSparseIO() {} 116 virtual void CancelSparseIO() OVERRIDE {}
114 virtual int ReadyForSparseIO(net::OldCompletionCallback* completion_callback); 117 virtual int ReadyForSparseIO(
118 net::OldCompletionCallback* completion_callback) OVERRIDE;
115 119
116 private: 120 private:
117 typedef base::hash_map<int, MemEntryImpl*> EntryMap; 121 typedef base::hash_map<int, MemEntryImpl*> EntryMap;
118 122
119 enum { 123 enum {
120 NUM_STREAMS = 3 124 NUM_STREAMS = 3
121 }; 125 };
122 126
123 virtual ~MemEntryImpl(); 127 virtual ~MemEntryImpl();
124 128
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 bool doomed_; // True if this entry was removed from the cache. 185 bool doomed_; // True if this entry was removed from the cache.
182 186
183 net::BoundNetLog net_log_; 187 net::BoundNetLog net_log_;
184 188
185 DISALLOW_COPY_AND_ASSIGN(MemEntryImpl); 189 DISALLOW_COPY_AND_ASSIGN(MemEntryImpl);
186 }; 190 };
187 191
188 } // namespace disk_cache 192 } // namespace disk_cache
189 193
190 #endif // NET_DISK_CACHE_MEM_ENTRY_IMPL_H_ 194 #endif // NET_DISK_CACHE_MEM_ENTRY_IMPL_H_
OLDNEW
« no previous file with comments | « net/disk_cache/mem_backend_impl.h ('k') | net/disk_cache/net_log_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698