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

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

Issue 1957783002: Replicate Content-Security-Policy into remote frame proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 21 matching lines...) Expand all
32 32
33 #include "core/CoreExport.h" 33 #include "core/CoreExport.h"
34 #include "core/dom/Document.h" 34 #include "core/dom/Document.h"
35 #include "core/dom/IconURL.h" 35 #include "core/dom/IconURL.h"
36 #include "core/fetch/ResourceLoaderOptions.h" 36 #include "core/fetch/ResourceLoaderOptions.h"
37 #include "core/frame/FrameClient.h" 37 #include "core/frame/FrameClient.h"
38 #include "core/html/LinkResource.h" 38 #include "core/html/LinkResource.h"
39 #include "core/loader/FrameLoaderTypes.h" 39 #include "core/loader/FrameLoaderTypes.h"
40 #include "core/loader/NavigationPolicy.h" 40 #include "core/loader/NavigationPolicy.h"
41 #include "platform/heap/Handle.h" 41 #include "platform/heap/Handle.h"
42 #include "platform/network/ContentSecurityPolicyParsers.h"
42 #include "platform/network/ResourceLoadPriority.h" 43 #include "platform/network/ResourceLoadPriority.h"
43 #include "platform/weborigin/Referrer.h" 44 #include "platform/weborigin/Referrer.h"
44 #include "public/platform/WebLoadingBehaviorFlag.h" 45 #include "public/platform/WebLoadingBehaviorFlag.h"
45 #include "wtf/Forward.h" 46 #include "wtf/Forward.h"
46 #include "wtf/Vector.h" 47 #include "wtf/Vector.h"
47 #include <v8.h> 48 #include <v8.h>
48 49
49 namespace blink { 50 namespace blink {
50 51
51 class Document; 52 class Document;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // Called when elements preventing the sudden termination of the frame 254 // Called when elements preventing the sudden termination of the frame
254 // become present or stop being present. |type| is the type of element 255 // become present or stop being present. |type| is the type of element
255 // (BeforeUnload handler, Unload handler). 256 // (BeforeUnload handler, Unload handler).
256 enum SuddenTerminationDisablerType { 257 enum SuddenTerminationDisablerType {
257 BeforeUnloadHandler, 258 BeforeUnloadHandler,
258 UnloadHandler, 259 UnloadHandler,
259 }; 260 };
260 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { } 261 virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminatio nDisablerType) { }
261 262
262 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; } 263 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; }
264
265 // Called when a new Content Security Policy is added to the frame's
266 // document. This can be trigerred by handling of HTTP headers, handling
267 // of <meta> element, or by inheriting CSP from the parent (in case of
268 // about:blank).
269 virtual void didAddContentSecurityPolicy(const String& headerValue, ContentS ecurityPolicyHeaderType, ContentSecurityPolicyHeaderSource) { }
alexmos 2016/05/11 19:46:41 nit: maybe move this up to where sandbox flags and
Łukasz Anforowicz 2016/05/11 23:14:48 Done.
263 }; 270 };
264 271
265 } // namespace blink 272 } // namespace blink
266 273
267 #endif // FrameLoaderClient_h 274 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698