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

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

Issue 137883005: crossSite navs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: webkit/browser/appcache/appcache_request_handler.h
diff --git a/webkit/browser/appcache/appcache_request_handler.h b/webkit/browser/appcache/appcache_request_handler.h
index 606d6cf1c3857e0e4e6a6101c82983a46161f1a9..325313f96162179d4aed2f645ee3cebe6783e0d7 100644
--- a/webkit/browser/appcache/appcache_request_handler.h
+++ b/webkit/browser/appcache/appcache_request_handler.h
@@ -46,6 +46,10 @@ class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheRequestHandler
void GetExtraResponseInfo(int64* cache_id, GURL* manifest_url);
+ // Methods to support cross site navigations.
+ void PrepareForCrossSiteTransfer(int old_process_id);
+ void CompleteCrossSiteTransfer(int new_process_id, int new_host_id);
+
static bool IsMainResourceType(ResourceType::Type type) {
return ResourceType::IsFrame(type) ||
ResourceType::IsSharedWorker(type);
@@ -131,6 +135,10 @@ class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheRequestHandler
// The job we use to deliver a response.
scoped_refptr<AppCacheURLRequestJob> job_;
+ // During a cross site navigation, we transfer ownership the AppcacheHost
+ // from the old processes structures over to the new structures.
+ scoped_ptr<AppCacheHost> host_for_cross_site_transfer_;
+
friend class AppCacheRequestHandlerTest;
DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler);
};
« no previous file with comments | « webkit/browser/appcache/appcache_interceptor.cc ('k') | webkit/browser/appcache/appcache_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698