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

Side by Side Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 #include "modules/compositorworker/CompositorWorkerGlobalScope.h" 5 #include "modules/compositorworker/CompositorWorkerGlobalScope.h"
6 6
7 #include "bindings/core/v8/SerializedScriptValue.h" 7 #include "bindings/core/v8/SerializedScriptValue.h"
8 #include "core/workers/WorkerObjectProxy.h" 8 #include "core/workers/WorkerObjectProxy.h"
9 #include "core/workers/WorkerThreadStartupData.h" 9 #include "core/workers/WorkerThreadStartupData.h"
10 #include "modules/EventTargetModules.h" 10 #include "modules/EventTargetModules.h"
11 #include "modules/compositorworker/CompositorWorkerThread.h" 11 #include "modules/compositorworker/CompositorWorkerThread.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 PassRefPtrWillBeRawPtr<CompositorWorkerGlobalScope> CompositorWorkerGlobalScope: :create(CompositorWorkerThread* thread, PassOwnPtr<WorkerThreadStartupData> star tupData, double timeOrigin) 15 RawPtr<CompositorWorkerGlobalScope> CompositorWorkerGlobalScope::create(Composit orWorkerThread* thread, PassOwnPtr<WorkerThreadStartupData> startupData, double timeOrigin)
16 { 16 {
17 // Note: startupData is finalized on return. After the relevant parts has be en 17 // Note: startupData is finalized on return. After the relevant parts has be en
18 // passed along to the created 'context'. 18 // passed along to the created 'context'.
19 RefPtrWillBeRawPtr<CompositorWorkerGlobalScope> context = adoptRefWillBeNoop (new CompositorWorkerGlobalScope(startupData->m_scriptURL, startupData->m_userAg ent, thread, timeOrigin, startupData->m_starterOriginPrivilegeData.release(), st artupData->m_workerClients.release())); 19 RawPtr<CompositorWorkerGlobalScope> context = new CompositorWorkerGlobalScop e(startupData->m_scriptURL, startupData->m_userAgent, thread, timeOrigin, startu pData->m_starterOriginPrivilegeData.release(), startupData->m_workerClients.rele ase());
20 context->applyContentSecurityPolicyFromVector(*startupData->m_contentSecurit yPolicyHeaders); 20 context->applyContentSecurityPolicyFromVector(*startupData->m_contentSecurit yPolicyHeaders);
21 context->setAddressSpace(startupData->m_addressSpace); 21 context->setAddressSpace(startupData->m_addressSpace);
22 return context.release(); 22 return context.release();
23 } 23 }
24 24
25 CompositorWorkerGlobalScope::CompositorWorkerGlobalScope(const KURL& url, const String& userAgent, CompositorWorkerThread* thread, double timeOrigin, PassOwnPtr <SecurityOrigin::PrivilegeData> starterOriginPrivilegeData, PassOwnPtrWillBeRawP tr<WorkerClients> workerClients) 25 CompositorWorkerGlobalScope::CompositorWorkerGlobalScope(const KURL& url, const String& userAgent, CompositorWorkerThread* thread, double timeOrigin, PassOwnPtr <SecurityOrigin::PrivilegeData> starterOriginPrivilegeData, RawPtr<WorkerClients > workerClients)
26 : WorkerGlobalScope(url, userAgent, thread, timeOrigin, starterOriginPrivile geData, workerClients) 26 : WorkerGlobalScope(url, userAgent, thread, timeOrigin, starterOriginPrivile geData, workerClients)
27 , m_callbackCollection(this) 27 , m_callbackCollection(this)
28 { 28 {
29 } 29 }
30 30
31 CompositorWorkerGlobalScope::~CompositorWorkerGlobalScope() 31 CompositorWorkerGlobalScope::~CompositorWorkerGlobalScope()
32 { 32 {
33 } 33 }
34 34
35 DEFINE_TRACE(CompositorWorkerGlobalScope) 35 DEFINE_TRACE(CompositorWorkerGlobalScope)
(...skipping 30 matching lines...) Expand all
66 { 66 {
67 m_callbackCollection.executeCallbacks(highResTimeNow, highResTimeNow); 67 m_callbackCollection.executeCallbacks(highResTimeNow, highResTimeNow);
68 } 68 }
69 69
70 CompositorWorkerThread* CompositorWorkerGlobalScope::thread() const 70 CompositorWorkerThread* CompositorWorkerGlobalScope::thread() const
71 { 71 {
72 return static_cast<CompositorWorkerThread*>(WorkerGlobalScope::thread()); 72 return static_cast<CompositorWorkerThread*>(WorkerGlobalScope::thread());
73 } 73 }
74 74
75 } // namespace blink 75 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698