| 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 <memory> | 10 #include <memory> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 void StatFile(const std::string& path, | 57 void StatFile(const std::string& path, |
| 58 const StatFileCallback& callback) override; | 58 const StatFileCallback& callback) override; |
| 59 void Clone(mojom::DirectoryRequest directory) override; | 59 void Clone(mojom::DirectoryRequest directory) override; |
| 60 void ReadEntireFile(const std::string& path, | 60 void ReadEntireFile(const std::string& path, |
| 61 const ReadEntireFileCallback& callback) override; | 61 const ReadEntireFileCallback& callback) override; |
| 62 void WriteFile(const std::string& path, | 62 void WriteFile(const std::string& path, |
| 63 const std::vector<uint8_t>& data, | 63 const std::vector<uint8_t>& data, |
| 64 const WriteFileCallback& callback) override; | 64 const WriteFileCallback& callback) override; |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 mojo::ScopedHandle OpenFileHandleImpl(const std::string& raw_path, | 67 base::File OpenFileHandleImpl(const std::string& raw_path, |
| 68 uint32_t open_flags, | 68 uint32_t open_flags); |
| 69 mojom::FileError* error); | |
| 70 | 69 |
| 71 base::FilePath directory_path_; | 70 base::FilePath directory_path_; |
| 72 scoped_refptr<SharedTempDir> temp_dir_; | 71 scoped_refptr<SharedTempDir> temp_dir_; |
| 73 scoped_refptr<LockTable> lock_table_; | 72 scoped_refptr<LockTable> lock_table_; |
| 74 | 73 |
| 75 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); | 74 DISALLOW_COPY_AND_ASSIGN(DirectoryImpl); |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace filesystem | 77 } // namespace filesystem |
| 79 | 78 |
| 80 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ | 79 #endif // COMPONENTS_FILESYSTEM_DIRECTORY_IMPL_H_ |
| OLD | NEW |