| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/navigator.h" | 5 #include "content/browser/frame_host/navigator.h" |
| 6 | 6 |
| 7 #include "base/time/time.h" | 7 #include "base/time/time.h" |
| 8 #include "content/common/resource_request_body.h" | 8 #include "content/common/resource_request_body.h" |
| 9 #include "content/public/browser/stream_handle.h" | 9 #include "content/public/browser/stream_handle.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 | 12 |
| 13 NavigatorDelegate* Navigator::GetDelegate() { | 13 NavigatorDelegate* Navigator::GetDelegate() { |
| 14 return nullptr; | 14 return nullptr; |
| 15 } | 15 } |
| 16 | 16 |
| 17 NavigationController* Navigator::GetController() { | 17 NavigationController* Navigator::GetController() { |
| 18 return NULL; | 18 return NULL; |
| 19 } | 19 } |
| 20 | 20 |
| 21 bool Navigator::NavigateToPendingEntry( | 21 bool Navigator::NavigateToPendingEntry( |
| 22 FrameTreeNode* frame_tree_node, | 22 FrameTreeNode* frame_tree_node, |
| 23 const FrameNavigationEntry& frame_entry, | 23 const FrameNavigationEntry& frame_entry, |
| 24 NavigationController::ReloadType reload_type, | 24 NavigationController::ReloadType reload_type, |
| 25 bool is_same_document_history_load) { | 25 bool is_same_document_history_load, |
| 26 LoFiState lofi_state) { |
| 26 return false; | 27 return false; |
| 27 } | 28 } |
| 28 | 29 |
| 29 base::TimeTicks Navigator::GetCurrentLoadStart() { | 30 base::TimeTicks Navigator::GetCurrentLoadStart() { |
| 30 return base::TimeTicks::Now(); | 31 return base::TimeTicks::Now(); |
| 31 } | 32 } |
| 32 | 33 |
| 33 void Navigator::OnBeginNavigation( | 34 void Navigator::OnBeginNavigation( |
| 34 FrameTreeNode* frame_tree_node, | 35 FrameTreeNode* frame_tree_node, |
| 35 const CommonNavigationParams& common_params, | 36 const CommonNavigationParams& common_params, |
| 36 const BeginNavigationParams& begin_params, | 37 const BeginNavigationParams& begin_params, |
| 37 scoped_refptr<ResourceRequestBody> body) { | 38 scoped_refptr<ResourceRequestBody> body) { |
| 38 } | 39 } |
| 39 | 40 |
| 40 void Navigator::CommitNavigation(FrameTreeNode* frame_tree_node, | 41 void Navigator::CommitNavigation(FrameTreeNode* frame_tree_node, |
| 41 ResourceResponse* response, | 42 ResourceResponse* response, |
| 42 scoped_ptr<StreamHandle> body) { | 43 scoped_ptr<StreamHandle> body) { |
| 43 } | 44 } |
| 44 | 45 |
| 45 } // namespace content | 46 } // namespace content |
| OLD | NEW |