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" |
11 #include "content/public/browser/navigation_throttle.h" | 11 #include "content/public/browser/navigation_throttle.h" |
12 #include "content/public/browser/navigation_ui_data.h" | 12 #include "content/public/browser/navigation_ui_data.h" |
13 #include "content/public/browser/reload_type.h" | 13 #include "content/public/browser/reload_type.h" |
| 14 #include "content/public/browser/render_frame_host.h" |
14 #include "ui/base/page_transition_types.h" | 15 #include "ui/base/page_transition_types.h" |
15 #include "ui/base/window_open_disposition.h" | 16 #include "ui/base/window_open_disposition.h" |
16 | 17 |
17 class GURL; | 18 class GURL; |
18 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 19 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
19 | 20 |
20 namespace content { | 21 namespace content { |
21 | 22 |
22 class FrameTreeNode; | 23 class FrameTreeNode; |
23 class NavigationHandle; | 24 class NavigationHandle; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // WebContents::NotifyNavigationStateChanged. | 101 // WebContents::NotifyNavigationStateChanged. |
101 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {} | 102 virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {} |
102 | 103 |
103 // Notifies the Navigator embedder that a navigation to the pending | 104 // Notifies the Navigator embedder that a navigation to the pending |
104 // NavigationEntry has started in the browser process. | 105 // NavigationEntry has started in the browser process. |
105 virtual void DidStartNavigationToPendingEntry(const GURL& url, | 106 virtual void DidStartNavigationToPendingEntry(const GURL& url, |
106 ReloadType reload_type) {} | 107 ReloadType reload_type) {} |
107 | 108 |
108 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which | 109 // Opens a URL with the given parameters. See PageNavigator::OpenURL, which |
109 // this forwards to. | 110 // this forwards to. |
110 virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 111 virtual void RequestOpenURL(RenderFrameHost* render_frame_host, |
111 const OpenURLParams& params) {} | 112 const OpenURLParams& params) {} |
112 | 113 |
113 // Returns whether to continue a navigation that needs to transfer to a | 114 // Returns whether to continue a navigation that needs to transfer to a |
114 // different process between the load start and commit. | 115 // different process between the load start and commit. |
115 virtual bool ShouldTransferNavigation(bool is_main_frame_navigation); | 116 virtual bool ShouldTransferNavigation(bool is_main_frame_navigation); |
116 | 117 |
117 // Returns whether URLs for aborted browser-initiated navigations should be | 118 // Returns whether URLs for aborted browser-initiated navigations should be |
118 // preserved in the omnibox. Defaults to false. | 119 // preserved in the omnibox. Defaults to false. |
119 virtual bool ShouldPreserveAbortedURLs(); | 120 virtual bool ShouldPreserveAbortedURLs(); |
120 | 121 |
(...skipping 22 matching lines...) Expand all Loading... |
143 // wants to see passed to the corresponding URLRequest on the IO thread. | 144 // wants to see passed to the corresponding URLRequest on the IO thread. |
144 // In the case of a navigation to an interstitial, no call will be made to the | 145 // In the case of a navigation to an interstitial, no call will be made to the |
145 // embedder and |nullptr| is returned. | 146 // embedder and |nullptr| is returned. |
146 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData( | 147 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData( |
147 NavigationHandle* navigation_handle); | 148 NavigationHandle* navigation_handle); |
148 }; | 149 }; |
149 | 150 |
150 } // namspace content | 151 } // namspace content |
151 | 152 |
152 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 153 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
OLD | NEW |