OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "content/browser/frame_host/navigator_delegate.h" | 10 #include "content/browser/frame_host/navigator_delegate.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "content/common/navigation_params.h" |
12 #include "content/public/browser/navigation_controller.h" | 13 #include "content/public/browser/navigation_controller.h" |
13 #include "ui/base/window_open_disposition.h" | 14 #include "ui/base/window_open_disposition.h" |
14 | 15 |
15 class GURL; | 16 class GURL; |
16 struct FrameHostMsg_BeginNavigation_Params; | 17 struct FrameHostMsg_BeginNavigation_Params; |
17 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 18 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
18 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 19 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
19 | 20 |
20 namespace base { | 21 namespace base { |
21 class TimeTicks; | 22 class TimeTicks; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // If this method returns false, then the navigation is discarded (equivalent | 86 // If this method returns false, then the navigation is discarded (equivalent |
86 // to calling DiscardPendingEntry on the NavigationController). | 87 // to calling DiscardPendingEntry on the NavigationController). |
87 // | 88 // |
88 // TODO(nasko): Remove this method from the interface, since Navigator and | 89 // TODO(nasko): Remove this method from the interface, since Navigator and |
89 // NavigationController know about each other. This will be possible once | 90 // NavigationController know about each other. This will be possible once |
90 // initialization of Navigator and NavigationController is properly done. | 91 // initialization of Navigator and NavigationController is properly done. |
91 virtual bool NavigateToPendingEntry( | 92 virtual bool NavigateToPendingEntry( |
92 FrameTreeNode* frame_tree_node, | 93 FrameTreeNode* frame_tree_node, |
93 const FrameNavigationEntry& frame_entry, | 94 const FrameNavigationEntry& frame_entry, |
94 NavigationController::ReloadType reload_type, | 95 NavigationController::ReloadType reload_type, |
95 bool is_same_document_history_load); | 96 bool is_same_document_history_load, |
| 97 LoFiState lofi_state); |
96 | 98 |
97 // Navigation requests ------------------------------------------------------- | 99 // Navigation requests ------------------------------------------------------- |
98 | 100 |
99 virtual base::TimeTicks GetCurrentLoadStart(); | 101 virtual base::TimeTicks GetCurrentLoadStart(); |
100 | 102 |
101 // The RenderFrameHostImpl has received a request to open a URL with the | 103 // The RenderFrameHostImpl has received a request to open a URL with the |
102 // specified |disposition|. | 104 // specified |disposition|. |
103 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 105 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, |
104 const GURL& url, | 106 const GURL& url, |
105 SiteInstance* source_site_instance, | 107 SiteInstance* source_site_instance, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 const base::TimeTicks& renderer_before_unload_end_time) {} | 179 const base::TimeTicks& renderer_before_unload_end_time) {} |
178 | 180 |
179 protected: | 181 protected: |
180 friend class base::RefCounted<Navigator>; | 182 friend class base::RefCounted<Navigator>; |
181 virtual ~Navigator() {} | 183 virtual ~Navigator() {} |
182 }; | 184 }; |
183 | 185 |
184 } // namespace content | 186 } // namespace content |
185 | 187 |
186 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 188 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
OLD | NEW |