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

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

Issue 1190493002: move processContentSecurityPolicy to WorkerScriptLoader (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: (rebase) Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/workers/InProcessWorkerBase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Creates a proxy to allow communicating with the worker's global scope. In ProcessWorkerBase does not take ownership of the 50 // Creates a proxy to allow communicating with the worker's global scope. In ProcessWorkerBase does not take ownership of the
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 RefPtr<ContentSecurityPolicy> m_contentSecurityPolicy;
60 WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to perform thread shutdown. 61 WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to perform thread shutdown.
61 }; 62 };
62 63
63 } // namespace blink 64 } // namespace blink
64 65
65 #endif // InProcessWorkerBase_h 66 #endif // InProcessWorkerBase_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/workers/InProcessWorkerBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698