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

Unified Diff: chrome/browser/renderer_host/offline_resource_throttle.h

Issue 9425026: Remove getters for HTML5 related objects from the ResourceContext interface. Half of them weren't u… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 10 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: chrome/browser/renderer_host/offline_resource_throttle.h
===================================================================
--- chrome/browser/renderer_host/offline_resource_throttle.h (revision 122771)
+++ chrome/browser/renderer_host/offline_resource_throttle.h (working copy)
@@ -17,6 +17,10 @@
class ChromeAppCacheService;
class ResourceDispatcherHost;
+namespace content {
+class ResourceContext;
+}
+
namespace net {
class URLRequest;
} // namespace net
@@ -29,7 +33,7 @@
OfflineResourceThrottle(int render_process_id,
int render_view_id,
net::URLRequest* request,
- ChromeAppCacheService* appcache_service);
+ content::ResourceContext* resource_context);
virtual ~OfflineResourceThrottle();
// content::ResourceThrottle implementation:
@@ -52,7 +56,8 @@
int render_process_id_;
int render_view_id_;
net::URLRequest* request_;
- ChromeAppCacheService* const appcache_service_;
+ // Safe to keep a pointer around since ResourceContext outlives all requests.
+ content::ResourceContext* resource_context_;
net::CancelableCompletionCallback appcache_completion_callback_;
DISALLOW_COPY_AND_ASSIGN(OfflineResourceThrottle);

Powered by Google App Engine
This is Rietveld 408576698