OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_AUDIO_ASYNC_SOCKET_IO_HANDLER_H_ | 5 #ifndef MEDIA_AUDIO_ASYNC_SOCKET_IO_HANDLER_H_ |
6 #define MEDIA_AUDIO_ASYNC_SOCKET_IO_HANDLER_H_ | 6 #define MEDIA_AUDIO_ASYNC_SOCKET_IO_HANDLER_H_ |
7 | 7 |
8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/sync_socket.h" | 9 #include "base/sync_socket.h" |
10 #include "base/threading/non_thread_safe.h" | 10 #include "base/threading/non_thread_safe.h" |
11 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
12 | 12 |
13 namespace media { | 13 namespace media { |
14 | 14 |
15 // The message loop callback interface is different based on platforms. | 15 // The message loop callback interface is different based on platforms. |
16 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
17 typedef base::MessageLoopForIO::IOHandler MessageLoopIOHandler; | 17 typedef base::MessageLoopForIO::IOHandler MessageLoopIOHandler; |
18 #elif defined(OS_POSIX) | 18 #elif defined(OS_POSIX) |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 bool is_watching_; | 104 bool is_watching_; |
105 #endif | 105 #endif |
106 ReadCompleteCallback read_complete_; | 106 ReadCompleteCallback read_complete_; |
107 | 107 |
108 DISALLOW_COPY_AND_ASSIGN(AsyncSocketIoHandler); | 108 DISALLOW_COPY_AND_ASSIGN(AsyncSocketIoHandler); |
109 }; | 109 }; |
110 | 110 |
111 } // namespace media. | 111 } // namespace media. |
112 | 112 |
113 #endif // MEDIA_AUDIO_ASYNC_SOCKET_IO_HANDLER_H_ | 113 #endif // MEDIA_AUDIO_ASYNC_SOCKET_IO_HANDLER_H_ |
OLD | NEW |