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

Side by Side Diff: webkit/appcache/appcache_storage_impl.h

Issue 8539047: Add OVERRIDE to webkit/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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 | « webkit/appcache/appcache_response.h ('k') | webkit/appcache/appcache_update_job.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 WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_
6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 17 matching lines...) Expand all
28 explicit AppCacheStorageImpl(AppCacheService* service); 28 explicit AppCacheStorageImpl(AppCacheService* service);
29 virtual ~AppCacheStorageImpl(); 29 virtual ~AppCacheStorageImpl();
30 30
31 void Initialize(const FilePath& cache_directory, 31 void Initialize(const FilePath& cache_directory,
32 base::MessageLoopProxy* db_thread, 32 base::MessageLoopProxy* db_thread,
33 base::MessageLoopProxy* cache_thread); 33 base::MessageLoopProxy* cache_thread);
34 void Disable(); 34 void Disable();
35 bool is_disabled() const { return is_disabled_; } 35 bool is_disabled() const { return is_disabled_; }
36 36
37 // AppCacheStorage methods, see the base class for doc comments. 37 // AppCacheStorage methods, see the base class for doc comments.
38 virtual void GetAllInfo(Delegate* delegate); 38 virtual void GetAllInfo(Delegate* delegate) OVERRIDE;
39 virtual void LoadCache(int64 id, Delegate* delegate); 39 virtual void LoadCache(int64 id, Delegate* delegate) OVERRIDE;
40 virtual void LoadOrCreateGroup(const GURL& manifest_url, Delegate* delegate); 40 virtual void LoadOrCreateGroup(const GURL& manifest_url,
41 virtual void StoreGroupAndNewestCache( 41 Delegate* delegate) OVERRIDE;
42 AppCacheGroup* group, AppCache* newest_cache, Delegate* delegate); 42 virtual void StoreGroupAndNewestCache(AppCacheGroup* group,
43 virtual void FindResponseForMainRequest( 43 AppCache* newest_cache,
44 const GURL& url, const GURL& preferred_manifest_url, Delegate* delegate); 44 Delegate* delegate) OVERRIDE;
45 virtual void FindResponseForMainRequest(const GURL& url,
46 const GURL& preferred_manifest_url,
47 Delegate* delegate) OVERRIDE;
45 virtual void FindResponseForSubRequest( 48 virtual void FindResponseForSubRequest(
46 AppCache* cache, const GURL& url, 49 AppCache* cache, const GURL& url,
47 AppCacheEntry* found_entry, AppCacheEntry* found_fallback_entry, 50 AppCacheEntry* found_entry, AppCacheEntry* found_fallback_entry,
48 bool* found_network_namespace); 51 bool* found_network_namespace) OVERRIDE;
49 virtual void MarkEntryAsForeign(const GURL& entry_url, int64 cache_id); 52 virtual void MarkEntryAsForeign(const GURL& entry_url,
50 virtual void MakeGroupObsolete(AppCacheGroup* group, Delegate* delegate); 53 int64 cache_id) OVERRIDE;
54 virtual void MakeGroupObsolete(AppCacheGroup* group,
55 Delegate* delegate) OVERRIDE;
51 virtual AppCacheResponseReader* CreateResponseReader( 56 virtual AppCacheResponseReader* CreateResponseReader(
52 const GURL& manifest_url, int64 group_id, int64 response_id); 57 const GURL& manifest_url, int64 group_id, int64 response_id) OVERRIDE;
53 virtual AppCacheResponseWriter* CreateResponseWriter( 58 virtual AppCacheResponseWriter* CreateResponseWriter(
54 const GURL& manifest_url, int64 group_id); 59 const GURL& manifest_url, int64 group_id) OVERRIDE;
55 virtual void DoomResponses( 60 virtual void DoomResponses(const GURL& manifest_url,
56 const GURL& manifest_url, const std::vector<int64>& response_ids); 61 const std::vector<int64>& response_ids) OVERRIDE;
57 virtual void DeleteResponses( 62 virtual void DeleteResponses(const GURL& manifest_url,
58 const GURL& manifest_url, const std::vector<int64>& response_ids); 63 const std::vector<int64>& response_ids) OVERRIDE;
59 virtual void PurgeMemory(); 64 virtual void PurgeMemory() OVERRIDE;
60 65
61 private: 66 private:
62 friend class AppCacheStorageImplTest; 67 friend class AppCacheStorageImplTest;
63 68
64 // The AppCacheStorageImpl class methods and datamembers may only be 69 // The AppCacheStorageImpl class methods and datamembers may only be
65 // accessed on the IO thread. This class manufactures seperate DatabaseTasks 70 // accessed on the IO thread. This class manufactures seperate DatabaseTasks
66 // which access the DB on a seperate background thread. 71 // which access the DB on a seperate background thread.
67 class DatabaseTask; 72 class DatabaseTask;
68 class InitTask; 73 class InitTask;
69 class CloseConnectionTask; 74 class CloseConnectionTask;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // any tasks on the background database thread. 171 // any tasks on the background database thread.
167 std::deque<base::Closure> pending_simple_tasks_; 172 std::deque<base::Closure> pending_simple_tasks_;
168 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; 173 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_;
169 174
170 friend class ChromeAppCacheServiceTest; 175 friend class ChromeAppCacheServiceTest;
171 }; 176 };
172 177
173 } // namespace appcache 178 } // namespace appcache
174 179
175 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 180 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_response.h ('k') | webkit/appcache/appcache_update_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698