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 "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
11 #include "ui/base/window_open_disposition.h" | 11 #include "ui/base/window_open_disposition.h" |
12 | 12 |
13 class GURL; | 13 class GURL; |
14 struct FrameHostMsg_BeginNavigation_Params; | 14 struct FrameHostMsg_BeginNavigation_Params; |
15 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 15 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
16 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 16 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 class TimeTicks; | 19 class TimeTicks; |
20 } | 20 } |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 | 23 |
24 class NavigationControllerImpl; | 24 class NavigationControllerImpl; |
25 class NavigationEntryImpl; | 25 class NavigationEntryImpl; |
26 class NavigatorDelegate; | 26 class NavigatorDelegate; |
27 class RenderFrameHostImpl; | 27 class RenderFrameHostImpl; |
28 struct NavigationBeforeCommitInfo; | 28 struct CommitNavigationParams; |
| 29 struct CoreNavigationParams; |
29 | 30 |
30 // Implementations of this interface are responsible for performing navigations | 31 // Implementations of this interface are responsible for performing navigations |
31 // in a node of the FrameTree. Its lifetime is bound to all FrameTreeNode | 32 // in a node of the FrameTree. Its lifetime is bound to all FrameTreeNode |
32 // objects that are using it and will be released once all nodes that use it are | 33 // objects that are using it and will be released once all nodes that use it are |
33 // freed. The Navigator is bound to a single frame tree and cannot be used by | 34 // freed. The Navigator is bound to a single frame tree and cannot be used by |
34 // multiple instances of FrameTree. | 35 // multiple instances of FrameTree. |
35 // TODO(nasko): Move all navigation methods, such as didStartProvisionalLoad | 36 // TODO(nasko): Move all navigation methods, such as didStartProvisionalLoad |
36 // from WebContentsImpl to this interface. | 37 // from WebContentsImpl to this interface. |
37 class CONTENT_EXPORT Navigator : public base::RefCounted<Navigator> { | 38 class CONTENT_EXPORT Navigator : public base::RefCounted<Navigator> { |
38 public: | 39 public: |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 ui::PageTransition page_transition, | 107 ui::PageTransition page_transition, |
107 WindowOpenDisposition disposition, | 108 WindowOpenDisposition disposition, |
108 const GlobalRequestID& transferred_global_request_id, | 109 const GlobalRequestID& transferred_global_request_id, |
109 bool should_replace_current_entry, | 110 bool should_replace_current_entry, |
110 bool user_gesture) {} | 111 bool user_gesture) {} |
111 | 112 |
112 // PlzNavigate | 113 // PlzNavigate |
113 // Signal |render_frame_host| that a navigation is ready to commit (the | 114 // Signal |render_frame_host| that a navigation is ready to commit (the |
114 // response to the navigation request has been received). | 115 // response to the navigation request has been received). |
115 virtual void CommitNavigation(RenderFrameHostImpl* render_frame_host, | 116 virtual void CommitNavigation(RenderFrameHostImpl* render_frame_host, |
116 const NavigationBeforeCommitInfo& info) {}; | 117 const GURL& stream_url, |
| 118 const CoreNavigationParams& core_params, |
| 119 const CommitNavigationParams& commit_params) {} |
117 | 120 |
118 protected: | 121 protected: |
119 friend class base::RefCounted<Navigator>; | 122 friend class base::RefCounted<Navigator>; |
120 virtual ~Navigator() {} | 123 virtual ~Navigator() {} |
121 }; | 124 }; |
122 | 125 |
123 } // namespace content | 126 } // namespace content |
124 | 127 |
125 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 128 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
OLD | NEW |