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/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // Called after receiving a BeforeUnloadACK IPC from the renderer. If | 122 // Called after receiving a BeforeUnloadACK IPC from the renderer. If |
123 // |frame_tree_node| has a NavigationRequest waiting for the renderer | 123 // |frame_tree_node| has a NavigationRequest waiting for the renderer |
124 // response, then the request is either started or canceled, depending on the | 124 // response, then the request is either started or canceled, depending on the |
125 // value of |proceed|. | 125 // value of |proceed|. |
126 virtual void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, | 126 virtual void OnBeforeUnloadACK(FrameTreeNode* frame_tree_node, |
127 bool proceed) {} | 127 bool proceed) {} |
128 | 128 |
129 // PlzNavigate | 129 // PlzNavigate |
130 // Used to start a new renderer-initiated navigation, following a | 130 // Used to start a new renderer-initiated navigation, following a |
131 // BeginNavigation IPC from the renderer. | 131 // BeginNavigation IPC from the renderer. |
132 virtual void OnBeginNavigation( | 132 virtual void RendererInitiatedNavigationRequest( |
133 FrameTreeNode* frame_tree_node, | 133 FrameTreeNode* frame_tree_node, |
134 const CommonNavigationParams& common_params, | 134 const CommonNavigationParams& common_params, |
135 const BeginNavigationParams& begin_params, | 135 const BeginNavigationParams& begin_params, |
136 scoped_refptr<ResourceRequestBody> body); | 136 scoped_refptr<ResourceRequestBody> body); |
137 | 137 |
138 // PlzNavigate | 138 // PlzNavigate |
139 // Signal |render_frame_host| that a navigation is ready to commit (the | 139 // Signal |render_frame_host| that a navigation is ready to commit (the |
140 // response to the navigation request has been received). | 140 // response to the navigation request has been received). |
141 virtual void CommitNavigation(FrameTreeNode* frame_tree_node, | 141 virtual void CommitNavigation(FrameTreeNode* frame_tree_node, |
142 ResourceResponse* response, | 142 ResourceResponse* response, |
(...skipping 25 matching lines...) Expand all Loading... |
168 virtual bool IsWaitingForBeforeUnloadACK(FrameTreeNode* frame_tree_node); | 168 virtual bool IsWaitingForBeforeUnloadACK(FrameTreeNode* frame_tree_node); |
169 | 169 |
170 protected: | 170 protected: |
171 friend class base::RefCounted<Navigator>; | 171 friend class base::RefCounted<Navigator>; |
172 virtual ~Navigator() {} | 172 virtual ~Navigator() {} |
173 }; | 173 }; |
174 | 174 |
175 } // namespace content | 175 } // namespace content |
176 | 176 |
177 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ | 177 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_H_ |
OLD | NEW |