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

Side by Side Diff: third_party/WebKit/Source/core/loader/FrameLoaderClient.h

Issue 2520223002: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… (Closed)
Patch Set: Fp2 Created 4 years 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * Copyright (C) 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 28 matching lines...) Expand all
39 #include "core/frame/FrameTypes.h" 39 #include "core/frame/FrameTypes.h"
40 #include "core/html/LinkResource.h" 40 #include "core/html/LinkResource.h"
41 #include "core/loader/FrameLoadRequest.h" 41 #include "core/loader/FrameLoadRequest.h"
42 #include "core/loader/FrameLoaderTypes.h" 42 #include "core/loader/FrameLoaderTypes.h"
43 #include "core/loader/NavigationPolicy.h" 43 #include "core/loader/NavigationPolicy.h"
44 #include "platform/heap/Handle.h" 44 #include "platform/heap/Handle.h"
45 #include "platform/network/ContentSecurityPolicyParsers.h" 45 #include "platform/network/ContentSecurityPolicyParsers.h"
46 #include "platform/network/ResourceLoadPriority.h" 46 #include "platform/network/ResourceLoadPriority.h"
47 #include "platform/weborigin/Referrer.h" 47 #include "platform/weborigin/Referrer.h"
48 #include "public/platform/WebEffectiveConnectionType.h" 48 #include "public/platform/WebEffectiveConnectionType.h"
49 #include "public/platform/WebFeaturePolicy.h"
49 #include "public/platform/WebInsecureRequestPolicy.h" 50 #include "public/platform/WebInsecureRequestPolicy.h"
50 #include "public/platform/WebLoadingBehaviorFlag.h" 51 #include "public/platform/WebLoadingBehaviorFlag.h"
51 #include "wtf/Forward.h" 52 #include "wtf/Forward.h"
52 #include "wtf/Vector.h" 53 #include "wtf/Vector.h"
53 #include <memory> 54 #include <memory>
54 #include <v8.h> 55 #include <v8.h>
55 56
56 namespace blink { 57 namespace blink {
57 58
58 class Document; 59 class Document;
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 virtual WebCookieJar* cookieJar() const = 0; 269 virtual WebCookieJar* cookieJar() const = 0;
269 270
270 virtual void didChangeName(const String& name, const String& uniqueName) {} 271 virtual void didChangeName(const String& name, const String& uniqueName) {}
271 272
272 virtual void didEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) {} 273 virtual void didEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) {}
273 274
274 virtual void didUpdateToUniqueOrigin() {} 275 virtual void didUpdateToUniqueOrigin() {}
275 276
276 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) {} 277 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) {}
277 278
278 virtual void didSetFeaturePolicyHeader(const String& headerValue) {} 279 virtual void didSetFeaturePolicyHeader(
280 const WebVector<WebFeaturePolicy::ParsedWhitelist>& parsedHeader) {}
279 281
280 // Called when a new Content Security Policy is added to the frame's document. 282 // Called when a new Content Security Policy is added to the frame's document.
281 // This can be triggered by handling of HTTP headers, handling of <meta> 283 // This can be triggered by handling of HTTP headers, handling of <meta>
282 // element, or by inheriting CSP from the parent (in case of about:blank). 284 // element, or by inheriting CSP from the parent (in case of about:blank).
283 virtual void didAddContentSecurityPolicy(const String& headerValue, 285 virtual void didAddContentSecurityPolicy(const String& headerValue,
284 ContentSecurityPolicyHeaderType, 286 ContentSecurityPolicyHeaderType,
285 ContentSecurityPolicyHeaderSource) {} 287 ContentSecurityPolicyHeaderSource) {}
286 288
287 virtual void didChangeFrameOwnerProperties(HTMLFrameElementBase*) {} 289 virtual void didChangeFrameOwnerProperties(HTMLFrameElementBase*) {}
288 290
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 } 340 }
339 341
340 // Overwrites the given URL to use an HTML5 embed if possible. An empty URL is 342 // Overwrites the given URL to use an HTML5 embed if possible. An empty URL is
341 // returned if the URL is not overriden. 343 // returned if the URL is not overriden.
342 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); } 344 virtual KURL overrideFlashEmbedWithHTML(const KURL&) { return KURL(); }
343 }; 345 };
344 346
345 } // namespace blink 347 } // namespace blink
346 348
347 #endif // FrameLoaderClient_h 349 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698