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

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

Issue 2745363004: PlzNavigate: send SourceLocation when mixed content is found (Closed)
Patch Set: Addressed nits 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
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 22 matching lines...) Expand all
33 class WebInputMethodController; 33 class WebInputMethodController;
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 WebFindOptions; 40 struct WebFindOptions;
41 struct WebFloatRect; 41 struct WebFloatRect;
42 struct WebPrintPresetOptions; 42 struct WebPrintPresetOptions;
43 struct WebSourceLocation;
43 44
44 // Interface for interacting with in process frames. This contains methods that 45 // Interface for interacting with in process frames. This contains methods that
45 // require interacting with a frame's document. 46 // require interacting with a frame's document.
46 // FIXME: Move lots of methods from WebFrame in here. 47 // FIXME: Move lots of methods from WebFrame in here.
47 class WebLocalFrame : public WebFrame { 48 class WebLocalFrame : public WebFrame {
48 public: 49 public:
49 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). 50 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close().
50 // WebFrameClient may not be null. 51 // WebFrameClient may not be null.
51 BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType, 52 BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType,
52 WebFrameClient*, 53 WebFrameClient*,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 virtual void blinkFeatureUsageReport(const std::set<int>& features) = 0; 186 virtual void blinkFeatureUsageReport(const std::set<int>& features) = 0;
186 187
187 // Informs the renderer that mixed content was found externally regarding this 188 // 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 // 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 // is used for instance to report to the CSP policy and to log to the frame
190 // console. 191 // console.
191 virtual void mixedContentFound(const WebURL& mainResourceUrl, 192 virtual void mixedContentFound(const WebURL& mainResourceUrl,
192 const WebURL& mixedContentUrl, 193 const WebURL& mixedContentUrl,
193 WebURLRequest::RequestContext, 194 WebURLRequest::RequestContext,
194 bool wasAllowed, 195 bool wasAllowed,
195 bool hadRedirect) = 0; 196 bool hadRedirect,
197 const WebSourceLocation&) = 0;
196 198
197 // Orientation Changes ---------------------------------------------------- 199 // Orientation Changes ----------------------------------------------------
198 200
199 // Notify the frame that the screen orientation has changed. 201 // Notify the frame that the screen orientation has changed.
200 virtual void sendOrientationChangeEvent() = 0; 202 virtual void sendOrientationChangeEvent() = 0;
201 203
202 // Printing ------------------------------------------------------------ 204 // Printing ------------------------------------------------------------
203 205
204 // Returns true on success and sets the out parameter to the print preset 206 // Returns true on success and sets the out parameter to the print preset
205 // options for the document. 207 // options for the document.
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 // to call these on a WebLocalFrame. 518 // to call these on a WebLocalFrame.
517 bool isWebLocalFrame() const override = 0; 519 bool isWebLocalFrame() const override = 0;
518 WebLocalFrame* toWebLocalFrame() override = 0; 520 WebLocalFrame* toWebLocalFrame() override = 0;
519 bool isWebRemoteFrame() const override = 0; 521 bool isWebRemoteFrame() const override = 0;
520 WebRemoteFrame* toWebRemoteFrame() override = 0; 522 WebRemoteFrame* toWebRemoteFrame() override = 0;
521 }; 523 };
522 524
523 } // namespace blink 525 } // namespace blink
524 526
525 #endif // WebLocalFrame_h 527 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698