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 return false; | 26 return false; |
27 } | 27 } |
28 | 28 |
| 29 bool Navigator::NavigateNewChildFrame(RenderFrameHostImpl* render_frame_host, |
| 30 const std::string& unique_name) { |
| 31 return false; |
| 32 } |
| 33 |
29 base::TimeTicks Navigator::GetCurrentLoadStart() { | 34 base::TimeTicks Navigator::GetCurrentLoadStart() { |
30 return base::TimeTicks::Now(); | 35 return base::TimeTicks::Now(); |
31 } | 36 } |
32 | 37 |
33 void Navigator::OnBeginNavigation( | 38 void Navigator::OnBeginNavigation( |
34 FrameTreeNode* frame_tree_node, | 39 FrameTreeNode* frame_tree_node, |
35 const CommonNavigationParams& common_params, | 40 const CommonNavigationParams& common_params, |
36 const BeginNavigationParams& begin_params, | 41 const BeginNavigationParams& begin_params, |
37 scoped_refptr<ResourceRequestBody> body) { | 42 scoped_refptr<ResourceRequestBody> body) { |
38 } | 43 } |
39 | 44 |
40 void Navigator::CommitNavigation(FrameTreeNode* frame_tree_node, | 45 void Navigator::CommitNavigation(FrameTreeNode* frame_tree_node, |
41 ResourceResponse* response, | 46 ResourceResponse* response, |
42 scoped_ptr<StreamHandle> body) { | 47 scoped_ptr<StreamHandle> body) { |
43 } | 48 } |
44 | 49 |
45 } // namespace content | 50 } // namespace content |
OLD | NEW |