Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Side by Side Diff: components/filesystem/directory_impl.h

Issue 1634293002: mojo filesystem: Simplify full file reading/writing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove check Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/filesystem/directory_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/filesystem/directory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698