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

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

Issue 2190183002: Forward CSP violation reporting from RenderFrameProxy to RenderFrameImpl. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sanitize report endpoints from IPC against actual CSP contents. Created 4 years, 4 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/WebVector.h"
14 #include "public/web/WebContentSecurityPolicy.h"
13 15
14 namespace blink { 16 namespace blink {
15 17
16 class WebAutofillClient; 18 class WebAutofillClient;
17 class WebContentSettingsClient; 19 class WebContentSettingsClient;
18 class WebDevToolsAgent; 20 class WebDevToolsAgent;
19 class WebDevToolsAgentClient; 21 class WebDevToolsAgentClient;
20 class WebDoubleSize; 22 class WebDoubleSize;
21 class WebFrameClient; 23 class WebFrameClient;
22 class WebFrameWidget; 24 class WebFrameWidget;
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 virtual void copyImageAt(const WebPoint&) = 0; 405 virtual void copyImageAt(const WebPoint&) = 0;
404 406
405 // Save as the image located at a particular point in visual viewport 407 // Save as the image located at a particular point in visual viewport
406 // coordinates. 408 // coordinates.
407 virtual void saveImageAt(const WebPoint&) = 0; 409 virtual void saveImageAt(const WebPoint&) = 0;
408 410
409 // TEMP: Usage count for chrome.loadtimes deprecation. 411 // TEMP: Usage count for chrome.loadtimes deprecation.
410 // This will be removed following the deprecation. 412 // This will be removed following the deprecation.
411 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0; 413 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0;
412 414
415 // Security ---------------------------------------------------------------
416
417 // Report a Content Security Policy violation.
418 virtual void reportContentSecurityPolicyViolation(
419 const WebString& directiveText,
420 const WebString& effectiveDirective,
421 const WebString& consoleMessage,
422 const WebURL& blockedURL,
423 const WebVector<WebString>& reportEndpoints,
424 const WebString& header,
425 WebContentSecurityPolicyViolationType,
426 bool followedRedirect) = 0;
427
413 protected: 428 protected:
414 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } 429 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { }
415 430
416 // Inherited from WebFrame, but intentionally hidden: it never makes sense 431 // Inherited from WebFrame, but intentionally hidden: it never makes sense
417 // to call these on a WebLocalFrame. 432 // to call these on a WebLocalFrame.
418 bool isWebLocalFrame() const override = 0; 433 bool isWebLocalFrame() const override = 0;
419 WebLocalFrame* toWebLocalFrame() override = 0; 434 WebLocalFrame* toWebLocalFrame() override = 0;
420 bool isWebRemoteFrame() const override = 0; 435 bool isWebRemoteFrame() const override = 0;
421 WebRemoteFrame* toWebRemoteFrame() override = 0; 436 WebRemoteFrame* toWebRemoteFrame() override = 0;
422 }; 437 };
423 438
424 } // namespace blink 439 } // namespace blink
425 440
426 #endif // WebLocalFrame_h 441 #endif // WebLocalFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebContentSecurityPolicy.h ('k') | third_party/WebKit/public/web/WebRemoteFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698