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

Unified Diff: Source/modules/mediasource/WebKitSourceBufferList.cpp

Issue 14619016: Add WebKit prefix to MediaSource,SourceBuffer, and SourceBufferList objects. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 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: Source/modules/mediasource/WebKitSourceBufferList.cpp
diff --git a/Source/modules/mediasource/SourceBufferList.cpp b/Source/modules/mediasource/WebKitSourceBufferList.cpp
similarity index 74%
rename from Source/modules/mediasource/SourceBufferList.cpp
rename to Source/modules/mediasource/WebKitSourceBufferList.cpp
index 10aecadf9097e264bd628a156b252c1419bf7030..1c077cf40ac39ca2000feacb7a32328ac5093d6d 100644
--- a/Source/modules/mediasource/SourceBufferList.cpp
+++ b/Source/modules/mediasource/WebKitSourceBufferList.cpp
@@ -29,40 +29,39 @@
*/
#include "config.h"
-#include "modules/mediasource/SourceBufferList.h"
+#include "modules/mediasource/WebKitSourceBufferList.h"
#include "core/dom/Event.h"
#include "core/dom/GenericEventQueue.h"
-#include "modules/mediasource/SourceBuffer.h"
+#include "modules/mediasource/WebKitSourceBuffer.h"
namespace WebCore {
-SourceBufferList::SourceBufferList(ScriptExecutionContext* context,
- GenericEventQueue* asyncEventQueue)
+WebKitSourceBufferList::WebKitSourceBufferList(ScriptExecutionContext* context, GenericEventQueue* asyncEventQueue)
: m_scriptExecutionContext(context)
, m_asyncEventQueue(asyncEventQueue)
{
}
-unsigned long SourceBufferList::length() const
+unsigned long WebKitSourceBufferList::length() const
{
return m_list.size();
}
-SourceBuffer* SourceBufferList::item(unsigned index) const
+WebKitSourceBuffer* WebKitSourceBufferList::item(unsigned index) const
{
if (index >= m_list.size())
return 0;
return m_list[index].get();
}
-void SourceBufferList::add(PassRefPtr<SourceBuffer> buffer)
+void WebKitSourceBufferList::add(PassRefPtr<WebKitSourceBuffer> buffer)
{
m_list.append(buffer);
createAndFireEvent(eventNames().webkitaddsourcebufferEvent);
}
-bool SourceBufferList::remove(SourceBuffer* buffer)
+bool WebKitSourceBufferList::remove(WebKitSourceBuffer* buffer)
{
size_t index = m_list.find(buffer);
if (index == notFound)
@@ -74,7 +73,7 @@ bool SourceBufferList::remove(SourceBuffer* buffer)
return true;
}
-void SourceBufferList::clear()
+void WebKitSourceBufferList::clear()
{
for (size_t i = 0; i < m_list.size(); ++i)
m_list[i]->removedFromMediaSource();
@@ -82,7 +81,7 @@ void SourceBufferList::clear()
createAndFireEvent(eventNames().webkitremovesourcebufferEvent);
}
-void SourceBufferList::createAndFireEvent(const AtomicString& eventName)
+void WebKitSourceBufferList::createAndFireEvent(const AtomicString& eventName)
{
ASSERT(m_asyncEventQueue);
@@ -92,22 +91,22 @@ void SourceBufferList::createAndFireEvent(const AtomicString& eventName)
m_asyncEventQueue->enqueueEvent(event.release());
}
-const AtomicString& SourceBufferList::interfaceName() const
+const AtomicString& WebKitSourceBufferList::interfaceName() const
{
- return eventNames().interfaceForSourceBufferList;
+ return eventNames().interfaceForWebKitSourceBufferList;
}
-ScriptExecutionContext* SourceBufferList::scriptExecutionContext() const
+ScriptExecutionContext* WebKitSourceBufferList::scriptExecutionContext() const
{
return m_scriptExecutionContext;
}
-EventTargetData* SourceBufferList::eventTargetData()
+EventTargetData* WebKitSourceBufferList::eventTargetData()
{
return &m_eventTargetData;
}
-EventTargetData* SourceBufferList::ensureEventTargetData()
+EventTargetData* WebKitSourceBufferList::ensureEventTargetData()
{
return &m_eventTargetData;
}
« no previous file with comments | « Source/modules/mediasource/WebKitSourceBufferList.h ('k') | Source/modules/mediasource/WebKitSourceBufferList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698