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

Unified Diff: webkit/appcache/appcache_group.h

Issue 300043: MockAppCacheStorage implemenation (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
Index: webkit/appcache/appcache_group.h
===================================================================
--- webkit/appcache/appcache_group.h (revision 29670)
+++ webkit/appcache/appcache_group.h (working copy)
@@ -45,21 +45,19 @@
void AddUpdateObserver(UpdateObserver* observer);
void RemoveUpdateObserver(UpdateObserver* observer);
- const GURL& manifest_url() { return manifest_url_; }
+ const GURL& manifest_url() const { return manifest_url_; }
- bool is_obsolete() { return is_obsolete_; }
+ bool is_obsolete() const { return is_obsolete_; }
void set_obsolete(bool value) { is_obsolete_ = value; }
- AppCache* newest_complete_cache() { return newest_complete_cache_; }
+ AppCache* newest_complete_cache() const { return newest_complete_cache_; }
void AddCache(AppCache* complete_cache);
-
void RemoveCache(AppCache* cache);
+ bool HasCache() const { return newest_complete_cache_ != NULL; }
- bool HasCache() { return newest_complete_cache_ != NULL; }
+ UpdateStatus update_status() const { return update_status_; }
- UpdateStatus update_status() { return update_status_; }
-
// Starts an update via update() javascript API.
void StartUpdate() {
StartUpdateWithHost(NULL);
@@ -79,13 +77,14 @@
private:
friend class AppCacheUpdateJob;
friend class AppCacheUpdateJobTest;
+ friend class MockAppCacheStorage; // for old_caches()
typedef std::vector<AppCache*> Caches;
AppCacheUpdateJob* update_job() { return update_job_; }
void SetUpdateStatus(UpdateStatus status);
- const Caches& old_caches() { return old_caches_; }
+ const Caches& old_caches() const { return old_caches_; }
GURL manifest_url_;
UpdateStatus update_status_;

Powered by Google App Engine
This is Rietveld 408576698