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

Unified Diff: webkit/appcache/appcache_entry.h

Issue 300043: MockAppCacheStorage implemenation (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « no previous file | webkit/appcache/appcache_group.h » ('j') | webkit/appcache/mock_appcache_storage.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/appcache_entry.h
===================================================================
--- webkit/appcache/appcache_entry.h (revision 29670)
+++ webkit/appcache/appcache_entry.h (working copy)
@@ -5,6 +5,8 @@
#ifndef WEBKIT_APPCACHE_APPCACHE_ENTRY_H_
#define WEBKIT_APPCACHE_APPCACHE_ENTRY_H_
+#include "webkit/appcache/appcache_interfaces.h"
+
namespace appcache {
// A cached entry is identified by a URL and is classified into one
@@ -22,8 +24,14 @@
FALLBACK = 1 << 4,
};
- explicit AppCacheEntry(int type) : types_(type) {}
+ AppCacheEntry() : types_(0), response_id_(kNoResponseId) {}
+ explicit AppCacheEntry(int type)
+ : types_(type), response_id_(kNoResponseId) {}
+
+ AppCacheEntry(int type, int64 response_id)
+ : types_(type), response_id_(response_id) {}
+
int types() const { return types_; }
void add_types(int added_types) { types_ |= added_types; }
bool IsMaster() const { return (types_ & MASTER) != 0; }
@@ -32,10 +40,12 @@
bool IsForeign() const { return (types_ & FOREIGN) != 0; }
bool IsFallback() const { return (types_ & FALLBACK) != 0; }
+ int64 response_id() const { return response_id_; }
+ void set_response_id(int64 id) { response_id_ = id; }
+
private:
int types_;
-
- // TODO(jennb): response storage key
+ int64 response_id_;
};
} // namespace appcache
« no previous file with comments | « no previous file | webkit/appcache/appcache_group.h » ('j') | webkit/appcache/mock_appcache_storage.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698