| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // Returns the FrameTreeNode ID for the frame in which the navigation is | 79 // Returns the FrameTreeNode ID for the frame in which the navigation is |
| 80 // performed. This ID is browser-global and uniquely identifies a frame that | 80 // performed. This ID is browser-global and uniquely identifies a frame that |
| 81 // hosts content. The identifier is fixed at the creation of the frame and | 81 // hosts content. The identifier is fixed at the creation of the frame and |
| 82 // stays constant for the lifetime of the frame. | 82 // stays constant for the lifetime of the frame. |
| 83 virtual int GetFrameTreeNodeId() = 0; | 83 virtual int GetFrameTreeNodeId() = 0; |
| 84 | 84 |
| 85 // Returns the FrameTreeNode ID for the parent frame. If this navigation is | 85 // Returns the FrameTreeNode ID for the parent frame. If this navigation is |
| 86 // taking place in the main frame, the value returned is -1. | 86 // taking place in the main frame, the value returned is -1. |
| 87 virtual int GetParentFrameTreeNodeId() = 0; | 87 virtual int GetParentFrameTreeNodeId() = 0; |
| 88 | 88 |
| 89 // Returns the RenderFrameHost for the parent frame, or nullptr if this |
| 90 // navigation is taking place in the main frame. This value will not change |
| 91 // during a navigation. |
| 92 virtual RenderFrameHost* GetParentFrame() = 0; |
| 93 |
| 89 // The WebContents the navigation is taking place in. | 94 // The WebContents the navigation is taking place in. |
| 90 WebContents* GetWebContents(); | 95 WebContents* GetWebContents(); |
| 91 | 96 |
| 92 // The time the navigation started, recorded either in the renderer or in the | 97 // The time the navigation started, recorded either in the renderer or in the |
| 93 // browser process. Corresponds to Navigation Timing API. | 98 // browser process. Corresponds to Navigation Timing API. |
| 94 virtual const base::TimeTicks& NavigationStart() = 0; | 99 virtual const base::TimeTicks& NavigationStart() = 0; |
| 95 | 100 |
| 96 // Whether or not the navigation was started within a context menu. | 101 // Whether or not the navigation was started within a context menu. |
| 97 virtual bool WasStartedFromContextMenu() const = 0; | 102 virtual bool WasStartedFromContextMenu() const = 0; |
| 98 | 103 |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 | 300 |
| 296 // The NavigationData that the embedder returned from | 301 // The NavigationData that the embedder returned from |
| 297 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 302 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |
| 298 // be a clone of the NavigationData. | 303 // be a clone of the NavigationData. |
| 299 virtual NavigationData* GetNavigationData() = 0; | 304 virtual NavigationData* GetNavigationData() = 0; |
| 300 }; | 305 }; |
| 301 | 306 |
| 302 } // namespace content | 307 } // namespace content |
| 303 | 308 |
| 304 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 309 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
| OLD | NEW |