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

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

Issue 2046733003: Replicate WebInsecureRequestPolicy instead of a bool for strict mixed content checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@securitycontext
Patch Set: alexmos@ Created 4 years, 6 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 26 matching lines...) Expand all
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/FrameLoadRequest.h" 39 #include "core/loader/FrameLoadRequest.h"
40 #include "core/loader/FrameLoaderTypes.h" 40 #include "core/loader/FrameLoaderTypes.h"
41 #include "core/loader/NavigationPolicy.h" 41 #include "core/loader/NavigationPolicy.h"
42 #include "platform/heap/Handle.h" 42 #include "platform/heap/Handle.h"
43 #include "platform/network/ContentSecurityPolicyParsers.h" 43 #include "platform/network/ContentSecurityPolicyParsers.h"
44 #include "platform/network/ResourceLoadPriority.h" 44 #include "platform/network/ResourceLoadPriority.h"
45 #include "platform/weborigin/Referrer.h" 45 #include "platform/weborigin/Referrer.h"
46 #include "public/platform/WebEffectiveConnectionType.h" 46 #include "public/platform/WebEffectiveConnectionType.h"
47 #include "public/platform/WebInsecureRequestPolicy.h"
47 #include "public/platform/WebLoadingBehaviorFlag.h" 48 #include "public/platform/WebLoadingBehaviorFlag.h"
48 #include "wtf/Forward.h" 49 #include "wtf/Forward.h"
49 #include "wtf/Vector.h" 50 #include "wtf/Vector.h"
50 #include <v8.h> 51 #include <v8.h>
51 52
52 namespace blink { 53 namespace blink {
53 54
54 class Document; 55 class Document;
55 class DocumentLoader; 56 class DocumentLoader;
56 class FetchRequest; 57 class FetchRequest;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // This callback is similar, but for plugins. 211 // This callback is similar, but for plugins.
211 virtual void didNotAllowPlugins() { } 212 virtual void didNotAllowPlugins() { }
212 213
213 // This callback notifies the client that the frame created a Keygen element . 214 // This callback notifies the client that the frame created a Keygen element .
214 virtual void didUseKeygen() { } 215 virtual void didUseKeygen() { }
215 216
216 virtual WebCookieJar* cookieJar() const = 0; 217 virtual WebCookieJar* cookieJar() const = 0;
217 218
218 virtual void didChangeName(const String& name, const String& uniqueName) { } 219 virtual void didChangeName(const String& name, const String& uniqueName) { }
219 220
220 virtual void didEnforceStrictMixedContentChecking() {} 221 virtual void didEnforceInsecureRequestPolicy(WebInsecureRequestPolicy) {}
221 222
222 virtual void didUpdateToUniqueOrigin() {} 223 virtual void didUpdateToUniqueOrigin() {}
223 224
224 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) { } 225 virtual void didChangeSandboxFlags(Frame* childFrame, SandboxFlags) { }
225 226
226 // Called when a new Content Security Policy is added to the frame's 227 // Called when a new Content Security Policy is added to the frame's
227 // document. This can be triggered by handling of HTTP headers, handling 228 // document. This can be triggered by handling of HTTP headers, handling
228 // of <meta> element, or by inheriting CSP from the parent (in case of 229 // of <meta> element, or by inheriting CSP from the parent (in case of
229 // about:blank). 230 // about:blank).
230 virtual void didAddContentSecurityPolicy(const String& headerValue, ContentS ecurityPolicyHeaderType, ContentSecurityPolicyHeaderSource) { } 231 virtual void didAddContentSecurityPolicy(const String& headerValue, ContentS ecurityPolicyHeaderType, ContentSecurityPolicyHeaderSource) { }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 270
270 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; } 271 virtual LinkResource* createServiceWorkerLinkResource(HTMLLinkElement*) { re turn nullptr; }
271 272
272 // Effective connection type when this frame was loaded. 273 // Effective connection type when this frame was loaded.
273 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web EffectiveConnectionType::TypeUnknown; } 274 virtual WebEffectiveConnectionType getEffectiveConnectionType() { return Web EffectiveConnectionType::TypeUnknown; }
274 }; 275 };
275 276
276 } // namespace blink 277 } // namespace blink
277 278
278 #endif // FrameLoaderClient_h 279 #endif // FrameLoaderClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698