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

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

Issue 2760263002: Reland of PlzNavigate: send SourceLocation when mixed content is found (Closed)
Patch Set: Created 3 years, 9 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 <set>
9 #include "WebCompositionUnderline.h" 9 #include "WebCompositionUnderline.h"
10 #include "WebFrame.h" 10 #include "WebFrame.h"
(...skipping 23 matching lines...) Expand all
34 class WebRange; 34 class WebRange;
35 class WebScriptExecutionCallback; 35 class WebScriptExecutionCallback;
36 enum class WebCachePolicy; 36 enum class WebCachePolicy;
37 enum class WebSandboxFlags; 37 enum class WebSandboxFlags;
38 enum class WebTreeScopeType; 38 enum class WebTreeScopeType;
39 struct WebConsoleMessage; 39 struct WebConsoleMessage;
40 struct WebContentSecurityPolicyViolation; 40 struct WebContentSecurityPolicyViolation;
41 struct WebFindOptions; 41 struct WebFindOptions;
42 struct WebFloatRect; 42 struct WebFloatRect;
43 struct WebPrintPresetOptions; 43 struct WebPrintPresetOptions;
44 struct WebSourceLocation;
44 45
45 // Interface for interacting with in process frames. This contains methods that 46 // Interface for interacting with in process frames. This contains methods that
46 // require interacting with a frame's document. 47 // require interacting with a frame's document.
47 // FIXME: Move lots of methods from WebFrame in here. 48 // FIXME: Move lots of methods from WebFrame in here.
48 class WebLocalFrame : public WebFrame { 49 class WebLocalFrame : public WebFrame {
49 public: 50 public:
50 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). 51 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close().
51 // WebFrameClient may not be null. 52 // WebFrameClient may not be null.
52 BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType, 53 BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType,
53 WebFrameClient*, 54 WebFrameClient*,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 virtual void blinkFeatureUsageReport(const std::set<int>& features) = 0; 192 virtual void blinkFeatureUsageReport(const std::set<int>& features) = 0;
192 193
193 // Informs the renderer that mixed content was found externally regarding this 194 // Informs the renderer that mixed content was found externally regarding this
194 // frame. Currently only the the browser process can do so. The included data 195 // frame. Currently only the the browser process can do so. The included data
195 // is used for instance to report to the CSP policy and to log to the frame 196 // is used for instance to report to the CSP policy and to log to the frame
196 // console. 197 // console.
197 virtual void mixedContentFound(const WebURL& mainResourceUrl, 198 virtual void mixedContentFound(const WebURL& mainResourceUrl,
198 const WebURL& mixedContentUrl, 199 const WebURL& mixedContentUrl,
199 WebURLRequest::RequestContext, 200 WebURLRequest::RequestContext,
200 bool wasAllowed, 201 bool wasAllowed,
201 bool hadRedirect) = 0; 202 bool hadRedirect,
203 const WebSourceLocation&) = 0;
202 204
203 // Orientation Changes ---------------------------------------------------- 205 // Orientation Changes ----------------------------------------------------
204 206
205 // Notify the frame that the screen orientation has changed. 207 // Notify the frame that the screen orientation has changed.
206 virtual void sendOrientationChangeEvent() = 0; 208 virtual void sendOrientationChangeEvent() = 0;
207 209
208 // Printing ------------------------------------------------------------ 210 // Printing ------------------------------------------------------------
209 211
210 // Returns true on success and sets the out parameter to the print preset 212 // Returns true on success and sets the out parameter to the print preset
211 // options for the document. 213 // options for the document.
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 // to call these on a WebLocalFrame. 534 // to call these on a WebLocalFrame.
533 bool isWebLocalFrame() const override = 0; 535 bool isWebLocalFrame() const override = 0;
534 WebLocalFrame* toWebLocalFrame() override = 0; 536 WebLocalFrame* toWebLocalFrame() override = 0;
535 bool isWebRemoteFrame() const override = 0; 537 bool isWebRemoteFrame() const override = 0;
536 WebRemoteFrame* toWebRemoteFrame() override = 0; 538 WebRemoteFrame* toWebRemoteFrame() override = 0;
537 }; 539 };
538 540
539 } // namespace blink 541 } // namespace blink
540 542
541 #endif // WebLocalFrame_h 543 #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