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

Side by Side Diff: third_party/WebKit/Source/core/workers/WorkerScriptLoader.h

Issue 2540983003: CSP: Dedicated workers always inherit policy. (Closed)
Patch Set: Rebase. Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2009, 2011 Google Inc. All Rights Reserved. 3 * Copyright (C) 2009, 2011 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 12 matching lines...) Expand all
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 * 25 *
26 */ 26 */
27 27
28 #ifndef WorkerScriptLoader_h 28 #ifndef WorkerScriptLoader_h
29 #define WorkerScriptLoader_h 29 #define WorkerScriptLoader_h
30 30
31 #include <memory> 31 #include <memory>
32 #include "core/CoreExport.h" 32 #include "core/CoreExport.h"
33 #include "core/frame/csp/ContentSecurityPolicy.h"
33 #include "core/loader/ThreadableLoader.h" 34 #include "core/loader/ThreadableLoader.h"
34 #include "core/loader/ThreadableLoaderClient.h" 35 #include "core/loader/ThreadableLoaderClient.h"
35 #include "platform/loader/fetch/ResourceRequest.h" 36 #include "platform/loader/fetch/ResourceRequest.h"
36 #include "platform/weborigin/KURL.h" 37 #include "platform/weborigin/KURL.h"
37 #include "public/platform/WebAddressSpace.h" 38 #include "public/platform/WebAddressSpace.h"
38 #include "public/platform/WebURLRequest.h" 39 #include "public/platform/WebURLRequest.h"
39 #include "wtf/Allocator.h" 40 #include "wtf/Allocator.h"
40 #include "wtf/Functional.h" 41 #include "wtf/Functional.h"
41 #include "wtf/PassRefPtr.h" 42 #include "wtf/PassRefPtr.h"
42 #include "wtf/RefCounted.h" 43 #include "wtf/RefCounted.h"
43 #include "wtf/text/StringBuilder.h" 44 #include "wtf/text/StringBuilder.h"
44 45
45 namespace blink { 46 namespace blink {
46 47
47 class ContentSecurityPolicy;
48 class ResourceRequest; 48 class ResourceRequest;
49 class ResourceResponse; 49 class ResourceResponse;
50 class ExecutionContext; 50 class ExecutionContext;
51 class TextResourceDecoder; 51 class TextResourceDecoder;
52 52
53 class CORE_EXPORT WorkerScriptLoader final 53 class CORE_EXPORT WorkerScriptLoader final
54 : public RefCounted<WorkerScriptLoader>, 54 : public RefCounted<WorkerScriptLoader>,
55 public ThreadableLoaderClient { 55 public ThreadableLoaderClient {
56 USING_FAST_MALLOC(WorkerScriptLoader); 56 USING_FAST_MALLOC(WorkerScriptLoader);
57 57
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 Persistent<ContentSecurityPolicy> m_contentSecurityPolicy; 156 Persistent<ContentSecurityPolicy> m_contentSecurityPolicy;
157 Persistent<ExecutionContext> m_executionContext; 157 Persistent<ExecutionContext> m_executionContext;
158 WebAddressSpace m_responseAddressSpace; 158 WebAddressSpace m_responseAddressSpace;
159 std::unique_ptr<Vector<String>> m_originTrialTokens; 159 std::unique_ptr<Vector<String>> m_originTrialTokens;
160 String m_referrerPolicy; 160 String m_referrerPolicy;
161 }; 161 };
162 162
163 } // namespace blink 163 } // namespace blink
164 164
165 #endif // WorkerScriptLoader_h 165 #endif // WorkerScriptLoader_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698