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_NAVIGATION_CONTROLLER_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "content/public/browser/navigation_controller.h" | 9 #include "content/public/browser/navigation_controller.h" |
10 #include "content/public/browser/navigation_details.h" | 10 #include "content/public/browser/navigation_details.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 NavigationController::ReloadType reload_type) = 0; | 51 NavigationController::ReloadType reload_type) = 0; |
52 virtual void SetHistoryLengthAndPrune( | 52 virtual void SetHistoryLengthAndPrune( |
53 const SiteInstance* site_instance, | 53 const SiteInstance* site_instance, |
54 int merge_history_length, | 54 int merge_history_length, |
55 int32 minimum_page_id) = 0; | 55 int32 minimum_page_id) = 0; |
56 virtual void CopyMaxPageIDsFrom(WebContents* web_contents) = 0; | 56 virtual void CopyMaxPageIDsFrom(WebContents* web_contents) = 0; |
57 virtual void UpdateMaxPageID(int32 page_id) = 0; | 57 virtual void UpdateMaxPageID(int32 page_id) = 0; |
58 virtual void UpdateMaxPageIDForSiteInstance(SiteInstance* site_instance, | 58 virtual void UpdateMaxPageIDForSiteInstance(SiteInstance* site_instance, |
59 int32 page_id) = 0; | 59 int32 page_id) = 0; |
60 virtual void ActivateAndShowRepostFormWarningDialog() = 0; | 60 virtual void ActivateAndShowRepostFormWarningDialog() = 0; |
| 61 virtual bool HasAccessedInitialDocument() = 0; |
61 | 62 |
62 // This method is needed, since we are no longer guaranteed that the | 63 // This method is needed, since we are no longer guaranteed that the |
63 // embedder for NavigationController will be a WebContents object. | 64 // embedder for NavigationController will be a WebContents object. |
64 virtual WebContents* GetWebContents() = 0; | 65 virtual WebContents* GetWebContents() = 0; |
65 | 66 |
66 // Methods needed by InterstitialPageImpl. | 67 // Methods needed by InterstitialPageImpl. |
67 virtual bool IsHidden() = 0; | 68 virtual bool IsHidden() = 0; |
68 virtual void RenderFrameForInterstitialPageCreated( | 69 virtual void RenderFrameForInterstitialPageCreated( |
69 RenderFrameHost* render_frame_host) = 0; | 70 RenderFrameHost* render_frame_host) = 0; |
70 virtual void AttachInterstitialPage( | 71 virtual void AttachInterstitialPage( |
71 InterstitialPageImpl* interstitial_page) = 0; | 72 InterstitialPageImpl* interstitial_page) = 0; |
72 virtual void DetachInterstitialPage() = 0; | 73 virtual void DetachInterstitialPage() = 0; |
73 virtual void SetIsLoading(RenderViewHost* render_view_host, | 74 virtual void SetIsLoading(RenderViewHost* render_view_host, |
74 bool is_loading, | 75 bool is_loading, |
75 bool to_different_document, | 76 bool to_different_document, |
76 LoadNotificationDetails* details) = 0; | 77 LoadNotificationDetails* details) = 0; |
77 }; | 78 }; |
78 | 79 |
79 } // namespace content | 80 } // namespace content |
80 | 81 |
81 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ | 82 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ |
OLD | NEW |