summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_update_job.h
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 02:31:55 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-14 02:31:55 +0000
commit097dde28cb2f5967871351232406ebb7ec317ad3 (patch)
treeb935d8d1a54c4dcfb0c9e06b89436af70359190e /webkit/appcache/appcache_update_job.h
parent42061043c5f2186fb42fa9bef37c3ae3115e2fd3 (diff)
downloadchromium_src-097dde28cb2f5967871351232406ebb7ec317ad3.zip
chromium_src-097dde28cb2f5967871351232406ebb7ec317ad3.tar.gz
chromium_src-097dde28cb2f5967871351232406ebb7ec317ad3.tar.bz2
New javascript console logging related to the appcache.
* Log an error message when an update job results in an error. * Log info messages for progress events and other update status changed events. * Consistently use "Application Cache" in the console messages. TEST=existing unit tests apply for functional correctness, manual testing to see the new console output BUG=none Review URL: http://codereview.chromium.org/2910007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52270 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_update_job.h')
-rw-r--r--webkit/appcache/appcache_update_job.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/webkit/appcache/appcache_update_job.h b/webkit/appcache/appcache_update_job.h
index 8dc7fb3..d9c1669 100644
--- a/webkit/appcache/appcache_update_job.h
+++ b/webkit/appcache/appcache_update_job.h
@@ -104,7 +104,7 @@ class AppCacheUpdateJob : public URLRequest::Delegate,
void CheckPolicy();
void OnPolicyCheckComplete(int rv);
- void HandleCacheFailure();
+ void HandleCacheFailure(const std::string& error_message);
void FetchManifest(bool is_first_fetch);
@@ -143,10 +143,10 @@ class AppCacheUpdateJob : public URLRequest::Delegate,
void StoreGroupAndCache();
void NotifySingleHost(AppCacheHost* host, EventID event_id);
- void NotifyAllPendingMasterHosts(EventID event_id);
void NotifyAllAssociatedHosts(EventID event_id);
- void NotifyProgress(const GURL& url);
- void NotifyFinalProgress();
+ void NotifyAllProgress(const GURL& url);
+ void NotifyAllFinalProgress();
+ void NotifyAllError(const std::string& error_message);
void AddAllAssociatedHostsToNotifier(HostNotifier* notifier);
// Checks if manifest is byte for byte identical with the manifest
@@ -173,7 +173,7 @@ class AppCacheUpdateJob : public URLRequest::Delegate,
void AddMasterEntryToFetchList(AppCacheHost* host, const GURL& url,
bool is_new);
void FetchMasterEntries();
- void CancelAllMasterEntryFetches();
+ void CancelAllMasterEntryFetches(const std::string& error_message);
// Asynchronously loads the entry from the newest complete cache if the
// HTTP caching semantics allow.