Chromium Code Reviews

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

Issue 2460223003: Support Service Worker NavigationPreload with PlzNavigate. (Closed)
Patch Set: fix windows compile error Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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...)
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 ResourceMessageFilter* resource_message_filter) {
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, resource_message_filter));
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 366 matching lines...)
755 throttles_to_register.end()); 756 throttles_to_register.end());
756 throttles_to_register.weak_clear(); 757 throttles_to_register.weak_clear();
757 } 758 }
758 } 759 }
759 760
760 bool NavigationHandleImpl::WasStartedFromContextMenu() const { 761 bool NavigationHandleImpl::WasStartedFromContextMenu() const {
761 return started_from_context_menu_; 762 return started_from_context_menu_;
762 } 763 }
763 764
764 } // namespace content 765 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.h ('k') | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »

Powered by Google App Engine