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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 152 |
151 // Override the normal rules for whether a load has successfully committed | 153 // Override the normal rules for whether a load has successfully committed |
152 // in this frame. Used to propagate state when this frame has navigated | 154 // in this frame. Used to propagate state when this frame has navigated |
153 // cross process. | 155 // cross process. |
154 virtual void setCommittedFirstRealLoad() = 0; | 156 virtual void setCommittedFirstRealLoad() = 0; |
155 | 157 |
156 // Mark this frame's document as having received a user gesture, based on | 158 // Mark this frame's document as having received a user gesture, based on |
157 // one of its descendants having processed a user gesture. | 159 // one of its descendants having processed a user gesture. |
158 virtual void setHasReceivedUserGesture() = 0; | 160 virtual void setHasReceivedUserGesture() = 0; |
159 | 161 |
| 162 // Updates the renderer with a list of unique blink::UseCounter::Feature |
| 163 // values representing Blink features "used" (or "performed") by the browser |
| 164 // during the current page load happening on the frame. |
| 165 virtual void blinkFeatureUsageReport(const std::set<int>& features) = 0; |
| 166 |
| 167 // Informs the renderer that mixed content was found by the browser. The |
| 168 // included data is used for instance to report to the CSP policy and to log |
| 169 // to the frame console. |
| 170 virtual void mixedContentFoundByTheBrowser(const WebURL& mainResourceUrl, |
| 171 const WebURL& mixedContentUrl, |
| 172 WebURLRequest::RequestContext, |
| 173 bool wasAllowed, |
| 174 bool hadRedirect) = 0; |
| 175 |
160 // Orientation Changes ---------------------------------------------------- | 176 // Orientation Changes ---------------------------------------------------- |
161 | 177 |
162 // Notify the frame that the screen orientation has changed. | 178 // Notify the frame that the screen orientation has changed. |
163 virtual void sendOrientationChangeEvent() = 0; | 179 virtual void sendOrientationChangeEvent() = 0; |
164 | 180 |
165 // Printing ------------------------------------------------------------ | 181 // Printing ------------------------------------------------------------ |
166 | 182 |
167 // Returns true on success and sets the out parameter to the print preset | 183 // Returns true on success and sets the out parameter to the print preset |
168 // options for the document. | 184 // options for the document. |
169 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, | 185 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 // to call these on a WebLocalFrame. | 482 // to call these on a WebLocalFrame. |
467 bool isWebLocalFrame() const override = 0; | 483 bool isWebLocalFrame() const override = 0; |
468 WebLocalFrame* toWebLocalFrame() override = 0; | 484 WebLocalFrame* toWebLocalFrame() override = 0; |
469 bool isWebRemoteFrame() const override = 0; | 485 bool isWebRemoteFrame() const override = 0; |
470 WebRemoteFrame* toWebRemoteFrame() override = 0; | 486 WebRemoteFrame* toWebRemoteFrame() override = 0; |
471 }; | 487 }; |
472 | 488 |
473 } // namespace blink | 489 } // namespace blink |
474 | 490 |
475 #endif // WebLocalFrame_h | 491 #endif // WebLocalFrame_h |
OLD | NEW |