| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 const mojo::String& new_path, | 48 const mojo::String& new_path, |
| 49 const RenameCallback& callback) override; | 49 const RenameCallback& callback) override; |
| 50 void Delete(const mojo::String& path, | 50 void Delete(const mojo::String& path, |
| 51 uint32_t delete_flags, | 51 uint32_t delete_flags, |
| 52 const DeleteCallback& callback) override; | 52 const DeleteCallback& callback) override; |
| 53 void Exists(const mojo::String& path, | 53 void Exists(const mojo::String& path, |
| 54 const ExistsCallback& callback) override; | 54 const ExistsCallback& callback) override; |
| 55 void IsWritable(const mojo::String& path, | 55 void IsWritable(const mojo::String& path, |
| 56 const IsWritableCallback& callback) override; | 56 const IsWritableCallback& callback) override; |
| 57 void Flush(const FlushCallback& callback) override; | 57 void Flush(const FlushCallback& callback) override; |
| 58 void ReadEntireFile(const mojo::String& path, | |
| 59 const ReadEntireFileCallback& callback) override; | |
| 60 void WriteFile(const mojo::String& path, | |
| 61 mojo::Array<uint8_t> data, | |
| 62 const WriteFileCallback& callback) override; | |
| 63 | 58 |
| 64 private: | 59 private: |
| 65 mojo::StrongBinding<Directory> binding_; | 60 mojo::StrongBinding<Directory> binding_; |
| 66 base::FilePath directory_path_; | 61 base::FilePath directory_path_; |
| 67 scoped_ptr<base::ScopedTempDir> temp_dir_; | 62 scoped_ptr<base::ScopedTempDir> temp_dir_; |
| 68 | 63 |
| 69 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); | 64 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); |
| 70 }; | 65 }; |
| 71 | 66 |
| 72 } // namespace filesystem | 67 } // namespace filesystem |
| 73 | 68 |
| 74 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ | 69 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ |
| OLD | NEW |