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

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: Minor changes from nasko@'s comments Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698