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

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

Issue 1957783002: Replicate Content-Security-Policy into remote frame proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing CSP inheritance for srcdoc. Created 4 years, 7 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 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "public/platform/WebEffectiveConnectionType.h" 50 #include "public/platform/WebEffectiveConnectionType.h"
51 #include "public/platform/WebFileSystem.h" 51 #include "public/platform/WebFileSystem.h"
52 #include "public/platform/WebFileSystemType.h" 52 #include "public/platform/WebFileSystemType.h"
53 #include "public/platform/WebLoadingBehaviorFlag.h" 53 #include "public/platform/WebLoadingBehaviorFlag.h"
54 #include "public/platform/WebSecurityOrigin.h" 54 #include "public/platform/WebSecurityOrigin.h"
55 #include "public/platform/WebSetSinkIdCallbacks.h" 55 #include "public/platform/WebSetSinkIdCallbacks.h"
56 #include "public/platform/WebStorageQuotaCallbacks.h" 56 #include "public/platform/WebStorageQuotaCallbacks.h"
57 #include "public/platform/WebStorageQuotaType.h" 57 #include "public/platform/WebStorageQuotaType.h"
58 #include "public/platform/WebURLError.h" 58 #include "public/platform/WebURLError.h"
59 #include "public/platform/WebURLRequest.h" 59 #include "public/platform/WebURLRequest.h"
60 #include "public/web/WebContentSecurityPolicy.h"
60 #include <v8.h> 61 #include <v8.h>
61 62
62 namespace blink { 63 namespace blink {
63 64
64 enum class WebTreeScopeType; 65 enum class WebTreeScopeType;
65 class ServiceRegistry; 66 class ServiceRegistry;
66 class WebApplicationCacheHost; 67 class WebApplicationCacheHost;
67 class WebApplicationCacheHostClient; 68 class WebApplicationCacheHostClient;
68 class WebAppBannerClient; 69 class WebAppBannerClient;
69 class WebBluetooth; 70 class WebBluetooth;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // considered potentially trustworthy if 192 // considered potentially trustworthy if
192 // |isPotentiallyTrustworthyUniqueOrigin| is true. TODO(estark): 193 // |isPotentiallyTrustworthyUniqueOrigin| is true. TODO(estark):
193 // this method only exists to support dynamic sandboxing via a CSP 194 // this method only exists to support dynamic sandboxing via a CSP
194 // delivered in a <meta> tag. This is not supposed to be allowed per 195 // delivered in a <meta> tag. This is not supposed to be allowed per
195 // the CSP spec and should be ripped out. https://crbug.com/594645 196 // the CSP spec and should be ripped out. https://crbug.com/594645
196 virtual void didUpdateToUniqueOrigin(bool isPotentiallyTrustworthyUniqueOrig in) {} 197 virtual void didUpdateToUniqueOrigin(bool isPotentiallyTrustworthyUniqueOrig in) {}
197 198
198 // The sandbox flags have changed for a child frame of this frame. 199 // The sandbox flags have changed for a child frame of this frame.
199 virtual void didChangeSandboxFlags(WebFrame* childFrame, WebSandboxFlags fla gs) { } 200 virtual void didChangeSandboxFlags(WebFrame* childFrame, WebSandboxFlags fla gs) { }
200 201
202 // Called when a new Content Security Policy is added to the frame's
203 // document. This can be triggered by handling of HTTP headers, handling
204 // of <meta> element, or by inheriting CSP from the parent (in case of
205 // about:blank).
206 virtual void didAddContentSecurityPolicy(const WebString& headerValue, WebCo ntentSecurityPolicyType, WebContentSecurityPolicySource) { }
207
201 // Some frame owner properties have changed for a child frame of this frame. 208 // Some frame owner properties have changed for a child frame of this frame.
202 // Frame owner properties currently include: scrolling, marginwidth and 209 // Frame owner properties currently include: scrolling, marginwidth and
203 // marginheight. 210 // marginheight.
204 virtual void didChangeFrameOwnerProperties(WebFrame* childFrame, const WebFr ameOwnerProperties&) { } 211 virtual void didChangeFrameOwnerProperties(WebFrame* childFrame, const WebFr ameOwnerProperties&) { }
205 212
206 // Called when a watched CSS selector matches or stops matching. 213 // Called when a watched CSS selector matches or stops matching.
207 virtual void didMatchCSS(WebLocalFrame*, const WebVector<WebString>& newlyMa tchingSelectors, const WebVector<WebString>& stoppedMatchingSelectors) { } 214 virtual void didMatchCSS(WebLocalFrame*, const WebVector<WebString>& newlyMa tchingSelectors, const WebVector<WebString>& stoppedMatchingSelectors) { }
208 215
209 216
210 // Console messages ---------------------------------------------------- 217 // Console messages ----------------------------------------------------
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 // Mojo ---------------------------------------------------------------- 725 // Mojo ----------------------------------------------------------------
719 virtual ServiceRegistry* serviceRegistry() { return nullptr; } 726 virtual ServiceRegistry* serviceRegistry() { return nullptr; }
720 727
721 protected: 728 protected:
722 virtual ~WebFrameClient() { } 729 virtual ~WebFrameClient() { }
723 }; 730 };
724 731
725 } // namespace blink 732 } // namespace blink
726 733
727 #endif 734 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698