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

Unified Diff: webkit/appcache/appcache_interfaces.h

Issue 8396013: AppCache INTERCEPT namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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_interfaces.h
===================================================================
--- webkit/appcache/appcache_interfaces.h (revision 113546)
+++ webkit/appcache/appcache_interfaces.h (working copy)
@@ -54,6 +54,11 @@
LOG_ERROR,
};
+enum NamespaceType {
+ FALLBACK_NAMESPACE,
+ INTERCEPT_NAMESPACE
+};
+
struct APPCACHE_EXPORT AppCacheInfo {
AppCacheInfo();
~AppCacheInfo();
@@ -80,6 +85,7 @@
int64 size;
bool is_master;
bool is_manifest;
+ bool is_intercept;
bool is_fallback;
bool is_foreign;
bool is_explicit;
@@ -88,6 +94,18 @@
typedef std::vector<AppCacheResourceInfo> AppCacheResourceInfoVector;
+struct APPCACHE_EXPORT Namespace {
+ Namespace(); // Type is set to FALLBACK_NAMESPACE by default.
+ Namespace(NamespaceType type, const GURL& url, const GURL& target);
+ ~Namespace();
+
+ NamespaceType type;
+ GURL namespace_url;
+ GURL target_url;
+};
+
+typedef std::vector<Namespace> NamespaceVector;
+
// Interface used by backend (browser-process) to talk to frontend (renderer).
class APPCACHE_EXPORT AppCacheFrontend {
public:

Powered by Google App Engine
This is Rietveld 408576698