| 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  |    9  | 
|   10 #include "content/common/content_export.h" |   10 #include "content/common/content_export.h" | 
| (...skipping 30 matching lines...) Expand all  Loading... | 
|   41   virtual const GURL& GetURL() = 0; |   41   virtual const GURL& GetURL() = 0; | 
|   42  |   42  | 
|   43   // Whether the navigation is taking place in the main frame or in a subframe. |   43   // Whether the navigation is taking place in the main frame or in a subframe. | 
|   44   // This remains constant over the navigation lifetime. |   44   // This remains constant over the navigation lifetime. | 
|   45   virtual bool IsInMainFrame() = 0; |   45   virtual bool IsInMainFrame() = 0; | 
|   46  |   46  | 
|   47   // Whether the navigation is taking place in a frame that is a direct child |   47   // Whether the navigation is taking place in a frame that is a direct child | 
|   48   // of the main frame. This remains constant over the navigation lifetime. |   48   // of the main frame. This remains constant over the navigation lifetime. | 
|   49   virtual bool IsParentMainFrame() = 0; |   49   virtual bool IsParentMainFrame() = 0; | 
|   50  |   50  | 
 |   51   // Whether the navigation was initated by the renderer process. Examples of | 
 |   52   // renderer-initiated navigations include: | 
 |   53   //  * <a> link click | 
 |   54   //  * changing window.location.href | 
 |   55   //  * redirect via the <meta http-equiv="refresh"> tag | 
 |   56   //  * using window.history.pushState | 
 |   57   virtual bool IsRendererInitiated() = 0; | 
 |   58  | 
|   51   // Whether the navigation is synchronous or not. Examples of synchronous |   59   // Whether the navigation is synchronous or not. Examples of synchronous | 
|   52   // navigations are: |   60   // navigations are: | 
|   53   // * reference fragment navigations |   61   // * reference fragment navigations | 
|   54   // * pushState/popState |   62   // * pushState/popState | 
|   55   virtual bool IsSynchronousNavigation() = 0; |   63   virtual bool IsSynchronousNavigation() = 0; | 
|   56  |   64  | 
|   57   // Whether the navigation is for an iframe with srcdoc attribute. |   65   // Whether the navigation is for an iframe with srcdoc attribute. | 
|   58   virtual bool IsSrcdoc() = 0; |   66   virtual bool IsSrcdoc() = 0; | 
|   59  |   67  | 
|   60   // Returns the FrameTreeNode ID for the frame in which the navigation is |   68   // Returns the FrameTreeNode ID for the frame in which the navigation is | 
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  172  |  180  | 
|  173   // The NavigationData that the embedder returned from |  181   // The NavigationData that the embedder returned from | 
|  174   // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |  182   // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 
|  175   // be a clone of the NavigationData. |  183   // be a clone of the NavigationData. | 
|  176   virtual NavigationData* GetNavigationData() = 0; |  184   virtual NavigationData* GetNavigationData() = 0; | 
|  177 }; |  185 }; | 
|  178  |  186  | 
|  179 }  // namespace content |  187 }  // namespace content | 
|  180  |  188  | 
|  181 #endif  // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |  189 #endif  // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 
| OLD | NEW |