Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 1905033002: PlzNavigate: Move navigation-level mixed content checks to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-security-message
Patch Set: Addressed all jam@ latest comments. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 153
152 // Override the normal rules for whether a load has successfully committed 154 // Override the normal rules for whether a load has successfully committed
153 // in this frame. Used to propagate state when this frame has navigated 155 // in this frame. Used to propagate state when this frame has navigated
154 // cross process. 156 // cross process.
155 virtual void setCommittedFirstRealLoad() = 0; 157 virtual void setCommittedFirstRealLoad() = 0;
156 158
157 // Mark this frame's document as having received a user gesture, based on 159 // Mark this frame's document as having received a user gesture, based on
158 // one of its descendants having processed a user gesture. 160 // one of its descendants having processed a user gesture.
159 virtual void setHasReceivedUserGesture() = 0; 161 virtual void setHasReceivedUserGesture() = 0;
160 162
163 // Updates the renderer with a list of unique blink::UseCounter::Feature
164 // values representing Blink features "used" (or "performed") by the browser
165 // during the current page load happening on the frame.
166 virtual void blinkFeatureUsageReport(const std::set<int>& features) = 0;
167
168 // Informs the renderer that mixed content was found by the browser. The
169 // included data is used for instance to report to the CSP policy and to log
170 // to the frame console.
171 virtual void mixedContentFoundByTheBrowser(const WebURL& mainResourceUrl,
172 const WebURL& mixedContentUrl,
173 WebURLRequest::RequestContext,
174 bool wasAllowed,
175 bool hadRedirect) = 0;
176
161 // Orientation Changes ---------------------------------------------------- 177 // Orientation Changes ----------------------------------------------------
162 178
163 // Notify the frame that the screen orientation has changed. 179 // Notify the frame that the screen orientation has changed.
164 virtual void sendOrientationChangeEvent() = 0; 180 virtual void sendOrientationChangeEvent() = 0;
165 181
166 // Printing ------------------------------------------------------------ 182 // Printing ------------------------------------------------------------
167 183
168 // Returns true on success and sets the out parameter to the print preset 184 // Returns true on success and sets the out parameter to the print preset
169 // options for the document. 185 // options for the document.
170 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, 186 virtual bool getPrintPresetOptionsForPlugin(const WebNode&,
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 // to call these on a WebLocalFrame. 486 // to call these on a WebLocalFrame.
471 bool isWebLocalFrame() const override = 0; 487 bool isWebLocalFrame() const override = 0;
472 WebLocalFrame* toWebLocalFrame() override = 0; 488 WebLocalFrame* toWebLocalFrame() override = 0;
473 bool isWebRemoteFrame() const override = 0; 489 bool isWebRemoteFrame() const override = 0;
474 WebRemoteFrame* toWebRemoteFrame() override = 0; 490 WebRemoteFrame* toWebRemoteFrame() override = 0;
475 }; 491 };
476 492
477 } // namespace blink 493 } // namespace blink
478 494
479 #endif // WebLocalFrame_h 495 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698