Chromium Code Reviews| Index: webkit/appcache/appcache_interfaces.h |
| =================================================================== |
| --- webkit/appcache/appcache_interfaces.h (revision 112534) |
| +++ 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(); |
|
jennb
2011/12/05 23:23:07
Should comment that default is Fallback namespace
michaeln
2011/12/06 19:41:24
Done.
|
| + 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: |