| 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/invalidate_type.h" | 9 #include "content/public/browser/invalidate_type.h" |
| 10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
| 11 #include "content/public/browser/navigation_details.h" | 11 #include "content/public/browser/navigation_details.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 struct LoadCommittedDetails; | 15 struct LoadCommittedDetails; |
| 16 struct LoadNotificationDetails; | 16 struct LoadNotificationDetails; |
| 17 struct NativeWebKeyboardEvent; | 17 struct NativeWebKeyboardEvent; |
| 18 class FrameTree; |
| 18 class InterstitialPage; | 19 class InterstitialPage; |
| 19 class InterstitialPageImpl; | 20 class InterstitialPageImpl; |
| 20 class RenderFrameHost; | 21 class RenderFrameHost; |
| 21 class RenderViewHost; | 22 class RenderViewHost; |
| 22 class SiteInstance; | 23 class SiteInstance; |
| 23 class WebContents; | 24 class WebContents; |
| 24 class WebContentsDelegate; | 25 class WebContentsDelegate; |
| 25 | 26 |
| 26 // Interface for objects embedding a NavigationController to provide the | 27 // Interface for objects embedding a NavigationController to provide the |
| 27 // functionality NavigationController needs. | 28 // functionality NavigationController needs. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 39 virtual void Stop() = 0; | 40 virtual void Stop() = 0; |
| 40 virtual SiteInstance* GetPendingSiteInstance() const = 0; | 41 virtual SiteInstance* GetPendingSiteInstance() const = 0; |
| 41 virtual int32 GetMaxPageID() = 0; | 42 virtual int32 GetMaxPageID() = 0; |
| 42 virtual int32 GetMaxPageIDForSiteInstance(SiteInstance* site_instance) = 0; | 43 virtual int32 GetMaxPageIDForSiteInstance(SiteInstance* site_instance) = 0; |
| 43 virtual bool IsLoading() const = 0; | 44 virtual bool IsLoading() const = 0; |
| 44 virtual bool IsBeingDestroyed() const = 0; | 45 virtual bool IsBeingDestroyed() const = 0; |
| 45 virtual bool CanOverscrollContent() const = 0; | 46 virtual bool CanOverscrollContent() const = 0; |
| 46 | 47 |
| 47 // Methods from WebContentsImpl that NavigationControllerImpl needs to | 48 // Methods from WebContentsImpl that NavigationControllerImpl needs to |
| 48 // call. | 49 // call. |
| 50 virtual FrameTree* GetFrameTree() = 0; |
| 49 virtual void NotifyBeforeFormRepostWarningShow() = 0; | 51 virtual void NotifyBeforeFormRepostWarningShow() = 0; |
| 50 virtual void NotifyNavigationEntryCommitted( | 52 virtual void NotifyNavigationEntryCommitted( |
| 51 const LoadCommittedDetails& load_details) = 0; | 53 const LoadCommittedDetails& load_details) = 0; |
| 52 virtual bool NavigateToPendingEntry( | 54 virtual bool NavigateToPendingEntry( |
| 53 NavigationController::ReloadType reload_type) = 0; | 55 NavigationController::ReloadType reload_type) = 0; |
| 54 virtual void SetHistoryOffsetAndLength(int history_offset, | 56 virtual void SetHistoryOffsetAndLength(int history_offset, |
| 55 int history_length) = 0; | 57 int history_length) = 0; |
| 56 virtual void CopyMaxPageIDsFrom(WebContents* web_contents) = 0; | 58 virtual void CopyMaxPageIDsFrom(WebContents* web_contents) = 0; |
| 57 virtual void UpdateMaxPageID(int32 page_id) = 0; | 59 virtual void UpdateMaxPageID(int32 page_id) = 0; |
| 58 virtual void UpdateMaxPageIDForSiteInstance(SiteInstance* site_instance, | 60 virtual void UpdateMaxPageIDForSiteInstance(SiteInstance* site_instance, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 72 InterstitialPageImpl* interstitial_page) = 0; | 74 InterstitialPageImpl* interstitial_page) = 0; |
| 73 virtual void DetachInterstitialPage() = 0; | 75 virtual void DetachInterstitialPage() = 0; |
| 74 virtual void SetIsLoading(bool is_loading, | 76 virtual void SetIsLoading(bool is_loading, |
| 75 bool to_different_document, | 77 bool to_different_document, |
| 76 LoadNotificationDetails* details) = 0; | 78 LoadNotificationDetails* details) = 0; |
| 77 }; | 79 }; |
| 78 | 80 |
| 79 } // namespace content | 81 } // namespace content |
| 80 | 82 |
| 81 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ | 83 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ |
| OLD | NEW |