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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 2116503004: Make Foreign Fetch an origin trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/service_worker/foreign_fetch_request_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "content/browser/loader/resource_dispatcher_host_impl.h" 7 #include "content/browser/loader/resource_dispatcher_host_impl.h"
8 8
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after
1534 is_sync_load ? SkipServiceWorker::ALL : request_data.skip_service_worker; 1534 is_sync_load ? SkipServiceWorker::ALL : request_data.skip_service_worker;
1535 ServiceWorkerRequestHandler::InitializeHandler( 1535 ServiceWorkerRequestHandler::InitializeHandler(
1536 new_request.get(), filter_->service_worker_context(), blob_context, 1536 new_request.get(), filter_->service_worker_context(), blob_context,
1537 child_id, request_data.service_worker_provider_id, 1537 child_id, request_data.service_worker_provider_id,
1538 should_skip_service_worker != SkipServiceWorker::NONE, 1538 should_skip_service_worker != SkipServiceWorker::NONE,
1539 request_data.fetch_request_mode, request_data.fetch_credentials_mode, 1539 request_data.fetch_request_mode, request_data.fetch_credentials_mode,
1540 request_data.fetch_redirect_mode, request_data.resource_type, 1540 request_data.fetch_redirect_mode, request_data.resource_type,
1541 request_data.fetch_request_context_type, request_data.fetch_frame_type, 1541 request_data.fetch_request_context_type, request_data.fetch_frame_type,
1542 request_data.request_body); 1542 request_data.request_body);
1543 1543
1544 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 1544 ForeignFetchRequestHandler::InitializeHandler(
1545 switches::kEnableExperimentalWebPlatformFeatures)) { 1545 new_request.get(), filter_->service_worker_context(), blob_context,
1546 ForeignFetchRequestHandler::InitializeHandler( 1546 child_id, request_data.service_worker_provider_id,
1547 new_request.get(), filter_->service_worker_context(), blob_context, 1547 should_skip_service_worker, request_data.fetch_request_mode,
1548 child_id, request_data.service_worker_provider_id, 1548 request_data.fetch_credentials_mode, request_data.fetch_redirect_mode,
1549 should_skip_service_worker, request_data.fetch_request_mode, 1549 request_data.resource_type, request_data.fetch_request_context_type,
1550 request_data.fetch_credentials_mode, request_data.fetch_redirect_mode, 1550 request_data.fetch_frame_type, request_data.request_body,
1551 request_data.resource_type, request_data.fetch_request_context_type, 1551 request_data.initiated_in_secure_context);
1552 request_data.fetch_frame_type, request_data.request_body,
1553 request_data.initiated_in_secure_context);
1554 }
1555 1552
1556 // Have the appcache associate its extra info with the request. 1553 // Have the appcache associate its extra info with the request.
1557 AppCacheInterceptor::SetExtraRequestInfo( 1554 AppCacheInterceptor::SetExtraRequestInfo(
1558 new_request.get(), filter_->appcache_service(), child_id, 1555 new_request.get(), filter_->appcache_service(), child_id,
1559 request_data.appcache_host_id, request_data.resource_type, 1556 request_data.appcache_host_id, request_data.resource_type,
1560 request_data.should_reset_appcache); 1557 request_data.should_reset_appcache);
1561 1558
1562 std::unique_ptr<ResourceHandler> handler(CreateResourceHandler( 1559 std::unique_ptr<ResourceHandler> handler(CreateResourceHandler(
1563 new_request.get(), request_data, sync_result, route_id, process_type, 1560 new_request.get(), request_data, sync_result, route_id, process_type,
1564 child_id, resource_context)); 1561 child_id, resource_context));
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
2668 << iter->filesystem_url().spec(); 2665 << iter->filesystem_url().spec();
2669 return false; 2666 return false;
2670 } 2667 }
2671 } 2668 }
2672 } 2669 }
2673 } 2670 }
2674 return true; 2671 return true;
2675 } 2672 }
2676 2673
2677 } // namespace content 2674 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/foreign_fetch_request_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698