| 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/webaudio/AudioWorkletThread.h" | 5 #include "modules/webaudio/AudioWorkletThread.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include "core/workers/WorkerBackingThread.h" | 8 #include "core/workers/WorkerBackingThread.h" |
| 9 #include "core/workers/WorkerThreadStartupData.h" | 9 #include "core/workers/WorkerThreadStartupData.h" |
| 10 #include "modules/webaudio/AudioWorkletGlobalScope.h" | 10 #include "modules/webaudio/AudioWorkletGlobalScope.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 RefPtr<SecurityOrigin> security_origin = | 82 RefPtr<SecurityOrigin> security_origin = |
| 83 SecurityOrigin::Create(startup_data->script_url_); | 83 SecurityOrigin::Create(startup_data->script_url_); |
| 84 if (startup_data->starter_origin_privilege_data_) { | 84 if (startup_data->starter_origin_privilege_data_) { |
| 85 security_origin->TransferPrivilegesFrom( | 85 security_origin->TransferPrivilegesFrom( |
| 86 std::move(startup_data->starter_origin_privilege_data_)); | 86 std::move(startup_data->starter_origin_privilege_data_)); |
| 87 } | 87 } |
| 88 | 88 |
| 89 return AudioWorkletGlobalScope::Create( | 89 return AudioWorkletGlobalScope::Create( |
| 90 startup_data->script_url_, startup_data->user_agent_, | 90 startup_data->script_url_, startup_data->user_agent_, |
| 91 security_origin.Release(), this->GetIsolate(), this); | 91 std::move(security_origin), this->GetIsolate(), this); |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| OLD | NEW |