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

Side by Side Diff: Source/core/workers/InProcessWorkerBase.h

Issue 1128813003: Give shared workers their own content security policies (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef InProcessWorkerBase_h 5 #ifndef InProcessWorkerBase_h
6 #define InProcessWorkerBase_h 6 #define InProcessWorkerBase_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/dom/ActiveDOMObject.h" 9 #include "core/dom/ActiveDOMObject.h"
10 #include "core/dom/MessagePort.h" 10 #include "core/dom/MessagePort.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // created proxy. The proxy is expected to manage its own lifetime, and dele te itself in response to terminateWorkerGlobalScope(). 51 // created proxy. The proxy is expected to manage its own lifetime, and dele te itself in response to terminateWorkerGlobalScope().
52 virtual WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(ExecutionContex t*) = 0; 52 virtual WorkerGlobalScopeProxy* createWorkerGlobalScopeProxy(ExecutionContex t*) = 0;
53 53
54 private: 54 private:
55 // WorkerScriptLoaderClient callbacks 55 // WorkerScriptLoaderClient callbacks
56 void didReceiveResponse(unsigned long identifier, const ResourceResponse&) o verride; 56 void didReceiveResponse(unsigned long identifier, const ResourceResponse&) o verride;
57 void notifyFinished() override; 57 void notifyFinished() override;
58 58
59 RefPtr<WorkerScriptLoader> m_scriptLoader; 59 RefPtr<WorkerScriptLoader> m_scriptLoader;
60 WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to perform thread shutdown. 60 WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to perform thread shutdown.
61 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy;
62 }; 61 };
63 62
64 } // namespace blink 63 } // namespace blink
65 64
66 #endif // InProcessWorkerBase_h 65 #endif // InProcessWorkerBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698