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

Unified Diff: Source/core/dom/custom/RefCountedCustomElementMicrotaskQueue.h

Issue 238923009: HTML Imports: No more BlockingDocumentCreation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed the build breakage Created 6 years, 8 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: Source/core/dom/custom/RefCountedCustomElementMicrotaskQueue.h
diff --git a/Source/platform/audio/AudioDestinationConsumer.h b/Source/core/dom/custom/RefCountedCustomElementMicrotaskQueue.h
similarity index 72%
copy from Source/platform/audio/AudioDestinationConsumer.h
copy to Source/core/dom/custom/RefCountedCustomElementMicrotaskQueue.h
index 5fc1ad973f401ae767c6e85b29fff04fe1b60e39..8f9d25d1db0e5d9e8eb4994b533765823877dd5a 100644
--- a/Source/platform/audio/AudioDestinationConsumer.h
+++ b/Source/core/dom/custom/RefCountedCustomElementMicrotaskQueue.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
+ * Copyright (C) 2014 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -28,24 +28,21 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef AudioDestinationConsumer_h
-#define AudioDestinationConsumer_h
+#ifndef RefCountedCustomElementMicrotaskQueue_h
+#define RefCountedCustomElementMicrotaskQueue_h
-#include "platform/PlatformExport.h"
+#include "core/dom/custom/CustomElementMicrotaskQueue.h"
+#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
+#include "wtf/RefPtr.h"
namespace WebCore {
-class AudioBus;
-
-class PLATFORM_EXPORT AudioDestinationConsumer : public RefCounted<AudioDestinationConsumer> {
+class RefCountedCustomElementMicrotaskQueue : public RefCounted<RefCountedCustomElementMicrotaskQueue>, public CustomElementMicrotaskQueue {
dominicc (has gone to gerrit) 2014/04/18 00:56:26 What would it look like if we just made the Custom
Hajime Morrita 2014/04/18 01:48:33 Right. Done.
public:
- virtual ~AudioDestinationConsumer();
-
- virtual void setFormat(size_t numberOfChannels, float sampleRate) = 0;
- virtual void consumeAudio(AudioBus*, size_t numberOfFrames) = 0;
+ static PassRefPtr<RefCountedCustomElementMicrotaskQueue> create() { return adoptRef(new RefCountedCustomElementMicrotaskQueue()); }
};
-} // WebCore
+}
-#endif // AudioDestinationConsumer_h
+#endif // RefCountedCustomElementMicrotaskQueue_h

Powered by Google App Engine
This is Rietveld 408576698