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

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

Issue 702843004: Transfer serviceworker state during cross site navigations too. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 #include "content/browser/appcache/appcache_interceptor.h" 5 #include "content/browser/appcache/appcache_interceptor.h"
6 6
7 #include "content/browser/appcache/appcache_backend_impl.h" 7 #include "content/browser/appcache/appcache_backend_impl.h"
8 #include "content/browser/appcache/appcache_host.h" 8 #include "content/browser/appcache/appcache_host.h"
9 #include "content/browser/appcache/appcache_request_handler.h" 9 #include "content/browser/appcache/appcache_request_handler.h"
10 #include "content/browser/appcache/appcache_service_impl.h" 10 #include "content/browser/appcache/appcache_service_impl.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 int new_process_id, 78 int new_process_id,
79 int new_host_id) { 79 int new_host_id) {
80 AppCacheRequestHandler* handler = GetHandler(request); 80 AppCacheRequestHandler* handler = GetHandler(request);
81 if (!handler) 81 if (!handler)
82 return; 82 return;
83 DCHECK_NE(kAppCacheNoHostId, new_host_id); 83 DCHECK_NE(kAppCacheNoHostId, new_host_id);
84 handler->CompleteCrossSiteTransfer(new_process_id, 84 handler->CompleteCrossSiteTransfer(new_process_id,
85 new_host_id); 85 new_host_id);
86 } 86 }
87 87
88 void AppCacheInterceptor::MaybeCompleteCrossSiteTransferInOldProcess(
89 net::URLRequest* request,
90 int process_id) {
91 AppCacheRequestHandler* handler = GetHandler(request);
92 if (!handler)
93 return;
94 handler->MaybeCompleteCrossSiteTransferInOldProcess(process_id);
95 }
96
88 AppCacheInterceptor::AppCacheInterceptor() { 97 AppCacheInterceptor::AppCacheInterceptor() {
89 } 98 }
90 99
91 AppCacheInterceptor::~AppCacheInterceptor() { 100 AppCacheInterceptor::~AppCacheInterceptor() {
92 } 101 }
93 102
94 net::URLRequestJob* AppCacheInterceptor::MaybeInterceptRequest( 103 net::URLRequestJob* AppCacheInterceptor::MaybeInterceptRequest(
95 net::URLRequest* request, net::NetworkDelegate* network_delegate) const { 104 net::URLRequest* request, net::NetworkDelegate* network_delegate) const {
96 AppCacheRequestHandler* handler = GetHandler(request); 105 AppCacheRequestHandler* handler = GetHandler(request);
97 if (!handler) 106 if (!handler)
(...skipping 14 matching lines...) Expand all
112 121
113 net::URLRequestJob* AppCacheInterceptor::MaybeInterceptResponse( 122 net::URLRequestJob* AppCacheInterceptor::MaybeInterceptResponse(
114 net::URLRequest* request, net::NetworkDelegate* network_delegate) const { 123 net::URLRequest* request, net::NetworkDelegate* network_delegate) const {
115 AppCacheRequestHandler* handler = GetHandler(request); 124 AppCacheRequestHandler* handler = GetHandler(request);
116 if (!handler) 125 if (!handler)
117 return NULL; 126 return NULL;
118 return handler->MaybeLoadFallbackForResponse(request, network_delegate); 127 return handler->MaybeLoadFallbackForResponse(request, network_delegate);
119 } 128 }
120 129
121 } // namespace content 130 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698