OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
7 | 7 |
| 8 #include <set> |
8 #include "WebCompositionUnderline.h" | 9 #include "WebCompositionUnderline.h" |
9 #include "WebFrame.h" | 10 #include "WebFrame.h" |
10 #include "WebFrameLoadType.h" | 11 #include "WebFrameLoadType.h" |
11 #include "WebHistoryItem.h" | 12 #include "WebHistoryItem.h" |
12 #include "public/platform/WebCachePolicy.h" | 13 #include "public/platform/WebCachePolicy.h" |
13 #include "public/platform/WebURLError.h" | 14 #include "public/platform/WebURLError.h" |
| 15 #include "public/platform/WebURLRequest.h" |
14 #include "public/platform/site_engagement.mojom-shared.h" | 16 #include "public/platform/site_engagement.mojom-shared.h" |
15 | 17 |
16 namespace base { | 18 namespace base { |
17 class SingleThreadTaskRunner; | 19 class SingleThreadTaskRunner; |
18 } | 20 } |
19 | 21 |
20 namespace blink { | 22 namespace blink { |
21 | 23 |
22 class InterfaceProvider; | 24 class InterfaceProvider; |
23 class InterfaceRegistry; | 25 class InterfaceRegistry; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 172 |
171 // Override the normal rules for whether a load has successfully committed | 173 // Override the normal rules for whether a load has successfully committed |
172 // in this frame. Used to propagate state when this frame has navigated | 174 // in this frame. Used to propagate state when this frame has navigated |
173 // cross process. | 175 // cross process. |
174 virtual void setCommittedFirstRealLoad() = 0; | 176 virtual void setCommittedFirstRealLoad() = 0; |
175 | 177 |
176 // Mark this frame's document as having received a user gesture, based on | 178 // Mark this frame's document as having received a user gesture, based on |
177 // one of its descendants having processed a user gesture. | 179 // one of its descendants having processed a user gesture. |
178 virtual void setHasReceivedUserGesture() = 0; | 180 virtual void setHasReceivedUserGesture() = 0; |
179 | 181 |
| 182 // Reports a list of unique blink::UseCounter::Feature values representing |
| 183 // Blink features used, performed or encountered by the browser during the |
| 184 // current page load happening on the frame. |
| 185 virtual void blinkFeatureUsageReport(const std::set<int>& features) = 0; |
| 186 |
| 187 // Informs the renderer that mixed content was found externally regarding this |
| 188 // frame. Currently only the the browser process can do so. The included data |
| 189 // is used for instance to report to the CSP policy and to log to the frame |
| 190 // console. |
| 191 virtual void mixedContentFound(const WebURL& mainResourceUrl, |
| 192 const WebURL& mixedContentUrl, |
| 193 WebURLRequest::RequestContext, |
| 194 bool wasAllowed, |
| 195 bool hadRedirect) = 0; |
| 196 |
180 // Orientation Changes ---------------------------------------------------- | 197 // Orientation Changes ---------------------------------------------------- |
181 | 198 |
182 // Notify the frame that the screen orientation has changed. | 199 // Notify the frame that the screen orientation has changed. |
183 virtual void sendOrientationChangeEvent() = 0; | 200 virtual void sendOrientationChangeEvent() = 0; |
184 | 201 |
185 // Printing ------------------------------------------------------------ | 202 // Printing ------------------------------------------------------------ |
186 | 203 |
187 // Returns true on success and sets the out parameter to the print preset | 204 // Returns true on success and sets the out parameter to the print preset |
188 // options for the document. | 205 // options for the document. |
189 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, | 206 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 // to call these on a WebLocalFrame. | 509 // to call these on a WebLocalFrame. |
493 bool isWebLocalFrame() const override = 0; | 510 bool isWebLocalFrame() const override = 0; |
494 WebLocalFrame* toWebLocalFrame() override = 0; | 511 WebLocalFrame* toWebLocalFrame() override = 0; |
495 bool isWebRemoteFrame() const override = 0; | 512 bool isWebRemoteFrame() const override = 0; |
496 WebRemoteFrame* toWebRemoteFrame() override = 0; | 513 WebRemoteFrame* toWebRemoteFrame() override = 0; |
497 }; | 514 }; |
498 | 515 |
499 } // namespace blink | 516 } // namespace blink |
500 | 517 |
501 #endif // WebLocalFrame_h | 518 #endif // WebLocalFrame_h |
OLD | NEW |