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

Side by Side Diff: base/async_socket_io_handler_win.cc

Issue 23137015: Move async_socket_io_handler.* from media/ to base/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/async_socket_io_handler_unittest.cc ('k') | base/base.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "media/audio/async_socket_io_handler.h" 5 #include "base/async_socket_io_handler.h"
6 6
7 namespace media { 7 namespace media {
8 8
9 AsyncSocketIoHandler::AsyncSocketIoHandler() 9 AsyncSocketIoHandler::AsyncSocketIoHandler()
10 : socket_(base::SyncSocket::kInvalidHandle), 10 : socket_(base::SyncSocket::kInvalidHandle),
11 context_(NULL), 11 context_(NULL),
12 is_pending_(false) {} 12 is_pending_(false) {}
13 13
14 AsyncSocketIoHandler::~AsyncSocketIoHandler() { 14 AsyncSocketIoHandler::~AsyncSocketIoHandler() {
15 // We need to be deleted on the correct thread to avoid racing with the 15 // We need to be deleted on the correct thread to avoid racing with the
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 base::MessageLoopForIO::current()->RegisterIOHandler(socket, this); 68 base::MessageLoopForIO::current()->RegisterIOHandler(socket, this);
69 69
70 context_ = new base::MessageLoopForIO::IOContext(); 70 context_ = new base::MessageLoopForIO::IOContext();
71 context_->handler = this; 71 context_->handler = this;
72 memset(&context_->overlapped, 0, sizeof(context_->overlapped)); 72 memset(&context_->overlapped, 0, sizeof(context_->overlapped));
73 73
74 return true; 74 return true;
75 } 75 }
76 76
77 } // namespace media. 77 } // namespace media.
OLDNEW
« no previous file with comments | « base/async_socket_io_handler_unittest.cc ('k') | base/base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698