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

Unified Diff: webkit/appcache/view_appcache_internals_job.h

Issue 7326023: about://appcache-internals enhancements (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « webkit/appcache/appcache_interfaces.cc ('k') | webkit/appcache/view_appcache_internals_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/view_appcache_internals_job.h
===================================================================
--- webkit/appcache/view_appcache_internals_job.h (revision 91517)
+++ webkit/appcache/view_appcache_internals_job.h (working copy)
@@ -5,53 +5,24 @@
#ifndef WEBKIT_APPCACHE_VIEW_APPCACHE_INTERNALS_JOB_H_
#define WEBKIT_APPCACHE_VIEW_APPCACHE_INTERNALS_JOB_H_
-#include <string>
+#include "base/basictypes.h"
-#include "net/url_request/url_request_simple_job.h"
-#include "webkit/appcache/appcache_service.h"
-
namespace net {
class URLRequest;
-} // namespace net
+class URLRequestJob;
+}
namespace appcache {
-// A job subclass that implements a protocol to inspect the internal
-// state of appcache service.
-class ViewAppCacheInternalsJob : public net::URLRequestSimpleJob {
+class AppCacheService;
+
+class ViewAppCacheInternalsJobFactory {
public:
- // Stores handle to appcache service for getting information.
- ViewAppCacheInternalsJob(net::URLRequest* request, AppCacheService* service);
+ static net::URLRequestJob* CreateJobForRequest(
+ net::URLRequest* request, AppCacheService* service);
- // Fetches the AppCache Info and calls StartAsync after it is done.
- virtual void Start();
-
- virtual bool GetData(std::string* mime_type,
- std::string* charset,
- std::string* data) const;
-
- // Overridden method from net::URLRequestJob.
- virtual bool IsRedirectResponse(GURL* location, int* http_status_code);
-
private:
- virtual ~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);
-
- // This is a common callback for both remove and getinfo for appcache.
- scoped_refptr<net::CancelableCompletionCallback<ViewAppCacheInternalsJob> >
- appcache_done_callback_;
-
- scoped_refptr<AppCacheInfoCollection> info_collection_;
- // Not owned.
- AppCacheService* appcache_service_;
-
- DISALLOW_COPY_AND_ASSIGN(ViewAppCacheInternalsJob);
+ DISALLOW_IMPLICIT_CONSTRUCTORS(ViewAppCacheInternalsJobFactory);
};
} // namespace appcache
« no previous file with comments | « webkit/appcache/appcache_interfaces.cc ('k') | webkit/appcache/view_appcache_internals_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698