OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/edk/system/raw_channel.h" | 5 #include "mojo/edk/system/raw_channel.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
7 #include <string.h> | 9 #include <string.h> |
8 #include <algorithm> | 10 #include <algorithm> |
9 #include <utility> | 11 #include <utility> |
10 | 12 |
11 #include "base/bind.h" | 13 #include "base/bind.h" |
12 #include "base/location.h" | 14 #include "base/location.h" |
13 #include "base/logging.h" | 15 #include "base/logging.h" |
14 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
15 #include "mojo/edk/embedder/embedder_internal.h" | 17 #include "mojo/edk/embedder/embedder_internal.h" |
16 #include "mojo/edk/system/configuration.h" | 18 #include "mojo/edk/system/configuration.h" |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 OnReadCompletedNoLock(io_result, bytes_read); | 721 OnReadCompletedNoLock(io_result, bytes_read); |
720 } | 722 } |
721 | 723 |
722 void RawChannel::WillDestroyCurrentMessageLoop() { | 724 void RawChannel::WillDestroyCurrentMessageLoop() { |
723 base::AutoLock locker(read_lock_); | 725 base::AutoLock locker(read_lock_); |
724 OnReadCompletedNoLock(IO_FAILED_SHUTDOWN, 0); | 726 OnReadCompletedNoLock(IO_FAILED_SHUTDOWN, 0); |
725 } | 727 } |
726 | 728 |
727 } // namespace edk | 729 } // namespace edk |
728 } // namespace mojo | 730 } // namespace mojo |
OLD | NEW |