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

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

Issue 1566713004: Fix a null AppCacheBackendImpl ptr crash in CompleteCrossSiteTransfer and re… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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_request_handler.h
diff --git a/content/browser/appcache/appcache_request_handler.h b/content/browser/appcache/appcache_request_handler.h
index d7b55e5a96b7feef7906d077785705d3b13e075d..7665d10e0b88cb56eb87e2f9c116d97219492199 100644
--- a/content/browser/appcache/appcache_request_handler.h
+++ b/content/browser/appcache/appcache_request_handler.h
@@ -25,6 +25,7 @@ class URLRequestJob;
namespace content {
class AppCacheRequestHandlerTest;
+class AppCacheService;
class AppCacheURLRequestJob;
// An instance is created for each net::URLRequest. The instance survives all
@@ -58,6 +59,12 @@ class CONTENT_EXPORT AppCacheRequestHandler
void CompleteCrossSiteTransfer(int new_process_id, int new_host_id);
void MaybeCompleteCrossSiteTransferInOldProcess(int old_process_id);
+ // Useful for detecting storage partition mismatches in the context
+ // of cross site transfer navigations.
+ bool SanityCheckIsSameService(AppCacheService* service) {
+ return !host_ || (host_->service() == service);
+ }
+
static bool IsMainResourceType(ResourceType type) {
return IsResourceTypeFrame(type) ||
type == RESOURCE_TYPE_SHARED_WORKER;
« no previous file with comments | « content/browser/appcache/appcache_interceptor.cc ('k') | content/browser/appcache/appcache_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698