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" |
(...skipping 20 matching lines...) Expand all Loading... |
31 class NavigationControllerDelegate { | 31 class NavigationControllerDelegate { |
32 public: | 32 public: |
33 virtual ~NavigationControllerDelegate() {} | 33 virtual ~NavigationControllerDelegate() {} |
34 | 34 |
35 // Duplicates of WebContents methods. | 35 // Duplicates of WebContents methods. |
36 virtual RenderViewHost* GetRenderViewHost() const = 0; | 36 virtual RenderViewHost* GetRenderViewHost() const = 0; |
37 virtual InterstitialPage* GetInterstitialPage() const = 0; | 37 virtual InterstitialPage* GetInterstitialPage() const = 0; |
38 virtual const std::string& GetContentsMimeType() const = 0; | 38 virtual const std::string& GetContentsMimeType() const = 0; |
39 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; | 39 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; |
40 virtual void Stop() = 0; | 40 virtual void Stop() = 0; |
41 virtual SiteInstance* GetPendingSiteInstance() const = 0; | |
42 virtual int32 GetMaxPageID() = 0; | 41 virtual int32 GetMaxPageID() = 0; |
43 virtual int32 GetMaxPageIDForSiteInstance(SiteInstance* site_instance) = 0; | 42 virtual int32 GetMaxPageIDForSiteInstance(SiteInstance* site_instance) = 0; |
44 virtual bool IsLoading() const = 0; | 43 virtual bool IsLoading() const = 0; |
45 virtual bool IsBeingDestroyed() const = 0; | 44 virtual bool IsBeingDestroyed() const = 0; |
46 virtual bool CanOverscrollContent() const = 0; | 45 virtual bool CanOverscrollContent() const = 0; |
47 | 46 |
48 // Methods from WebContentsImpl that NavigationControllerImpl needs to | 47 // Methods from WebContentsImpl that NavigationControllerImpl needs to |
49 // call. | 48 // call. |
50 virtual FrameTree* GetFrameTree() = 0; | 49 virtual FrameTree* GetFrameTree() = 0; |
51 virtual void NotifyBeforeFormRepostWarningShow() = 0; | 50 virtual void NotifyBeforeFormRepostWarningShow() = 0; |
(...skipping 20 matching lines...) Expand all Loading... |
72 InterstitialPageImpl* interstitial_page) = 0; | 71 InterstitialPageImpl* interstitial_page) = 0; |
73 virtual void DetachInterstitialPage() = 0; | 72 virtual void DetachInterstitialPage() = 0; |
74 virtual void SetIsLoading(bool is_loading, | 73 virtual void SetIsLoading(bool is_loading, |
75 bool to_different_document, | 74 bool to_different_document, |
76 LoadNotificationDetails* details) = 0; | 75 LoadNotificationDetails* details) = 0; |
77 }; | 76 }; |
78 | 77 |
79 } // namespace content | 78 } // namespace content |
80 | 79 |
81 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ | 80 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ |
OLD | NEW |