Chromium Code Reviews| Index: content/browser/frame_host/navigation_request.cc |
| diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc |
| index a99074f2ce3aeb56440b44cc0e9530f0f0c1db39..4775c2ce61847fe92c8ae301f285073a828b2c01 100644 |
| --- a/content/browser/frame_host/navigation_request.cc |
| +++ b/content/browser/frame_host/navigation_request.cc |
| @@ -11,6 +11,7 @@ |
| #include "content/browser/frame_host/navigation_request_info.h" |
| #include "content/browser/frame_host/navigator.h" |
| #include "content/browser/loader/navigation_url_loader.h" |
| +#include "content/browser/service_worker/service_worker_provider_host.h" |
| #include "content/browser/site_instance_impl.h" |
| #include "content/common/resource_request_body.h" |
| #include "content/public/browser/navigation_controller.h" |
| @@ -85,10 +86,19 @@ scoped_ptr<NavigationRequest> NavigationRequest::CreateBrowserInitiated( |
| scoped_ptr<NavigationRequest> navigation_request(new NavigationRequest( |
| frame_tree_node, |
| - entry.ConstructCommonNavigationParams(dest_url, dest_referrer, |
| - frame_entry, navigation_type), |
| - BeginNavigationParams(method, headers.ToString(), |
| - LoadFlagFromNavigationType(navigation_type), false), |
| + entry.ConstructCommonNavigationParams( |
| + dest_url, dest_referrer, frame_entry, navigation_type, |
| + ServiceWorkerProviderHost::GetNextBrowserProviderID()), |
| + BeginNavigationParams(method, |
| + headers.ToString(), |
| + LoadFlagFromNavigationType(navigation_type), |
| + false, // has_user_gestures |
| + false, // skip_service_worker |
| + FETCH_REQUEST_MODE_NO_CORS, |
| + FETCH_CREDENTIALS_MODE_SAME_ORIGIN, |
| + FetchRedirectMode::FOLLOW_MODE, |
| + REQUEST_CONTEXT_TYPE_LOCATION, |
| + REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL), |
|
nasko
2015/08/20 16:49:50
I don't think we can hardcode REQUEST_CONTEXT_FRAM
Fabrice (no longer in Chrome)
2015/08/26 13:23:24
Done.
|
| entry.ConstructRequestNavigationParams( |
| frame_entry, navigation_start, is_same_document_history_load, |
| frame_tree_node->has_committed_real_load(), |