| Index: webkit/appcache/web_application_cache_host_impl.h
|
| ===================================================================
|
| --- webkit/appcache/web_application_cache_host_impl.h (revision 53710)
|
| +++ webkit/appcache/web_application_cache_host_impl.h (working copy)
|
| @@ -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 @@
|
| 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 @@
|
| 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 @@
|
| 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_
|
| +
|
|
|