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_NAVIGATOR_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 virtual void SetMainFrameMimeType(const std::string& mime_type) {} | 95 virtual void SetMainFrameMimeType(const std::string& mime_type) {} |
96 virtual bool CanOverscrollContent() const; | 96 virtual bool CanOverscrollContent() const; |
97 | 97 |
98 // Notification to the Navigator embedder that navigation state has | 98 // Notification to the Navigator embedder that navigation state has |
99 // changed. This method corresponds to | 99 // changed. This method corresponds to |
100 // WebContents::NotifyNavigationStateChanged. | 100 // WebContents::NotifyNavigationStateChanged. |
101 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {} | 101 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {} |
102 | 102 |
103 // Notifies the Navigator embedder that a navigation to the pending | 103 // Notifies the Navigator embedder that a navigation to the pending |
104 // NavigationEntry has started in the browser process. | 104 // NavigationEntry has started in the browser process. |
105 virtual void DidStartNavigationToPendingEntry( | 105 virtual void DidStartNavigationToPendingEntry(const GURL& url, |
106 const GURL& url, | 106 ReloadType reload_type) {} |
107 NavigationController::ReloadType reload_type) {} | |
108 | 107 |
109 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which | 108 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which |
110 // this forwards to. | 109 // this forwards to. |
111 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 110 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, |
112 const OpenURLParams& params) {} | 111 const OpenURLParams& params) {} |
113 | 112 |
114 // Returns whether to continue a navigation that needs to transfer to a | 113 // Returns whether to continue a navigation that needs to transfer to a |
115 // different process between the load start and commit. | 114 // different process between the load start and commit. |
116 virtual bool ShouldTransferNavigation(); | 115 virtual bool ShouldTransferNavigation(); |
117 | 116 |
(...skipping 12 matching lines...) Expand all Loading... |
130 // throbber stopping. | 129 // throbber stopping. |
131 virtual void DidStopLoading() {} | 130 virtual void DidStopLoading() {} |
132 | 131 |
133 // The load progress was changed. | 132 // The load progress was changed. |
134 virtual void DidChangeLoadProgress() {} | 133 virtual void DidChangeLoadProgress() {} |
135 }; | 134 }; |
136 | 135 |
137 } // namspace content | 136 } // namspace content |
138 | 137 |
139 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 138 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
OLD | NEW |