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

Unified Diff: webkit/appcache/web_application_cache_host_impl.h

Issue 3009005: Chrome side of changes required to populate appcache resource list.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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
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_
+

Powered by Google App Engine
This is Rietveld 408576698