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

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

Issue 621153003: Move mojo edk into mojo/edk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix checkdeps Created 6 years, 2 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
« no previous file with comments | « mojo/edk/system/data_pipe_producer_dispatcher.h ('k') | mojo/edk/system/data_pipe_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/system/data_pipe_producer_dispatcher.h" 5 #include "mojo/edk/system/data_pipe_producer_dispatcher.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "mojo/system/data_pipe.h" 8 #include "mojo/edk/system/data_pipe.h"
9 #include "mojo/system/memory.h" 9 #include "mojo/edk/system/memory.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 namespace system { 12 namespace system {
13 13
14 DataPipeProducerDispatcher::DataPipeProducerDispatcher() { 14 DataPipeProducerDispatcher::DataPipeProducerDispatcher() {
15 } 15 }
16 16
17 void DataPipeProducerDispatcher::Init(scoped_refptr<DataPipe> data_pipe) { 17 void DataPipeProducerDispatcher::Init(scoped_refptr<DataPipe> data_pipe) {
18 DCHECK(data_pipe.get()); 18 DCHECK(data_pipe.get());
19 data_pipe_ = data_pipe; 19 data_pipe_ = data_pipe;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 data_pipe_->ProducerRemoveWaiter(waiter, signals_state); 98 data_pipe_->ProducerRemoveWaiter(waiter, signals_state);
99 } 99 }
100 100
101 bool DataPipeProducerDispatcher::IsBusyNoLock() const { 101 bool DataPipeProducerDispatcher::IsBusyNoLock() const {
102 lock().AssertAcquired(); 102 lock().AssertAcquired();
103 return data_pipe_->ProducerIsBusy(); 103 return data_pipe_->ProducerIsBusy();
104 } 104 }
105 105
106 } // namespace system 106 } // namespace system
107 } // namespace mojo 107 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/data_pipe_producer_dispatcher.h ('k') | mojo/edk/system/data_pipe_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698