OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/AnimationWorkletThread.h" | 5 #include "modules/compositorworker/AnimationWorkletThread.h" |
6 | 6 |
7 #include "core/workers/WorkerThreadStartupData.h" | 7 #include "core/workers/WorkerThreadStartupData.h" |
8 #include "modules/compositorworker/AnimationWorkletGlobalScope.h" | 8 #include "modules/compositorworker/AnimationWorkletGlobalScope.h" |
9 #include "platform/instrumentation/tracing/TraceEvent.h" | 9 #include "platform/instrumentation/tracing/TraceEvent.h" |
10 #include "platform/weborigin/SecurityOrigin.h" | 10 #include "platform/weborigin/SecurityOrigin.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 RefPtr<SecurityOrigin> security_origin = | 38 RefPtr<SecurityOrigin> security_origin = |
39 SecurityOrigin::Create(startup_data->script_url_); | 39 SecurityOrigin::Create(startup_data->script_url_); |
40 if (startup_data->starter_origin_privilege_data_) | 40 if (startup_data->starter_origin_privilege_data_) |
41 security_origin->TransferPrivilegesFrom( | 41 security_origin->TransferPrivilegesFrom( |
42 std::move(startup_data->starter_origin_privilege_data_)); | 42 std::move(startup_data->starter_origin_privilege_data_)); |
43 | 43 |
44 // TODO(ikilpatrick): The AnimationWorkletGlobalScope will need to store a | 44 // TODO(ikilpatrick): The AnimationWorkletGlobalScope will need to store a |
45 // WorkerClients object for using a CompositorWorkerProxyClient object. | 45 // WorkerClients object for using a CompositorWorkerProxyClient object. |
46 return AnimationWorkletGlobalScope::Create( | 46 return AnimationWorkletGlobalScope::Create( |
47 startup_data->script_url_, startup_data->user_agent_, | 47 startup_data->script_url_, startup_data->user_agent_, |
48 security_origin.Release(), this->GetIsolate(), this); | 48 std::move(security_origin), this->GetIsolate(), this); |
49 } | 49 } |
50 | 50 |
51 } // namespace blink | 51 } // namespace blink |
OLD | NEW |