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

Side by Side Diff: content/browser/appcache/appcache_host.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) 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 CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 friend class content::AppCacheUpdateJobTest; 181 friend class content::AppCacheUpdateJobTest;
182 182
183 AppCacheStatus GetStatus(); 183 AppCacheStatus GetStatus();
184 void LoadSelectedCache(int64 cache_id); 184 void LoadSelectedCache(int64 cache_id);
185 void LoadOrCreateGroup(const GURL& manifest_url); 185 void LoadOrCreateGroup(const GURL& manifest_url);
186 186
187 // See public Associate*Host() methods above. 187 // See public Associate*Host() methods above.
188 void AssociateCacheHelper(AppCache* cache, const GURL& manifest_url); 188 void AssociateCacheHelper(AppCache* cache, const GURL& manifest_url);
189 189
190 // AppCacheStorage::Delegate impl 190 // AppCacheStorage::Delegate impl
191 virtual void OnCacheLoaded(AppCache* cache, int64 cache_id) OVERRIDE; 191 virtual void OnCacheLoaded(AppCache* cache, int64 cache_id) override;
192 virtual void OnGroupLoaded(AppCacheGroup* group, 192 virtual void OnGroupLoaded(AppCacheGroup* group,
193 const GURL& manifest_url) OVERRIDE; 193 const GURL& manifest_url) override;
194 // AppCacheServiceImpl::Observer impl 194 // AppCacheServiceImpl::Observer impl
195 virtual void OnServiceReinitialized( 195 virtual void OnServiceReinitialized(
196 AppCacheStorageReference* old_storage_ref) OVERRIDE; 196 AppCacheStorageReference* old_storage_ref) override;
197 197
198 void FinishCacheSelection(AppCache* cache, AppCacheGroup* group); 198 void FinishCacheSelection(AppCache* cache, AppCacheGroup* group);
199 void DoPendingGetStatus(); 199 void DoPendingGetStatus();
200 void DoPendingStartUpdate(); 200 void DoPendingStartUpdate();
201 void DoPendingSwapCache(); 201 void DoPendingSwapCache();
202 202
203 void ObserveGroupBeingUpdated(AppCacheGroup* group); 203 void ObserveGroupBeingUpdated(AppCacheGroup* group);
204 204
205 // AppCacheGroup::UpdateObserver methods. 205 // AppCacheGroup::UpdateObserver methods.
206 virtual void OnUpdateComplete(AppCacheGroup* group) OVERRIDE; 206 virtual void OnUpdateComplete(AppCacheGroup* group) override;
207 207
208 // Returns true if this host is for a dedicated worker context. 208 // Returns true if this host is for a dedicated worker context.
209 bool is_for_dedicated_worker() const { 209 bool is_for_dedicated_worker() const {
210 return parent_host_id_ != kAppCacheNoHostId; 210 return parent_host_id_ != kAppCacheNoHostId;
211 } 211 }
212 212
213 // Returns the parent context's host instance. This is only valid 213 // Returns the parent context's host instance. This is only valid
214 // to call when this instance is_for_dedicated_worker. 214 // to call when this instance is_for_dedicated_worker.
215 AppCacheHost* GetParentAppCacheHost() const; 215 AppCacheHost* GetParentAppCacheHost() const;
216 216
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectCacheAllowed); 326 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectCacheAllowed);
327 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectCacheBlocked); 327 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectCacheBlocked);
328 FRIEND_TEST_ALL_PREFIXES(content::AppCacheTest, CleanupUnusedCache); 328 FRIEND_TEST_ALL_PREFIXES(content::AppCacheTest, CleanupUnusedCache);
329 329
330 DISALLOW_COPY_AND_ASSIGN(AppCacheHost); 330 DISALLOW_COPY_AND_ASSIGN(AppCacheHost);
331 }; 331 };
332 332
333 } // namespace content 333 } // namespace content
334 334
335 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_ 335 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_group_unittest.cc ('k') | content/browser/appcache/appcache_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698