OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/services/files/public/cpp/output_stream_file.h" | 5 #include "mojo/services/files/cpp/output_stream_file.h" |
6 | 6 |
7 #include "mojo/public/cpp/environment/logging.h" | 7 #include "mojo/public/cpp/environment/logging.h" |
8 | 8 |
9 namespace files_impl { | 9 namespace files_impl { |
10 | 10 |
11 // static | 11 // static |
12 std::unique_ptr<OutputStreamFile> OutputStreamFile::Create( | 12 std::unique_ptr<OutputStreamFile> OutputStreamFile::Create( |
13 Client* client, | 13 Client* client, |
14 mojo::InterfaceRequest<mojo::files::File> request) { | 14 mojo::InterfaceRequest<mojo::files::File> request) { |
15 // TODO(vtl): Use make_unique when we have C++14. | 15 // TODO(vtl): Use make_unique when we have C++14. |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 const IoctlCallback& callback) { | 223 const IoctlCallback& callback) { |
224 if (is_closed_) { | 224 if (is_closed_) { |
225 callback.Run(mojo::files::Error::CLOSED, mojo::Array<uint32_t>()); | 225 callback.Run(mojo::files::Error::CLOSED, mojo::Array<uint32_t>()); |
226 return; | 226 return; |
227 } | 227 } |
228 | 228 |
229 callback.Run(mojo::files::Error::UNIMPLEMENTED, mojo::Array<uint32_t>()); | 229 callback.Run(mojo::files::Error::UNIMPLEMENTED, mojo::Array<uint32_t>()); |
230 } | 230 } |
231 | 231 |
232 } // namespace files_impl | 232 } // namespace files_impl |
OLD | NEW |