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

Side by Side Diff: mojo/common/data_pipe_drainer.cc

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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/common/data_pipe_drainer.h ('k') | mojo/common/data_pipe_file_utils.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 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/common/data_pipe_drainer.h" 5 #include "mojo/common/data_pipe_drainer.h"
6 6
7 #include <stdint.h>
8
7 #include <utility> 9 #include <utility>
8 10
9 #include "base/bind.h" 11 #include "base/bind.h"
10 12
11 namespace mojo { 13 namespace mojo {
12 namespace common { 14 namespace common {
13 15
14 DataPipeDrainer::DataPipeDrainer(Client* client, 16 DataPipeDrainer::DataPipeDrainer(Client* client,
15 mojo::ScopedDataPipeConsumerHandle source) 17 mojo::ScopedDataPipeConsumerHandle source)
16 : client_(client), source_(std::move(source)), weak_factory_(this) { 18 : client_(client), source_(std::move(source)), weak_factory_(this) {
(...skipping 26 matching lines...) Expand all
43 source_.get(), MOJO_HANDLE_SIGNAL_READABLE, MOJO_DEADLINE_INDEFINITE, 45 source_.get(), MOJO_HANDLE_SIGNAL_READABLE, MOJO_DEADLINE_INDEFINITE,
44 base::Bind(&DataPipeDrainer::WaitComplete, weak_factory_.GetWeakPtr())); 46 base::Bind(&DataPipeDrainer::WaitComplete, weak_factory_.GetWeakPtr()));
45 } 47 }
46 48
47 void DataPipeDrainer::WaitComplete(MojoResult result) { 49 void DataPipeDrainer::WaitComplete(MojoResult result) {
48 ReadData(); 50 ReadData();
49 } 51 }
50 52
51 } // namespace common 53 } // namespace common
52 } // namespace mojo 54 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/common/data_pipe_drainer.h ('k') | mojo/common/data_pipe_file_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698