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

Side by Side Diff: components/filesystem/file_impl.cc

Issue 2607063002: Remove mojo::Array. (Closed)
Patch Set: rebase Created 3 years, 11 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
OLDNEW
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 "components/filesystem/file_impl.h" 5 #include "components/filesystem/file_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <limits> 9 #include <limits>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/files/scoped_file.h" 13 #include "base/files/scoped_file.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/memory/ptr_util.h" 15 #include "base/memory/ptr_util.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "components/filesystem/lock_table.h" 17 #include "components/filesystem/lock_table.h"
18 #include "components/filesystem/shared_temp_dir.h" 18 #include "components/filesystem/shared_temp_dir.h"
19 #include "components/filesystem/util.h" 19 #include "components/filesystem/util.h"
20 #include "mojo/common/common_type_converters.h"
21 #include "mojo/public/cpp/bindings/strong_binding.h" 20 #include "mojo/public/cpp/bindings/strong_binding.h"
22 21
23 static_assert(sizeof(off_t) <= sizeof(int64_t), "off_t too big"); 22 static_assert(sizeof(off_t) <= sizeof(int64_t), "off_t too big");
24 static_assert(sizeof(size_t) >= sizeof(uint32_t), "size_t too small"); 23 static_assert(sizeof(size_t) >= sizeof(uint32_t), "size_t too small");
25 24
26 using base::Time; 25 using base::Time;
27 26
28 namespace filesystem { 27 namespace filesystem {
29 namespace { 28 namespace {
30 29
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 // we should be absolutely paranoid. 347 // we should be absolutely paranoid.
349 if (info.is_directory) { 348 if (info.is_directory) {
350 callback.Run(mojom::FileError::NOT_A_FILE, base::File()); 349 callback.Run(mojom::FileError::NOT_A_FILE, base::File());
351 return; 350 return;
352 } 351 }
353 352
354 callback.Run(mojom::FileError::OK, std::move(new_file)); 353 callback.Run(mojom::FileError::OK, std::move(new_file));
355 } 354 }
356 355
357 } // namespace filesystem 356 } // namespace filesystem
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698