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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioWorkletThreadStartupData.h

Issue 1978063002: [DO NOT SUBMIT] AudioWorklet FS2a: AudioWorkletThread on OfflineAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FS2-audiorendersink-audioworkletthread
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698