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

Unified Diff: content/browser/appcache/appcache_interceptor.h

Issue 625433002: Pages controlled by ServiceWorkers should not participate in AppCaching (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/appcache/appcache_interceptor.h
diff --git a/content/browser/appcache/appcache_interceptor.h b/content/browser/appcache/appcache_interceptor.h
index 1cb59f767a4589bc454265f0eef3322becca159f..6b4a78ecce40d001066e91504f2d3f59e41ddf77 100644
--- a/content/browser/appcache/appcache_interceptor.h
+++ b/content/browser/appcache/appcache_interceptor.h
@@ -9,6 +9,7 @@
#include "content/common/content_export.h"
#include "content/public/common/resource_type.h"
#include "net/url_request/url_request.h"
+#include "net/url_request/url_request_interceptor.h"
#include "url/gurl.h"
namespace content {
@@ -48,6 +49,14 @@ class CONTENT_EXPORT AppCacheInterceptor
static AppCacheInterceptor* GetInstance();
+ // The appcache system employs two different interceptors. The singleton
+ // AppCacheInterceptor derives URLRequest::Interceptor and is used
+ // to hijack request handling upon receipt of the response or a redirect.
+ // A seperate URLRequestInterceptor derivative is used to hijack handling
falken 2014/10/14 01:24:49 nittttty nit: separate
+ // at the very start of request processing. The seperate handler allows the
falken 2014/10/14 01:24:49 separate
+ // content lib to order its collection of net::URLRequestInterceptors.
+ static scoped_ptr<net::URLRequestInterceptor> CreateStartInterceptor();
+
protected:
// Override from net::URLRequest::Interceptor:
virtual net::URLRequestJob* MaybeIntercept(
@@ -63,6 +72,7 @@ class CONTENT_EXPORT AppCacheInterceptor
private:
friend struct DefaultSingletonTraits<AppCacheInterceptor>;
+ class StartInterceptor;
AppCacheInterceptor();
virtual ~AppCacheInterceptor();

Powered by Google App Engine
This is Rietveld 408576698