| Index: third_party/WebKit/Source/modules/webaudio/AudioWorkletThreadStartupData.h
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorkletThreadStartupData.h b/third_party/WebKit/Source/modules/webaudio/AudioWorkletThreadStartupData.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..95d2cb9d6fddf0084724bb164c21b9df6b7effe2
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/webaudio/AudioWorkletThreadStartupData.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef AudioWorkletThreadStartupData_h
|
| +#define AudioWorkletThreadStartupData_h
|
| +
|
| +#include "platform/heap/Handle.h"
|
| +#include "platform/weborigin/KURL.h"
|
| +#include "wtf/Forward.h"
|
| +#include "wtf/Noncopyable.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class SecurityOrigin;
|
| +
|
| +class AudioWorkletThreadStartupData final {
|
| + WTF_MAKE_NONCOPYABLE(AudioWorkletThreadStartupData);
|
| + USING_FAST_MALLOC(AudioWorkletThreadStartupData);
|
| +
|
| +public:
|
| + static PassOwnPtr<AudioWorkletThreadStartupData> create(const KURL& url, const String& userAgent, const SecurityOrigin* securityOrigin)
|
| + {
|
| + return adoptPtr(new AudioWorkletThreadStartupData(url, userAgent, securityOrigin));
|
| + }
|
| +
|
| + ~AudioWorkletThreadStartupData();
|
| +
|
| + KURL m_url;
|
| + String m_userAgent;
|
| + RefPtr<SecurityOrigin> m_securityOrigin;
|
| +
|
| +private:
|
| + AudioWorkletThreadStartupData(const KURL&, const String& userAgent, const SecurityOrigin*);
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // AudioWorkletThreadStartupData_h
|
|
|