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

Side by Side Diff: content/browser/appcache/appcache_response.h

Issue 631773003: Replacing the OVERRIDE with override and FINAL with final in content/browser/appcache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 CONTENT_BROWSER_APPCACHE_APPCACHE_RESPONSE_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_RESPONSE_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_RESPONSE_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_RESPONSE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 protected: 171 protected:
172 friend class AppCacheStorageImpl; 172 friend class AppCacheStorageImpl;
173 friend class content::MockAppCacheStorage; 173 friend class content::MockAppCacheStorage;
174 174
175 // Should only be constructed by the storage class and derivatives. 175 // Should only be constructed by the storage class and derivatives.
176 AppCacheResponseReader(int64 response_id, 176 AppCacheResponseReader(int64 response_id,
177 int64 group_id, 177 int64 group_id,
178 AppCacheDiskCacheInterface* disk_cache); 178 AppCacheDiskCacheInterface* disk_cache);
179 179
180 virtual void OnIOComplete(int result) OVERRIDE; 180 virtual void OnIOComplete(int result) override;
181 void ContinueReadInfo(); 181 void ContinueReadInfo();
182 void ContinueReadData(); 182 void ContinueReadData();
183 void OpenEntryIfNeededAndContinue(); 183 void OpenEntryIfNeededAndContinue();
184 void OnOpenEntryComplete(AppCacheDiskCacheInterface::Entry** entry, int rv); 184 void OnOpenEntryComplete(AppCacheDiskCacheInterface::Entry** entry, int rv);
185 185
186 int range_offset_; 186 int range_offset_;
187 int range_length_; 187 int range_length_;
188 int read_position_; 188 int read_position_;
189 net::CompletionCallback open_callback_; 189 net::CompletionCallback open_callback_;
190 base::WeakPtrFactory<AppCacheResponseReader> weak_factory_; 190 base::WeakPtrFactory<AppCacheResponseReader> weak_factory_;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 friend class AppCacheStorageImpl; 236 friend class AppCacheStorageImpl;
237 friend class content::MockAppCacheStorage; 237 friend class content::MockAppCacheStorage;
238 238
239 enum CreationPhase { 239 enum CreationPhase {
240 NO_ATTEMPT, 240 NO_ATTEMPT,
241 INITIAL_ATTEMPT, 241 INITIAL_ATTEMPT,
242 DOOM_EXISTING, 242 DOOM_EXISTING,
243 SECOND_ATTEMPT 243 SECOND_ATTEMPT
244 }; 244 };
245 245
246 virtual void OnIOComplete(int result) OVERRIDE; 246 virtual void OnIOComplete(int result) override;
247 void ContinueWriteInfo(); 247 void ContinueWriteInfo();
248 void ContinueWriteData(); 248 void ContinueWriteData();
249 void CreateEntryIfNeededAndContinue(); 249 void CreateEntryIfNeededAndContinue();
250 void OnCreateEntryComplete(AppCacheDiskCacheInterface::Entry** entry, int rv); 250 void OnCreateEntryComplete(AppCacheDiskCacheInterface::Entry** entry, int rv);
251 251
252 int info_size_; 252 int info_size_;
253 int write_position_; 253 int write_position_;
254 int write_amount_; 254 int write_amount_;
255 CreationPhase creation_phase_; 255 CreationPhase creation_phase_;
256 net::CompletionCallback create_callback_; 256 net::CompletionCallback create_callback_;
257 base::WeakPtrFactory<AppCacheResponseWriter> weak_factory_; 257 base::WeakPtrFactory<AppCacheResponseWriter> weak_factory_;
258 }; 258 };
259 259
260 } // namespace content 260 } // namespace content
261 261
262 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_RESPONSE_H_ 262 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_RESPONSE_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_request_handler_unittest.cc ('k') | content/browser/appcache/appcache_response_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698