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

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

Issue 1483823004: EDK: Move {platform_handle,scoped_platform_handle}.* to //mojo/edk/platform. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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/data_pipe_consumer_dispatcher.h ('k') | mojo/edk/system/data_pipe_impl.h » ('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/data_pipe_consumer_dispatcher.h" 5 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "mojo/edk/system/data_pipe.h" 10 #include "mojo/edk/system/data_pipe.h"
11 #include "mojo/edk/system/memory.h" 11 #include "mojo/edk/system/memory.h"
12 12
13 using mojo::embedder::ScopedPlatformHandle; 13 using mojo::platform::ScopedPlatformHandle;
14 using mojo::util::MutexLocker; 14 using mojo::util::MutexLocker;
15 using mojo::util::RefPtr; 15 using mojo::util::RefPtr;
16 16
17 namespace mojo { 17 namespace mojo {
18 namespace system { 18 namespace system {
19 19
20 void DataPipeConsumerDispatcher::Init(RefPtr<DataPipe>&& data_pipe) { 20 void DataPipeConsumerDispatcher::Init(RefPtr<DataPipe>&& data_pipe) {
21 DCHECK(data_pipe); 21 DCHECK(data_pipe);
22 data_pipe_ = std::move(data_pipe); 22 data_pipe_ = std::move(data_pipe);
23 } 23 }
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 return rv; 171 return rv;
172 } 172 }
173 173
174 bool DataPipeConsumerDispatcher::IsBusyNoLock() const { 174 bool DataPipeConsumerDispatcher::IsBusyNoLock() const {
175 mutex().AssertHeld(); 175 mutex().AssertHeld();
176 return data_pipe_->ConsumerIsBusy(); 176 return data_pipe_->ConsumerIsBusy();
177 } 177 }
178 178
179 } // namespace system 179 } // namespace system
180 } // namespace mojo 180 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/data_pipe_consumer_dispatcher.h ('k') | mojo/edk/system/data_pipe_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698