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 #ifndef COMPONENTS_FILESYSTEM_UTIL_H_ | 5 #ifndef COMPONENTS_FILESYSTEM_UTIL_H_ |
6 #define COMPONENTS_FILESYSTEM_UTIL_H_ | 6 #define COMPONENTS_FILESYSTEM_UTIL_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/files/file.h" | 10 #include "base/files/file.h" |
9 #include "components/filesystem/public/interfaces/types.mojom.h" | 11 #include "components/filesystem/public/interfaces/types.mojom.h" |
10 | 12 |
11 namespace mojo { | 13 namespace mojo { |
12 class String; | 14 class String; |
13 } | 15 } |
14 | 16 |
15 namespace filesystem { | 17 namespace filesystem { |
16 | 18 |
17 // Validation functions (typically used to check arguments; they return | 19 // Validation functions (typically used to check arguments; they return |
(...skipping 24 matching lines...) Expand all Loading... |
42 FileInformationPtr MakeFileInformation(const base::File::Info& info); | 44 FileInformationPtr MakeFileInformation(const base::File::Info& info); |
43 | 45 |
44 // Creates an absolute file path and ensures that we don't try to traverse up. | 46 // Creates an absolute file path and ensures that we don't try to traverse up. |
45 FileError ValidatePath(const mojo::String& raw_path, | 47 FileError ValidatePath(const mojo::String& raw_path, |
46 const base::FilePath& filesystem_base, | 48 const base::FilePath& filesystem_base, |
47 base::FilePath* out); | 49 base::FilePath* out); |
48 | 50 |
49 } // namespace filesystem | 51 } // namespace filesystem |
50 | 52 |
51 #endif // COMPONENTS_FILESYSTEM_UTIL_H_ | 53 #endif // COMPONENTS_FILESYSTEM_UTIL_H_ |
OLD | NEW |