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

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 2729623003: TEST ONLY: Duplicate FP rather than modifying in place (Closed)
Patch Set: Rebase against parent CL Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/SecurityContext.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index 811d9f470cebb1f042c6c5baa94a0c6769b162bb..9b20ac06bada87bb651c29bc058b0d7df0cc5518 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -685,6 +685,10 @@ class BLINK_PLATFORM_EXPORT Platform {
// Feature Policy -----------------------------------------------------
+ // Create a new feature policy object for a document, given its parent
+ // document's policy (may be nullptr), its container policy (may be empty),
+ // the header policy with which it was delivered (may be empty), and the
+ // document's origin.
virtual WebFeaturePolicy* createFeaturePolicy(
const WebFeaturePolicy* parentPolicy,
const WebParsedFeaturePolicyHeader& containerPolicy,
@@ -692,8 +696,14 @@ class BLINK_PLATFORM_EXPORT Platform {
const WebSecurityOrigin&) {
return nullptr;
}
- virtual void resetFeaturePolicyOrigin(WebFeaturePolicy* parentPolicy,
- const WebSecurityOrigin&) {}
+
+ // Create a new feature policy for a document whose origin has changed, given
+ // the previous policy object and the new origin.
+ virtual WebFeaturePolicy* duplicateFeaturePolicyWithOrigin(
+ const WebFeaturePolicy&,
+ const WebSecurityOrigin&) {
+ return nullptr;
+ }
protected:
Platform();
« no previous file with comments | « third_party/WebKit/Source/core/dom/SecurityContext.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698