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/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "content/public/browser/invalidate_type.h" | 10 #include "content/public/browser/invalidate_type.h" |
11 #include "content/public/browser/navigation_controller.h" | 11 #include "content/public/browser/navigation_controller.h" |
12 #include "content/public/browser/navigation_throttle.h" | 12 #include "content/public/browser/navigation_throttle.h" |
| 13 #include "content/public/browser/navigation_ui_data.h" |
13 #include "content/public/browser/reload_type.h" | 14 #include "content/public/browser/reload_type.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 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 20 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
20 | 21 |
21 namespace content { | 22 namespace content { |
22 | 23 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 virtual void DidStopLoading() {} | 134 virtual void DidStopLoading() {} |
134 | 135 |
135 // The load progress was changed. | 136 // The load progress was changed. |
136 virtual void DidChangeLoadProgress() {} | 137 virtual void DidChangeLoadProgress() {} |
137 | 138 |
138 // Returns the NavigationThrottles to add to this navigation. Normally these | 139 // Returns the NavigationThrottles to add to this navigation. Normally these |
139 // are defined by the content/ embedder, except in the case of interstitials | 140 // are defined by the content/ embedder, except in the case of interstitials |
140 // where no NavigationThrottles are added to the navigation. | 141 // where no NavigationThrottles are added to the navigation. |
141 virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation( | 142 virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation( |
142 NavigationHandle* navigation_handle); | 143 NavigationHandle* navigation_handle); |
| 144 |
| 145 // PlzNavigate |
| 146 // Called at the start of the navigation to get opaque data the embedder |
| 147 // wants to see passed to the corresponding URLRequest on the IO thread. |
| 148 // In the case of a navigation to an interstitial, no call will be made to the |
| 149 // embedder and |nullptr| is returned. |
| 150 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData( |
| 151 NavigationHandle* navigation_handle); |
143 }; | 152 }; |
144 | 153 |
145 } // namspace content | 154 } // namspace content |
146 | 155 |
147 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 156 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
OLD | NEW |