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

Unified Diff: components/filesystem/public/interfaces/file.mojom

Issue 1624683002: mash: Add a simple, temporary preferences store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/filesystem/public/cpp/prefs/pref_service_factory.cc ('k') | mash/wallpaper/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/filesystem/public/interfaces/file.mojom
diff --git a/components/filesystem/public/interfaces/file.mojom b/components/filesystem/public/interfaces/file.mojom
index d64c0f12339d2b94a34060fc73c0552f1640c24a..ec0c6fa5ead085489c1d6de30fefe448643131c2 100644
--- a/components/filesystem/public/interfaces/file.mojom
+++ b/components/filesystem/public/interfaces/file.mojom
@@ -27,6 +27,10 @@ interface File {
Read(uint32 num_bytes_to_read, int64 offset, Whence whence)
=> (FileError error, array<uint8>? bytes_read);
+ // Returns the entire contents of the file as an array of bytes. The mojo
+ // equivalent of base::ReadFileToString().
+ ReadEntireFile() => (FileError error, array<uint8>? bytes_read);
+
// Writes |bytes_to_write| to the location specified by |offset|/|whence|.
// TODO(vtl): Clarify behavior when |num_bytes_written| is less than the size
// of |bytes_to_write|.
« no previous file with comments | « components/filesystem/public/cpp/prefs/pref_service_factory.cc ('k') | mash/wallpaper/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698