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_DIRECTORY_IMPL_H_ | 5 #ifndef COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ |
6 #define COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ | 6 #define COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/files/scoped_file.h" | 9 #include "base/files/scoped_file.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 void OpenDirectory(const mojo::String& path, | 37 void OpenDirectory(const mojo::String& path, |
38 mojo::InterfaceRequest<Directory> directory, | 38 mojo::InterfaceRequest<Directory> directory, |
39 uint32_t open_flags, | 39 uint32_t open_flags, |
40 const OpenDirectoryCallback& callback) override; | 40 const OpenDirectoryCallback& callback) override; |
41 void Rename(const mojo::String& path, | 41 void Rename(const mojo::String& path, |
42 const mojo::String& new_path, | 42 const mojo::String& new_path, |
43 const RenameCallback& callback) override; | 43 const RenameCallback& callback) override; |
44 void Delete(const mojo::String& path, | 44 void Delete(const mojo::String& path, |
45 uint32_t delete_flags, | 45 uint32_t delete_flags, |
46 const DeleteCallback& callback) override; | 46 const DeleteCallback& callback) override; |
| 47 void Exists(const mojo::String& path, |
| 48 const ExistsCallback& callback) override; |
| 49 void IsWritable(const mojo::String& path, |
| 50 const IsWritableCallback& callback) override; |
47 | 51 |
48 private: | 52 private: |
49 mojo::StrongBinding<Directory> binding_; | 53 mojo::StrongBinding<Directory> binding_; |
50 base::FilePath directory_path_; | 54 base::FilePath directory_path_; |
51 scoped_ptr<base::ScopedTempDir> temp_dir_; | 55 scoped_ptr<base::ScopedTempDir> temp_dir_; |
52 | 56 |
53 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); | 57 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); |
54 }; | 58 }; |
55 | 59 |
56 } // namespace filesystem | 60 } // namespace filesystem |
57 | 61 |
58 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ | 62 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ |
OLD | NEW |