Use base::MessageLoop in media code.
MessageLoop is moved to base namespace in r191566. This CL is the followup
cleanup in media code.
The following folders are replaced:
chrome/browser/media
content/browser/renderer_host/media
content/common/gpu/media
content/common/media
content/renderer/media
media
webkit/media
The following command is used to make sure all instances in these folders are updated:
grep -rin '[^a-zA-Z]MessageLoop[^a-zA-Z]' media chrome/browser/media content/browser/renderer_host/media content/common/gpu/media content/common/media content/renderer/media webkit/media | grep -v 'base::MessageLoop' | grep -v 'class MessageLoop'
Review URL: https://chromiumcodereview.appspot.com/14385002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195626 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/media/audio/async_socket_io_handler.h b/media/audio/async_socket_io_handler.h
index d17e3d3d..7497c500 100644
--- a/media/audio/async_socket_io_handler.h
+++ b/media/audio/async_socket_io_handler.h
@@ -14,9 +14,9 @@
// The message loop callback interface is different based on platforms.
#if defined(OS_WIN)
-typedef MessageLoopForIO::IOHandler MessageLoopIOHandler;
+typedef base::MessageLoopForIO::IOHandler MessageLoopIOHandler;
#elif defined(OS_POSIX)
-typedef MessageLoopForIO::Watcher MessageLoopIOHandler;
+typedef base::MessageLoopForIO::Watcher MessageLoopIOHandler;
#endif
// Extends the CancelableSyncSocket class to allow reading from a socket
@@ -79,11 +79,11 @@
private:
#if defined(OS_WIN)
// Implementation of IOHandler on Windows.
- virtual void OnIOCompleted(MessageLoopForIO::IOContext* context,
+ virtual void OnIOCompleted(base::MessageLoopForIO::IOContext* context,
DWORD bytes_transfered,
DWORD error) OVERRIDE;
#elif defined(OS_POSIX)
- // Implementation of MessageLoopForIO::Watcher.
+ // Implementation of base::MessageLoopForIO::Watcher.
virtual void OnFileCanWriteWithoutBlocking(int socket) OVERRIDE {}
virtual void OnFileCanReadWithoutBlocking(int socket) OVERRIDE;
@@ -92,10 +92,10 @@
base::SyncSocket::Handle socket_;
#if defined(OS_WIN)
- MessageLoopForIO::IOContext* context_;
+ base::MessageLoopForIO::IOContext* context_;
bool is_pending_;
#elif defined(OS_POSIX)
- MessageLoopForIO::FileDescriptorWatcher socket_watcher_;
+ base::MessageLoopForIO::FileDescriptorWatcher socket_watcher_;
// |pending_buffer_| and |pending_buffer_len_| are valid only between
// Read() and OnFileCanReadWithoutBlocking().
char* pending_buffer_;