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/common/data_pipe_utils.h" | 5 #include "mojo/common/data_pipe_utils.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
7 #include <stdio.h> | 9 #include <stdio.h> |
8 #include <utility> | 10 #include <utility> |
9 | 11 |
10 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
11 #include "base/files/file_util.h" | 13 #include "base/files/file_util.h" |
12 #include "base/files/scoped_file.h" | 14 #include "base/files/scoped_file.h" |
13 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
14 #include "base/task_runner_util.h" | 16 #include "base/task_runner_util.h" |
15 | 17 |
16 namespace mojo { | 18 namespace mojo { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 const base::Callback<void(bool)>& callback) { | 122 const base::Callback<void(bool)>& callback) { |
121 base::PostTaskAndReplyWithResult( | 123 base::PostTaskAndReplyWithResult( |
122 task_runner, | 124 task_runner, |
123 FROM_HERE, | 125 FROM_HERE, |
124 base::Bind(&BlockingCopyToFile, base::Passed(&source), destination), | 126 base::Bind(&BlockingCopyToFile, base::Passed(&source), destination), |
125 callback); | 127 callback); |
126 } | 128 } |
127 | 129 |
128 } // namespace common | 130 } // namespace common |
129 } // namespace mojo | 131 } // namespace mojo |
OLD | NEW |