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 23 matching lines...) Expand all Loading... |
34 virtual RenderViewHost* GetRenderViewHost() const = 0; | 34 virtual RenderViewHost* GetRenderViewHost() const = 0; |
35 virtual InterstitialPage* GetInterstitialPage() const = 0; | 35 virtual InterstitialPage* GetInterstitialPage() const = 0; |
36 virtual const std::string& GetContentsMimeType() const = 0; | 36 virtual const std::string& GetContentsMimeType() const = 0; |
37 virtual void NotifyNavigationStateChanged(unsigned changed_flags) = 0; | 37 virtual void NotifyNavigationStateChanged(unsigned changed_flags) = 0; |
38 virtual void Stop() = 0; | 38 virtual void Stop() = 0; |
39 virtual SiteInstance* GetPendingSiteInstance() const = 0; | 39 virtual SiteInstance* GetPendingSiteInstance() const = 0; |
40 virtual int32 GetMaxPageID() = 0; | 40 virtual int32 GetMaxPageID() = 0; |
41 virtual int32 GetMaxPageIDForSiteInstance(SiteInstance* site_instance) = 0; | 41 virtual int32 GetMaxPageIDForSiteInstance(SiteInstance* site_instance) = 0; |
42 virtual bool IsLoading() const = 0; | 42 virtual bool IsLoading() const = 0; |
43 virtual bool IsBeingDestroyed() const = 0; | 43 virtual bool IsBeingDestroyed() const = 0; |
| 44 virtual bool CanOverscrollContent() const = 0; |
44 | 45 |
45 // Methods from WebContentsImpl that NavigationControllerImpl needs to | 46 // Methods from WebContentsImpl that NavigationControllerImpl needs to |
46 // call. | 47 // call. |
47 virtual void NotifyBeforeFormRepostWarningShow() = 0; | 48 virtual void NotifyBeforeFormRepostWarningShow() = 0; |
48 virtual void NotifyNavigationEntryCommitted( | 49 virtual void NotifyNavigationEntryCommitted( |
49 const LoadCommittedDetails& load_details) = 0; | 50 const LoadCommittedDetails& load_details) = 0; |
50 virtual bool NavigateToPendingEntry( | 51 virtual bool NavigateToPendingEntry( |
51 NavigationController::ReloadType reload_type) = 0; | 52 NavigationController::ReloadType reload_type) = 0; |
52 virtual void SetHistoryLengthAndPrune( | 53 virtual void SetHistoryLengthAndPrune( |
53 const SiteInstance* site_instance, | 54 const SiteInstance* site_instance, |
(...skipping 19 matching lines...) Expand all Loading... |
73 virtual void DetachInterstitialPage() = 0; | 74 virtual void DetachInterstitialPage() = 0; |
74 virtual void SetIsLoading(RenderViewHost* render_view_host, | 75 virtual void SetIsLoading(RenderViewHost* render_view_host, |
75 bool is_loading, | 76 bool is_loading, |
76 bool to_different_document, | 77 bool to_different_document, |
77 LoadNotificationDetails* details) = 0; | 78 LoadNotificationDetails* details) = 0; |
78 }; | 79 }; |
79 | 80 |
80 } // namespace content | 81 } // namespace content |
81 | 82 |
82 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ | 83 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ |
OLD | NEW |