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

Side by Side Diff: webkit/appcache/appcache_interceptor.h

Issue 11230022: webkit: Merge build target 'appcache' to 'webkit_storage' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/appcache/appcache_host.h ('k') | webkit/appcache/appcache_interfaces.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_APPCACHE_APPCACHE_INTERCEPTOR_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_INTERCEPTOR_H_
6 #define WEBKIT_APPCACHE_APPCACHE_INTERCEPTOR_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_INTERCEPTOR_H_
7 7
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "net/url_request/url_request.h" 10 #include "net/url_request/url_request.h"
11 #include "webkit/appcache/appcache_export.h"
12 #include "webkit/glue/resource_type.h" 11 #include "webkit/glue/resource_type.h"
12 #include "webkit/storage/webkit_storage_export.h"
13 13
14 namespace appcache { 14 namespace appcache {
15 15
16 class AppCacheRequestHandler; 16 class AppCacheRequestHandler;
17 class AppCacheService; 17 class AppCacheService;
18 18
19 // An interceptor to hijack requests and potentially service them out of 19 // An interceptor to hijack requests and potentially service them out of
20 // the appcache. 20 // the appcache.
21 class APPCACHE_EXPORT AppCacheInterceptor 21 class WEBKIT_STORAGE_EXPORT AppCacheInterceptor
22 : public net::URLRequest::Interceptor { 22 : public net::URLRequest::Interceptor {
23 public: 23 public:
24 // Registers a singleton instance with the net library. 24 // Registers a singleton instance with the net library.
25 // Should be called early in the IO thread prior to initiating requests. 25 // Should be called early in the IO thread prior to initiating requests.
26 static void EnsureRegistered() { 26 static void EnsureRegistered() {
27 CHECK(GetInstance()); 27 CHECK(GetInstance());
28 } 28 }
29 29
30 // Must be called to make a request eligible for retrieval from an appcache. 30 // Must be called to make a request eligible for retrieval from an appcache.
31 static void SetExtraRequestInfo(net::URLRequest* request, 31 static void SetExtraRequestInfo(net::URLRequest* request,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 static void SetHandler(net::URLRequest* request, 64 static void SetHandler(net::URLRequest* request,
65 AppCacheRequestHandler* handler); 65 AppCacheRequestHandler* handler);
66 static AppCacheRequestHandler* GetHandler(net::URLRequest* request); 66 static AppCacheRequestHandler* GetHandler(net::URLRequest* request);
67 67
68 DISALLOW_COPY_AND_ASSIGN(AppCacheInterceptor); 68 DISALLOW_COPY_AND_ASSIGN(AppCacheInterceptor);
69 }; 69 };
70 70
71 } // namespace appcache 71 } // namespace appcache
72 72
73 #endif // WEBKIT_APPCACHE_APPCACHE_INTERCEPTOR_H_ 73 #endif // WEBKIT_APPCACHE_APPCACHE_INTERCEPTOR_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_host.h ('k') | webkit/appcache/appcache_interfaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698