| OLD | NEW |
| 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 Loading... |
| 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...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |