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

Unified Diff: webkit/browser/appcache/manifest_parser.h

Issue 276093003: appcache content-type check (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« no previous file with comments | « webkit/browser/appcache/appcache_update_job.cc ('k') | webkit/browser/appcache/manifest_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/appcache/manifest_parser.h
diff --git a/webkit/browser/appcache/manifest_parser.h b/webkit/browser/appcache/manifest_parser.h
index 44661ef1fa0da3a65965c728e2f4f1ae10cbd348..c8d5f00a91359201cf71cffcb0aa313527bde7dc 100644
--- a/webkit/browser/appcache/manifest_parser.h
+++ b/webkit/browser/appcache/manifest_parser.h
@@ -52,12 +52,20 @@ struct WEBKIT_STORAGE_BROWSER_EXPORT Manifest {
NamespaceVector fallback_namespaces;
NamespaceVector online_whitelist_namespaces;
bool online_whitelist_all;
+ bool did_ignore_intercept_namespaces;
};
-WEBKIT_STORAGE_BROWSER_EXPORT bool ParseManifest(const GURL& manifest_url,
- const char* data,
- int length,
- Manifest& manifest);
+enum ParseMode {
+ PARSE_MANIFEST_PER_STANDARD,
+ PARSE_MANIFEST_ALLOWING_INTERCEPTS
+};
+
+WEBKIT_STORAGE_BROWSER_EXPORT bool ParseManifest(
+ const GURL& manifest_url,
+ const char* data,
+ int length,
+ ParseMode parse_mode,
+ Manifest& manifest);
} // namespace appcache
« no previous file with comments | « webkit/browser/appcache/appcache_update_job.cc ('k') | webkit/browser/appcache/manifest_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698