diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-30 21:34:02 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-30 21:34:02 +0000 |
commit | 6981d96328621a75557dbf843c5aab83bf4f55a3 (patch) | |
tree | 8a95daea7aad9b8bce1ced62fda4068ed296125a /webkit/appcache/appcache_interceptor.cc | |
parent | d4e04a67c7f529bc8137c2dc5618e5a8c2123a13 (diff) | |
download | chromium_src-6981d96328621a75557dbf843c5aab83bf4f55a3.zip chromium_src-6981d96328621a75557dbf843c5aab83bf4f55a3.tar.gz chromium_src-6981d96328621a75557dbf843c5aab83bf4f55a3.tar.bz2 |
net: Remove typedef net::URLRequest URLRequest;
BUG=64263
TEST=compiled locally, trybots
Review URL: http://codereview.chromium.org/5384002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67762 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_interceptor.cc')
-rw-r--r-- | webkit/appcache/appcache_interceptor.cc | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/webkit/appcache/appcache_interceptor.cc b/webkit/appcache/appcache_interceptor.cc index 6fcd322..3f61e71 100644 --- a/webkit/appcache/appcache_interceptor.cc +++ b/webkit/appcache/appcache_interceptor.cc @@ -14,17 +14,18 @@ namespace appcache { void AppCacheInterceptor::SetHandler( - URLRequest* request, AppCacheRequestHandler* handler) { + net::URLRequest* request, AppCacheRequestHandler* handler) { request->SetUserData(instance(), handler); // request takes ownership } -AppCacheRequestHandler* AppCacheInterceptor::GetHandler(URLRequest* request) { +AppCacheRequestHandler* AppCacheInterceptor::GetHandler( + net::URLRequest* request) { return reinterpret_cast<AppCacheRequestHandler*>( request->GetUserData(instance())); } void AppCacheInterceptor::SetExtraRequestInfo( - URLRequest* request, AppCacheService* service, int process_id, + net::URLRequest* request, AppCacheService* service, int process_id, int host_id, ResourceType::Type resource_type) { if (!service || (host_id == kNoHostId)) return; @@ -46,7 +47,7 @@ void AppCacheInterceptor::SetExtraRequestInfo( SetHandler(request, handler); } -void AppCacheInterceptor::GetExtraResponseInfo(URLRequest* request, +void AppCacheInterceptor::GetExtraResponseInfo(net::URLRequest* request, int64* cache_id, GURL* manifest_url) { DCHECK(*cache_id == kNoCacheId); @@ -57,14 +58,14 @@ void AppCacheInterceptor::GetExtraResponseInfo(URLRequest* request, } AppCacheInterceptor::AppCacheInterceptor() { - URLRequest::RegisterRequestInterceptor(this); + net::URLRequest::RegisterRequestInterceptor(this); } AppCacheInterceptor::~AppCacheInterceptor() { - URLRequest::UnregisterRequestInterceptor(this); + net::URLRequest::UnregisterRequestInterceptor(this); } -URLRequestJob* AppCacheInterceptor::MaybeIntercept(URLRequest* request) { +URLRequestJob* AppCacheInterceptor::MaybeIntercept(net::URLRequest* request) { AppCacheRequestHandler* handler = GetHandler(request); if (!handler) return NULL; @@ -72,8 +73,8 @@ URLRequestJob* AppCacheInterceptor::MaybeIntercept(URLRequest* request) { } URLRequestJob* AppCacheInterceptor::MaybeInterceptRedirect( - URLRequest* request, - const GURL& location) { + net::URLRequest* request, + const GURL& location) { AppCacheRequestHandler* handler = GetHandler(request); if (!handler) return NULL; @@ -81,7 +82,7 @@ URLRequestJob* AppCacheInterceptor::MaybeInterceptRedirect( } URLRequestJob* AppCacheInterceptor::MaybeInterceptResponse( - URLRequest* request) { + net::URLRequest* request) { AppCacheRequestHandler* handler = GetHandler(request); if (!handler) return NULL; |