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; |
58 | 63 |
59 private: | 64 private: |
60 mojo::StrongBinding<Directory> binding_; | 65 mojo::StrongBinding<Directory> binding_; |
61 base::FilePath directory_path_; | 66 base::FilePath directory_path_; |
62 scoped_ptr<base::ScopedTempDir> temp_dir_; | 67 scoped_ptr<base::ScopedTempDir> temp_dir_; |
63 | 68 |
64 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); | 69 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); |
65 }; | 70 }; |
66 | 71 |
67 } // namespace filesystem | 72 } // namespace filesystem |
68 | 73 |
69 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ | 74 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ |
OLD | NEW |