| 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; |
| 51 void Flush(const FlushCallback& callback) override; |
| 47 | 52 |
| 48 private: | 53 private: |
| 49 mojo::StrongBinding<Directory> binding_; | 54 mojo::StrongBinding<Directory> binding_; |
| 50 base::FilePath directory_path_; | 55 base::FilePath directory_path_; |
| 51 scoped_ptr<base::ScopedTempDir> temp_dir_; | 56 scoped_ptr<base::ScopedTempDir> temp_dir_; |
| 52 | 57 |
| 53 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); | 58 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); |
| 54 }; | 59 }; |
| 55 | 60 |
| 56 } // namespace filesystem | 61 } // namespace filesystem |
| 57 | 62 |
| 58 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ | 63 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ |
| OLD | NEW |