From 97e3edc23314c476859c22c8db601f9b3dec552d Mon Sep 17 00:00:00 2001 From: "michaeln@google.com" Date: Tue, 15 Sep 2009 22:07:15 +0000 Subject: * Fleshed out AppCacheHost class a fair amount, in particular the cache selection algorithm. * Added some AppCacheHost unit tests. * Introduced AppCacheRequestHandler class, which replaces the clunkyApp CacheInterceptor::ExtraInfo struct. This impl is entirely skeletal stubs for now. TEST=appcache_unittest.cc, but really needs more BUG=none Review URL: http://codereview.chromium.org/192043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26275 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/appcache/appcache_entry.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'webkit/appcache/appcache_entry.h') diff --git a/webkit/appcache/appcache_entry.h b/webkit/appcache/appcache_entry.h index 5629cc2..434568a 100644 --- a/webkit/appcache/appcache_entry.h +++ b/webkit/appcache/appcache_entry.h @@ -5,8 +5,6 @@ #ifndef WEBKIT_APPCACHE_APPCACHE_ENTRY_H_ #define WEBKIT_APPCACHE_APPCACHE_ENTRY_H_ -#include "googleurl/src/gurl.h" - namespace appcache { // A cached entry is identified by a URL and is classified into one @@ -28,11 +26,11 @@ class AppCacheEntry { int types() const { return types_; } void add_types(int added_types) { types_ |= added_types; } - bool IsMaster() const { return types_ & MASTER; } - bool IsManifest() const { return types_ & MANIFEST; } - bool IsExplicit() const { return types_ & EXPLICIT; } - bool IsForeign() const { return types_ & FOREIGN; } - bool IsFallback() const { return types_ & FALLBACK; } + bool IsMaster() const { return (types_ & MASTER) != 0; } + bool IsManifest() const { return (types_ & MANIFEST) != 0; } + bool IsExplicit() const { return (types_ & EXPLICIT) != 0; } + bool IsForeign() const { return (types_ & FOREIGN) != 0; } + bool IsFallback() const { return (types_ & FALLBACK) != 0; } private: int types_; -- cgit v1.1