diff options
author | kkanetkar@chromium.org <kkanetkar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-28 03:14:37 +0000 |
---|---|---|
committer | kkanetkar@chromium.org <kkanetkar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-28 03:14:37 +0000 |
commit | ec5c192817606b55ad99edb256997b70eea41b85 (patch) | |
tree | 16e863d9b1fa02f029c050b028177b7c984da6eb /webkit/appcache/web_application_cache_host_impl.h | |
parent | 16d35b25ec19b82c13dc7cd24f744951cc12fad0 (diff) | |
download | chromium_src-ec5c192817606b55ad99edb256997b70eea41b85.zip chromium_src-ec5c192817606b55ad99edb256997b70eea41b85.tar.gz chromium_src-ec5c192817606b55ad99edb256997b70eea41b85.tar.bz2 |
Chrome side of changes required to populate appcache resource list.
BUG = 2821005
TEST = Manually navigate.
Review URL: http://codereview.chromium.org/3009005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/web_application_cache_host_impl.h')
-rw-r--r-- | webkit/appcache/web_application_cache_host_impl.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/webkit/appcache/web_application_cache_host_impl.h b/webkit/appcache/web_application_cache_host_impl.h index f71398f..cdb812a 100644 --- a/webkit/appcache/web_application_cache_host_impl.h +++ b/webkit/appcache/web_application_cache_host_impl.h @@ -5,9 +5,12 @@ #ifndef WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ #define WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ +#include <string> +#include "base/time.h" #include "googleurl/src/gurl.h" #include "third_party/WebKit/WebKit/chromium/public/WebApplicationCacheHostClient.h" #include "third_party/WebKit/WebKit/chromium/public/WebURLResponse.h" +#include "third_party/WebKit/WebKit/chromium/public/WebVector.h" #include "webkit/appcache/appcache_interfaces.h" namespace WebKit { @@ -32,14 +35,13 @@ class WebApplicationCacheHostImpl : public WebKit::WebApplicationCacheHost { AppCacheBackend* backend() const { return backend_; } WebKit::WebApplicationCacheHostClient* client() const { return client_; } + virtual void OnCacheSelected(const appcache::AppCacheInfo& info); void OnStatusChanged(appcache::Status); void OnEventRaised(appcache::EventID); void OnProgressEventRaised(const GURL& url, int num_total, int num_complete); void OnErrorEventRaised(const std::string& message); virtual void OnLogMessage(LogLevel log_level, const std::string& message) {} virtual void OnContentBlocked(const GURL& manifest_url) {} - virtual void OnCacheSelected(int64 selected_cache_id, - appcache::Status status); // WebApplicationCacheHost methods virtual void willStartMainResourceRequest(WebKit::WebURLRequest&); @@ -52,6 +54,8 @@ class WebApplicationCacheHostImpl : public WebKit::WebApplicationCacheHost { virtual WebKit::WebApplicationCacheHost::Status status(); virtual bool startUpdate(); virtual bool swapCache(); + virtual void getResourceList(WebKit::WebVector<ResourceInfo>* resources); + virtual void getAssociatedCacheInfo(CacheInfo* info); private: enum IsNewMasterEntry { @@ -72,9 +76,11 @@ class WebApplicationCacheHostImpl : public WebKit::WebApplicationCacheHost { bool is_scheme_supported_; bool is_get_method_; IsNewMasterEntry is_new_master_entry_; + appcache::AppCacheInfo cache_info_; GURL original_main_resource_url_; // Used to detect redirection. }; } // namespace #endif // WEBKIT_APPCACHE_WEB_APPLICATION_CACHE_HOST_IMPL_H_ + |