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 "WebCompositionUnderline.h" | 8 #include "WebCompositionUnderline.h" |
9 #include "WebFrame.h" | 9 #include "WebFrame.h" |
10 #include "WebFrameLoadType.h" | 10 #include "WebFrameLoadType.h" |
11 #include "WebHistoryItem.h" | 11 #include "WebHistoryItem.h" |
12 #include "public/platform/WebCachePolicy.h" | 12 #include "public/platform/WebCachePolicy.h" |
13 #include "public/platform/WebURLError.h" | 13 #include "public/platform/WebURLError.h" |
| 14 #include "public/platform/WebURLRequest.h" |
14 #include "public/platform/site_engagement.mojom-shared.h" | 15 #include "public/platform/site_engagement.mojom-shared.h" |
| 16 #include <set> |
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 WebAutofillClient; | 24 class WebAutofillClient; |
23 class WebContentSettingsClient; | 25 class WebContentSettingsClient; |
24 class WebDevToolsAgent; | 26 class WebDevToolsAgent; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 165 |
164 // Override the normal rules for whether a load has successfully committed | 166 // Override the normal rules for whether a load has successfully committed |
165 // in this frame. Used to propagate state when this frame has navigated | 167 // in this frame. Used to propagate state when this frame has navigated |
166 // cross process. | 168 // cross process. |
167 virtual void setCommittedFirstRealLoad() = 0; | 169 virtual void setCommittedFirstRealLoad() = 0; |
168 | 170 |
169 // Mark this frame's document as having received a user gesture, based on | 171 // Mark this frame's document as having received a user gesture, based on |
170 // one of its descendants having processed a user gesture. | 172 // one of its descendants having processed a user gesture. |
171 virtual void setHasReceivedUserGesture() = 0; | 173 virtual void setHasReceivedUserGesture() = 0; |
172 | 174 |
| 175 // Reports a list of unique blink::UseCounter::Feature values representing |
| 176 // Blink features used, performed or encountered by the browser during the |
| 177 // current page load happening on the frame. |
| 178 virtual void blinkFeatureUsageReport(const std::set<int>& features) = 0; |
| 179 |
| 180 // Informs the renderer that mixed content was found externally regarding this |
| 181 // frame. Currently only the the browser process can do so. The included data |
| 182 // is used for instance to report to the CSP policy and to log to the frame |
| 183 // console. |
| 184 virtual void mixedContentFound(const WebURL& mainResourceUrl, |
| 185 const WebURL& mixedContentUrl, |
| 186 WebURLRequest::RequestContext, |
| 187 bool wasAllowed, |
| 188 bool hadRedirect) = 0; |
| 189 |
173 // Orientation Changes ---------------------------------------------------- | 190 // Orientation Changes ---------------------------------------------------- |
174 | 191 |
175 // Notify the frame that the screen orientation has changed. | 192 // Notify the frame that the screen orientation has changed. |
176 virtual void sendOrientationChangeEvent() = 0; | 193 virtual void sendOrientationChangeEvent() = 0; |
177 | 194 |
178 // Printing ------------------------------------------------------------ | 195 // Printing ------------------------------------------------------------ |
179 | 196 |
180 // Returns true on success and sets the out parameter to the print preset | 197 // Returns true on success and sets the out parameter to the print preset |
181 // options for the document. | 198 // options for the document. |
182 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, | 199 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 // to call these on a WebLocalFrame. | 498 // to call these on a WebLocalFrame. |
482 bool isWebLocalFrame() const override = 0; | 499 bool isWebLocalFrame() const override = 0; |
483 WebLocalFrame* toWebLocalFrame() override = 0; | 500 WebLocalFrame* toWebLocalFrame() override = 0; |
484 bool isWebRemoteFrame() const override = 0; | 501 bool isWebRemoteFrame() const override = 0; |
485 WebRemoteFrame* toWebRemoteFrame() override = 0; | 502 WebRemoteFrame* toWebRemoteFrame() override = 0; |
486 }; | 503 }; |
487 | 504 |
488 } // namespace blink | 505 } // namespace blink |
489 | 506 |
490 #endif // WebLocalFrame_h | 507 #endif // WebLocalFrame_h |
OLD | NEW |