OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef AudioWorkletThreadStartupData_h |
| 6 #define AudioWorkletThreadStartupData_h |
| 7 |
| 8 #include "platform/heap/Handle.h" |
| 9 #include "platform/weborigin/KURL.h" |
| 10 #include "wtf/Forward.h" |
| 11 #include "wtf/Noncopyable.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class SecurityOrigin; |
| 16 |
| 17 class AudioWorkletThreadStartupData final { |
| 18 WTF_MAKE_NONCOPYABLE(AudioWorkletThreadStartupData); |
| 19 USING_FAST_MALLOC(AudioWorkletThreadStartupData); |
| 20 |
| 21 public: |
| 22 static PassOwnPtr<AudioWorkletThreadStartupData> create(const KURL& url, con
st String& userAgent, const SecurityOrigin* securityOrigin) |
| 23 { |
| 24 return adoptPtr(new AudioWorkletThreadStartupData(url, userAgent, securi
tyOrigin)); |
| 25 } |
| 26 |
| 27 ~AudioWorkletThreadStartupData(); |
| 28 |
| 29 KURL m_url; |
| 30 String m_userAgent; |
| 31 RefPtr<SecurityOrigin> m_securityOrigin; |
| 32 |
| 33 private: |
| 34 AudioWorkletThreadStartupData(const KURL&, const String& userAgent, const Se
curityOrigin*); |
| 35 }; |
| 36 |
| 37 } // namespace blink |
| 38 |
| 39 #endif // AudioWorkletThreadStartupData_h |
OLD | NEW |