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 // some may change during navigation (e.g. due to server redirects). | 41 // some may change during navigation (e.g. due to server redirects). |
42 | 42 |
43 // The URL the frame is navigating to. This may change during the navigation | 43 // The URL the frame is navigating to. This may change during the navigation |
44 // when encountering a server redirect. | 44 // when encountering a server redirect. |
45 // This URL may not be the same as the virtual URL returned from | 45 // This URL may not be the same as the virtual URL returned from |
46 // WebContents::GetVisibleURL and WebContents::GetLastCommittedURL. For | 46 // WebContents::GetVisibleURL and WebContents::GetLastCommittedURL. For |
47 // example, viewing a page's source navigates to the URL of the page, but the | 47 // example, viewing a page's source navigates to the URL of the page, but the |
48 // virtual URL is prefixed with "view-source:". | 48 // virtual URL is prefixed with "view-source:". |
49 virtual const GURL& GetURL() = 0; | 49 virtual const GURL& GetURL() = 0; |
50 | 50 |
51 // Returns the URL fo the Site Instance. | |
52 virtual const GURL& GetSiteURL() = 0; | |
nasko
2016/10/12 17:00:35
Let's expose the SiteInstance, as we will need it
alexmos
2016/10/12 17:18:16
Could we name this so that it's a bit more clear w
| |
53 | |
51 // Whether the navigation is taking place in the main frame or in a subframe. | 54 // Whether the navigation is taking place in the main frame or in a subframe. |
52 // This remains constant over the navigation lifetime. | 55 // This remains constant over the navigation lifetime. |
53 virtual bool IsInMainFrame() = 0; | 56 virtual bool IsInMainFrame() = 0; |
54 | 57 |
55 // Whether the navigation is taking place in a frame that is a direct child | 58 // Whether the navigation is taking place in a frame that is a direct child |
56 // of the main frame. This remains constant over the navigation lifetime. | 59 // of the main frame. This remains constant over the navigation lifetime. |
57 virtual bool IsParentMainFrame() = 0; | 60 virtual bool IsParentMainFrame() = 0; |
58 | 61 |
59 // Whether the navigation was initated by the renderer process. Examples of | 62 // Whether the navigation was initated by the renderer process. Examples of |
60 // renderer-initiated navigations include: | 63 // renderer-initiated navigations include: |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
221 | 224 |
222 // The NavigationData that the embedder returned from | 225 // The NavigationData that the embedder returned from |
223 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 226 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |
224 // be a clone of the NavigationData. | 227 // be a clone of the NavigationData. |
225 virtual NavigationData* GetNavigationData() = 0; | 228 virtual NavigationData* GetNavigationData() = 0; |
226 }; | 229 }; |
227 | 230 |
228 } // namespace content | 231 } // namespace content |
229 | 232 |
230 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 233 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
OLD | NEW |