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

Side by Side Diff: content/browser/appcache/appcache_interceptor.h

Issue 2501343003: PlzNavigate: AppCache support. (Closed)
Patch Set: Add DCHECKs for PlzNavigate and fix a double Release problem which caused one unit_test to fail wit… Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_BROWSER_APPCACHE_APPCACHE_INTERCEPTOR_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_INTERCEPTOR_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_INTERCEPTOR_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_INTERCEPTOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 class ResourceMessageFilter; 24 class ResourceMessageFilter;
25 25
26 // An interceptor to hijack requests and potentially service them out of 26 // An interceptor to hijack requests and potentially service them out of
27 // the appcache. 27 // the appcache.
28 class CONTENT_EXPORT AppCacheInterceptor : public net::URLRequestInterceptor { 28 class CONTENT_EXPORT AppCacheInterceptor : public net::URLRequestInterceptor {
29 public: 29 public:
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,
32 AppCacheServiceImpl* service, 32 AppCacheServiceImpl* service,
33 int process_id, 33 int process_id,
34 int frame_id,
34 int host_id, 35 int host_id,
35 ResourceType resource_type, 36 ResourceType resource_type,
36 bool should_reset_appcache); 37 bool should_reset_appcache);
37 38
38 // May be called after response headers are complete to retrieve extra 39 // May be called after response headers are complete to retrieve extra
39 // info about the response. 40 // info about the response.
40 static void GetExtraResponseInfo(net::URLRequest* request, 41 static void GetExtraResponseInfo(net::URLRequest* request,
41 int64_t* cache_id, 42 int64_t* cache_id,
42 GURL* manifest_url); 43 GURL* manifest_url);
43 44
(...skipping 28 matching lines...) Expand all
72 static void SetHandler(net::URLRequest* request, 73 static void SetHandler(net::URLRequest* request,
73 AppCacheRequestHandler* handler); 74 AppCacheRequestHandler* handler);
74 static AppCacheRequestHandler* GetHandler(net::URLRequest* request); 75 static AppCacheRequestHandler* GetHandler(net::URLRequest* request);
75 76
76 DISALLOW_COPY_AND_ASSIGN(AppCacheInterceptor); 77 DISALLOW_COPY_AND_ASSIGN(AppCacheInterceptor);
77 }; 78 };
78 79
79 } // namespace content 80 } // namespace content
80 81
81 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_INTERCEPTOR_H_ 82 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_INTERCEPTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698