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

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: s/title.html/title1.html/ 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // considered potentially trustworthy if 191 // considered potentially trustworthy if
191 // |isPotentiallyTrustworthyUniqueOrigin| is true. TODO(estark): 192 // |isPotentiallyTrustworthyUniqueOrigin| is true. TODO(estark):
192 // this method only exists to support dynamic sandboxing via a CSP 193 // this method only exists to support dynamic sandboxing via a CSP
193 // delivered in a <meta> tag. This is not supposed to be allowed per 194 // delivered in a <meta> tag. This is not supposed to be allowed per
194 // the CSP spec and should be ripped out. https://crbug.com/594645 195 // the CSP spec and should be ripped out. https://crbug.com/594645
195 virtual void didUpdateToUniqueOrigin(bool isPotentiallyTrustworthyUniqueOrig in) {} 196 virtual void didUpdateToUniqueOrigin(bool isPotentiallyTrustworthyUniqueOrig in) {}
196 197
197 // The sandbox flags have changed for a child frame of this frame. 198 // The sandbox flags have changed for a child frame of this frame.
198 virtual void didChangeSandboxFlags(WebFrame* childFrame, WebSandboxFlags fla gs) { } 199 virtual void didChangeSandboxFlags(WebFrame* childFrame, WebSandboxFlags fla gs) { }
199 200
201 // Called when a new Content Security Policy is added to the frame's
202 // document. This can be triggered by handling of HTTP headers, handling
203 // of <meta> element, or by inheriting CSP from the parent (in case of
204 // about:blank).
205 virtual void didAddContentSecurityPolicy(const WebString& headerValue, WebCo ntentSecurityPolicyType, WebContentSecurityPolicySource) { }
206
200 // Some frame owner properties have changed for a child frame of this frame. 207 // Some frame owner properties have changed for a child frame of this frame.
201 // Frame owner properties currently include: scrolling, marginwidth and 208 // Frame owner properties currently include: scrolling, marginwidth and
202 // marginheight. 209 // marginheight.
203 virtual void didChangeFrameOwnerProperties(WebFrame* childFrame, const WebFr ameOwnerProperties&) { } 210 virtual void didChangeFrameOwnerProperties(WebFrame* childFrame, const WebFr ameOwnerProperties&) { }
204 211
205 // Called when a watched CSS selector matches or stops matching. 212 // Called when a watched CSS selector matches or stops matching.
206 virtual void didMatchCSS(WebLocalFrame*, const WebVector<WebString>& newlyMa tchingSelectors, const WebVector<WebString>& stoppedMatchingSelectors) { } 213 virtual void didMatchCSS(WebLocalFrame*, const WebVector<WebString>& newlyMa tchingSelectors, const WebVector<WebString>& stoppedMatchingSelectors) { }
207 214
208 215
209 // Console messages ---------------------------------------------------- 216 // Console messages ----------------------------------------------------
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 // Mojo ---------------------------------------------------------------- 718 // Mojo ----------------------------------------------------------------
712 virtual ServiceRegistry* serviceRegistry() { return nullptr; } 719 virtual ServiceRegistry* serviceRegistry() { return nullptr; }
713 720
714 protected: 721 protected:
715 virtual ~WebFrameClient() { } 722 virtual ~WebFrameClient() { }
716 }; 723 };
717 724
718 } // namespace blink 725 } // namespace blink
719 726
720 #endif 727 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698