summaryrefslogtreecommitdiffstats
path: root/content/browser/appcache/appcache_dispatcher_host.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 02:21:21 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-20 02:21:21 +0000
commit1ded764281537e5c5539b69a62d347f41900067f (patch)
tree5e7df728ff6ea8ef451df41490b7bd5519e8e738 /content/browser/appcache/appcache_dispatcher_host.h
parent40ded3df5caebd375b0431d3165e1c11768ec767 (diff)
downloadchromium_src-1ded764281537e5c5539b69a62d347f41900067f.zip
chromium_src-1ded764281537e5c5539b69a62d347f41900067f.tar.gz
chromium_src-1ded764281537e5c5539b69a62d347f41900067f.tar.bz2
Replace more uses of ChromeURLRequestContext/URLRequestContextGetter in content with ResourceContext
BUG=78596 TEST=none Review URL: http://codereview.chromium.org/6882016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/appcache/appcache_dispatcher_host.h')
-rw-r--r--content/browser/appcache/appcache_dispatcher_host.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/content/browser/appcache/appcache_dispatcher_host.h b/content/browser/appcache/appcache_dispatcher_host.h
index 8ff8044..776ef04 100644
--- a/content/browser/appcache/appcache_dispatcher_host.h
+++ b/content/browser/appcache/appcache_dispatcher_host.h
@@ -17,11 +17,9 @@
#include "webkit/appcache/appcache_backend_impl.h"
class ChromeAppCacheService;
-
-namespace net {
-class URLRequestContext;
-class URLRequestContextGetter;
-} // namespace net
+namespace content {
+class ResourceContext;
+} // namespace content
// Handles appcache related messages sent to the main browser process from
// its child processes. There is a distinct host for each child process.
@@ -29,14 +27,8 @@ class URLRequestContextGetter;
// WorkerProcessHost create an instance and delegates calls to it.
class AppCacheDispatcherHost : public BrowserMessageFilter {
public:
- // Constructor for use on the IO thread.
- AppCacheDispatcherHost(net::URLRequestContext* request_context,
- int process_id);
-
- // Constructor for use on the UI thread.
- AppCacheDispatcherHost(net::URLRequestContextGetter* request_context_getter,
+ AppCacheDispatcherHost(const content::ResourceContext* resource_context,
int process_id);
-
~AppCacheDispatcherHost();
// BrowserIOMessageFilter implementation
@@ -80,8 +72,7 @@ class AppCacheDispatcherHost : public BrowserMessageFilter {
// Temporary until OnChannelConnected() can be called from the IO thread,
// which will extract the AppCacheService from the net::URLRequestContext.
- scoped_refptr<net::URLRequestContext> request_context_;
- scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
+ const content::ResourceContext* resource_context_;
scoped_ptr<appcache::GetStatusCallback> get_status_callback_;
scoped_ptr<appcache::StartUpdateCallback> start_update_callback_;