diff options
author | kkanetkar@chromium.org <kkanetkar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-02 01:46:54 +0000 |
---|---|---|
committer | kkanetkar@chromium.org <kkanetkar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-02 01:46:54 +0000 |
commit | 493d192f856567f441b2a8b436b9fb7ddfdbd4ad (patch) | |
tree | 30b1dd1f92cda60af3b2af6985b6a47e65ce72a6 /webkit/appcache/view_appcache_internals_job.h | |
parent | c8ac1e8a3e1cb541985c7b048baf31521ad9e4f7 (diff) | |
download | chromium_src-493d192f856567f441b2a8b436b9fb7ddfdbd4ad.zip chromium_src-493d192f856567f441b2a8b436b9fb7ddfdbd4ad.tar.gz chromium_src-493d192f856567f441b2a8b436b9fb7ddfdbd4ad.tar.bz2 |
Adding disabled appcaches information along with capability of
removing appcaches with button clicks.
BUG=38463
TEST=Run chrome, navigate to about:appcache-internals, add/view/remove appcaches.
Review URL: http://codereview.chromium.org/1576009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43430 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/view_appcache_internals_job.h')
-rw-r--r-- | webkit/appcache/view_appcache_internals_job.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/webkit/appcache/view_appcache_internals_job.h b/webkit/appcache/view_appcache_internals_job.h index dd5c9cf..fee0801 100644 --- a/webkit/appcache/view_appcache_internals_job.h +++ b/webkit/appcache/view_appcache_internals_job.h @@ -24,24 +24,27 @@ class ViewAppCacheInternalsJob : public URLRequestSimpleJob { // Fetches the AppCache Info and calls StartAsync after it is done. virtual void Start(); - // URLRequestSimpleJob methods: virtual bool GetData(std::string* mime_type, std::string* charset, std::string* data) const; - // Callback after asynchronously fetching contents for appcache service. - void OnGotAppCacheInfo(int rv); + // Overridden method from URLRequestJob. + virtual bool IsRedirectResponse(GURL* location, int* http_status_code); private: ~ViewAppCacheInternalsJob(); + void AppCacheDone(int rv); + // Adds HTML from appcache information to out. void GenerateHTMLAppCacheInfo(std::string* out) const; + void GetAppCacheInfoAsync(); + void RemoveAppCacheInfoAsync(const std::string& manifest_url_spec); - // Callback for post-processing. + // This is a common callback for both remove and getinfo for appcache. scoped_refptr<net::CancelableCompletionCallback<ViewAppCacheInternalsJob> > - appcache_info_callback_; - // Store appcache information. + appcache_done_callback_; + scoped_refptr<AppCacheInfoCollection> info_collection_; // Not owned. AppCacheService* appcache_service_; |