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

Unified Diff: webkit/common/appcache/appcache_interfaces.h

Issue 164933002: Expose details for appcache error events [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review feedback Created 6 years, 10 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/common/appcache/appcache_interfaces.h
diff --git a/webkit/common/appcache/appcache_interfaces.h b/webkit/common/appcache/appcache_interfaces.h
index b631728528af82271281c79b78572a06219b1e96..45314aa7a424050ef11c4d756ee896677abfc4da 100644
--- a/webkit/common/appcache/appcache_interfaces.h
+++ b/webkit/common/appcache/appcache_interfaces.h
@@ -64,6 +64,18 @@ enum NamespaceType {
NETWORK_NAMESPACE
};
+enum ErrorReason {
+ ERROR_MANIFEST_FETCH,
+ ERROR_MANIFEST_INVALID,
+ ERROR_MANIFEST_CHANGED,
+ ERROR_MANIFEST_OBSOLETE,
+ ERROR_RESOURCE_FETCH,
+ ERROR_QUOTA_EXCEEDED,
+ ERROR_POLICY,
+ ERROR_INTERNAL,
+ ERROR_LAST = ERROR_INTERNAL
+};
+
struct WEBKIT_STORAGE_COMMON_EXPORT AppCacheInfo {
AppCacheInfo();
~AppCacheInfo();
@@ -131,7 +143,10 @@ class WEBKIT_STORAGE_COMMON_EXPORT AppCacheFrontend {
const GURL& url,
int num_total, int num_complete) = 0;
virtual void OnErrorEventRaised(const std::vector<int>& host_ids,
- const std::string& message) = 0;
+ const std::string& message,
+ appcache::ErrorReason reason,
+ const GURL& url,
+ int status) = 0;
virtual void OnContentBlocked(int host_id,
const GURL& manifest_url) = 0;
virtual void OnLogMessage(int host_id, LogLevel log_level,

Powered by Google App Engine
This is Rietveld 408576698