summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_interceptor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/appcache/appcache_interceptor.cc')
-rw-r--r--webkit/appcache/appcache_interceptor.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/webkit/appcache/appcache_interceptor.cc b/webkit/appcache/appcache_interceptor.cc
index 969b513..1c76df4 100644
--- a/webkit/appcache/appcache_interceptor.cc
+++ b/webkit/appcache/appcache_interceptor.cc
@@ -13,15 +13,20 @@
namespace appcache {
+// static
+AppCacheInterceptor* AppCacheInterceptor::GetInstance() {
+ return Singleton<AppCacheInterceptor>::get();
+}
+
void AppCacheInterceptor::SetHandler(
net::URLRequest* request, AppCacheRequestHandler* handler) {
- request->SetUserData(instance(), handler); // request takes ownership
+ request->SetUserData(GetInstance(), handler); // request takes ownership
}
AppCacheRequestHandler* AppCacheInterceptor::GetHandler(
net::URLRequest* request) {
return reinterpret_cast<AppCacheRequestHandler*>(
- request->GetUserData(instance()));
+ request->GetUserData(GetInstance()));
}
void AppCacheInterceptor::SetExtraRequestInfo(