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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 virtual std::vector<std::unique_ptr<NavigationThrottle>> | 120 virtual std::vector<std::unique_ptr<NavigationThrottle>> |
121 CreateThrottlesForNavigation(NavigationHandle* navigation_handle); | 121 CreateThrottlesForNavigation(NavigationHandle* navigation_handle); |
122 | 122 |
123 // PlzNavigate | 123 // PlzNavigate |
124 // Called at the start of the navigation to get opaque data the embedder | 124 // Called at the start of the navigation to get opaque data the embedder |
125 // wants to see passed to the corresponding URLRequest on the IO thread. | 125 // wants to see passed to the corresponding URLRequest on the IO thread. |
126 // In the case of a navigation to an interstitial, no call will be made to the | 126 // In the case of a navigation to an interstitial, no call will be made to the |
127 // embedder and |nullptr| is returned. | 127 // embedder and |nullptr| is returned. |
128 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData( | 128 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData( |
129 NavigationHandle* navigation_handle); | 129 NavigationHandle* navigation_handle); |
| 130 |
| 131 // Whether the delegate is displaying an interstitial page over the current |
| 132 // page. |
| 133 virtual bool ShowingInterstitialPage() const = 0; |
130 }; | 134 }; |
131 | 135 |
132 } // namspace content | 136 } // namspace content |
133 | 137 |
134 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 138 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
OLD | NEW |