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

Side by Side Diff: content/browser/frame_host/navigation_handle_impl.cc

Issue 2446553002: Support Service Worker NavigationPreload with PlzNavigate. (Closed)
Patch Set: remove unnecessary comment Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/frame_host/navigation_handle_impl.h" 5 #include "content/browser/frame_host/navigation_handle_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/debug/dump_without_crashing.h" 9 #include "base/debug/dump_without_crashing.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 params.contents_mime_type = std::string("text/html"); 365 params.contents_mime_type = std::string("text/html");
366 366
367 DidCommitNavigation(params, false, render_frame_host_); 367 DidCommitNavigation(params, false, render_frame_host_);
368 } 368 }
369 369
370 NavigationData* NavigationHandleImpl::GetNavigationData() { 370 NavigationData* NavigationHandleImpl::GetNavigationData() {
371 return navigation_data_.get(); 371 return navigation_data_.get();
372 } 372 }
373 373
374 void NavigationHandleImpl::InitServiceWorkerHandle( 374 void NavigationHandleImpl::InitServiceWorkerHandle(
375 ServiceWorkerContextWrapper* service_worker_context) { 375 ServiceWorkerContextWrapper* service_worker_context,
376 const MojoURLLoaderFactoryGetter& url_loader_factory_getter) {
376 DCHECK(IsBrowserSideNavigationEnabled()); 377 DCHECK(IsBrowserSideNavigationEnabled());
377 service_worker_handle_.reset( 378 service_worker_handle_.reset(new ServiceWorkerNavigationHandle(
378 new ServiceWorkerNavigationHandle(service_worker_context)); 379 service_worker_context, url_loader_factory_getter));
379 } 380 }
380 381
381 void NavigationHandleImpl::WillStartRequest( 382 void NavigationHandleImpl::WillStartRequest(
382 const std::string& method, 383 const std::string& method,
383 scoped_refptr<content::ResourceRequestBodyImpl> resource_request_body, 384 scoped_refptr<content::ResourceRequestBodyImpl> resource_request_body,
384 const Referrer& sanitized_referrer, 385 const Referrer& sanitized_referrer,
385 bool has_user_gesture, 386 bool has_user_gesture,
386 ui::PageTransition transition, 387 ui::PageTransition transition,
387 bool is_external_protocol, 388 bool is_external_protocol,
388 RequestContextType request_context_type, 389 RequestContextType request_context_type,
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 throttles_to_register.end()); 753 throttles_to_register.end());
753 throttles_to_register.weak_clear(); 754 throttles_to_register.weak_clear();
754 } 755 }
755 } 756 }
756 757
757 bool NavigationHandleImpl::WasStartedFromContextMenu() const { 758 bool NavigationHandleImpl::WasStartedFromContextMenu() const {
758 return started_from_context_menu_; 759 return started_from_context_menu_;
759 } 760 }
760 761
761 } // namespace content 762 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698