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

Unified Diff: content/public/browser/appcache_service.h

Issue 2642733002: Prerender: Disable prefetch if there's an appcache. (Closed)
Patch Set: Use appcache id rather than existence of tags in main resource Created 3 years, 10 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/public/browser/appcache_service.h
diff --git a/content/public/browser/appcache_service.h b/content/public/browser/appcache_service.h
index 5daaa5858581f3d8bb3b20a9391a5ed1cc596510..bc2e83266862a6b0cb29bbc443e7add6cba9ec3b 100644
--- a/content/public/browser/appcache_service.h
+++ b/content/public/browser/appcache_service.h
@@ -14,6 +14,10 @@
#include "content/public/common/appcache_info.h"
#include "net/base/completion_callback.h"
+namespace net {
+class URLRequest;
+} // namespace net
+
namespace content {
// Refcounted container to avoid copying the collection in callbacks.
@@ -47,6 +51,8 @@ class CONTENT_EXPORT AppCacheService {
virtual void DeleteAppCacheGroup(const GURL& manifest_url,
const net::CompletionCallback& callback) = 0;
+ static bool URLRequestHasActiveAppCache(const net::URLRequest* request);
droger 2017/02/07 10:40:38 Nit: the style guide recommends const reference.
mattcary 2017/02/07 11:28:46 Changed to nonconst * so that I don't have to chan
+
protected:
virtual ~AppCacheService() {}
};

Powered by Google App Engine
This is Rietveld 408576698