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

Side by Side Diff: webkit/appcache/appcache_host.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_frontend_impl.h ('k') | webkit/appcache/appcache_interceptor.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_HOST_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_HOST_H_
6 #define WEBKIT_APPCACHE_APPCACHE_HOST_H_ 6 #define WEBKIT_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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 private: 152 private:
153 Status GetStatus(); 153 Status GetStatus();
154 void LoadSelectedCache(int64 cache_id); 154 void LoadSelectedCache(int64 cache_id);
155 void LoadOrCreateGroup(const GURL& manifest_url); 155 void LoadOrCreateGroup(const GURL& manifest_url);
156 156
157 // See public Associate*Host() methods above. 157 // See public Associate*Host() methods above.
158 void AssociateCacheHelper(AppCache* cache, const GURL& manifest_url); 158 void AssociateCacheHelper(AppCache* cache, const GURL& manifest_url);
159 159
160 // AppCacheStorage::Delegate impl 160 // AppCacheStorage::Delegate impl
161 virtual void OnCacheLoaded(AppCache* cache, int64 cache_id); 161 virtual void OnCacheLoaded(AppCache* cache, int64 cache_id) OVERRIDE;
162 virtual void OnGroupLoaded(AppCacheGroup* group, 162 virtual void OnGroupLoaded(AppCacheGroup* group,
163 const GURL& manifest_url); 163 const GURL& manifest_url) OVERRIDE;
164 164
165 void FinishCacheSelection(AppCache* cache, AppCacheGroup* group); 165 void FinishCacheSelection(AppCache* cache, AppCacheGroup* group);
166 void DoPendingGetStatus(); 166 void DoPendingGetStatus();
167 void DoPendingStartUpdate(); 167 void DoPendingStartUpdate();
168 void DoPendingSwapCache(); 168 void DoPendingSwapCache();
169 169
170 void ObserveGroupBeingUpdated(AppCacheGroup* group); 170 void ObserveGroupBeingUpdated(AppCacheGroup* group);
171 171
172 // AppCacheGroup::UpdateObserver methods. 172 // AppCacheGroup::UpdateObserver methods.
173 virtual void OnUpdateComplete(AppCacheGroup* group); 173 virtual void OnUpdateComplete(AppCacheGroup* group) OVERRIDE;
174 174
175 // Returns true if this host is for a dedicated worker context. 175 // Returns true if this host is for a dedicated worker context.
176 bool is_for_dedicated_worker() const { 176 bool is_for_dedicated_worker() const {
177 return parent_host_id_ != kNoHostId; 177 return parent_host_id_ != kNoHostId;
178 } 178 }
179 179
180 // Returns the parent context's host instance. This is only valid 180 // Returns the parent context's host instance. This is only valid
181 // to call when this instance is_for_dedicated_worker. 181 // to call when this instance is_for_dedicated_worker.
182 AppCacheHost* GetParentAppCacheHost() const; 182 AppCacheHost* GetParentAppCacheHost() const;
183 183
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 FRIEND_TEST_ALL_PREFIXES(AppCacheHostTest, SelectCacheAllowed); 280 FRIEND_TEST_ALL_PREFIXES(AppCacheHostTest, SelectCacheAllowed);
281 FRIEND_TEST_ALL_PREFIXES(AppCacheHostTest, SelectCacheBlocked); 281 FRIEND_TEST_ALL_PREFIXES(AppCacheHostTest, SelectCacheBlocked);
282 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate); 282 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate);
283 283
284 DISALLOW_COPY_AND_ASSIGN(AppCacheHost); 284 DISALLOW_COPY_AND_ASSIGN(AppCacheHost);
285 }; 285 };
286 286
287 } // namespace appcache 287 } // namespace appcache
288 288
289 #endif // WEBKIT_APPCACHE_APPCACHE_HOST_H_ 289 #endif // WEBKIT_APPCACHE_APPCACHE_HOST_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_frontend_impl.h ('k') | webkit/appcache/appcache_interceptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698