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

Side by Side Diff: mojo/edk/system/raw_channel_posix.cc

Issue 1426343002: EDK: Move mutex.*, cond_var.*, and thread_annotations.h to //mojo/edk/util. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: oops Created 5 years, 1 month 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
« no previous file with comments | « mojo/edk/system/raw_channel.cc ('k') | mojo/edk/system/raw_channel_unittest.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <errno.h> 7 #include <errno.h>
8 #include <sys/uio.h> 8 #include <sys/uio.h>
9 #include <unistd.h> 9 #include <unistd.h>
10 10
11 #include <algorithm> 11 #include <algorithm>
12 #include <deque> 12 #include <deque>
13 #include <memory> 13 #include <memory>
14 #include <utility> 14 #include <utility>
15 15
16 #include "base/bind.h" 16 #include "base/bind.h"
17 #include "base/location.h" 17 #include "base/location.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/message_loop/message_loop.h" 20 #include "base/message_loop/message_loop.h"
21 #include "mojo/edk/embedder/platform_channel_utils.h" 21 #include "mojo/edk/embedder/platform_channel_utils.h"
22 #include "mojo/edk/embedder/platform_handle.h" 22 #include "mojo/edk/embedder/platform_handle.h"
23 #include "mojo/edk/embedder/platform_handle_vector.h" 23 #include "mojo/edk/embedder/platform_handle_vector.h"
24 #include "mojo/edk/system/transport_data.h" 24 #include "mojo/edk/system/transport_data.h"
25 #include "mojo/edk/util/make_unique.h" 25 #include "mojo/edk/util/make_unique.h"
26 #include "mojo/public/cpp/system/macros.h" 26 #include "mojo/public/cpp/system/macros.h"
27 27
28 using mojo::util::MutexLocker;
29
28 namespace mojo { 30 namespace mojo {
29 namespace system { 31 namespace system {
30 32
31 namespace { 33 namespace {
32 34
33 class RawChannelPosix final : public RawChannel, 35 class RawChannelPosix final : public RawChannel,
34 public base::MessageLoopForIO::Watcher { 36 public base::MessageLoopForIO::Watcher {
35 public: 37 public:
36 explicit RawChannelPosix(embedder::ScopedPlatformHandle handle); 38 explicit RawChannelPosix(embedder::ScopedPlatformHandle handle);
37 ~RawChannelPosix() override; 39 ~RawChannelPosix() override;
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 472
471 // Static factory method declared in raw_channel.h. 473 // Static factory method declared in raw_channel.h.
472 // static 474 // static
473 std::unique_ptr<RawChannel> RawChannel::Create( 475 std::unique_ptr<RawChannel> RawChannel::Create(
474 embedder::ScopedPlatformHandle handle) { 476 embedder::ScopedPlatformHandle handle) {
475 return util::MakeUnique<RawChannelPosix>(handle.Pass()); 477 return util::MakeUnique<RawChannelPosix>(handle.Pass());
476 } 478 }
477 479
478 } // namespace system 480 } // namespace system
479 } // namespace mojo 481 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/raw_channel.cc ('k') | mojo/edk/system/raw_channel_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698