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

Unified Diff: chrome/common/extensions/removable_storage_writer.mojom

Issue 2663603002: Convert utility process ImageWriter IPC to mojo (Closed)
Patch Set: Use https: in bug references, minor comment fixes. Created 3 years, 10 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 | « chrome/common/extensions/chrome_utility_extensions_messages.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/removable_storage_writer.mojom
diff --git a/chrome/common/extensions/removable_storage_writer.mojom b/chrome/common/extensions/removable_storage_writer.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..f50ff43fa555e74ace58add552288b1f35cbce09
--- /dev/null
+++ b/chrome/common/extensions/removable_storage_writer.mojom
@@ -0,0 +1,34 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Removable storage writer interface provided by the utility process
+// and exposed by mojo policy to the chrome browser process.
+
+module extensions.mojom;
+
+import "mojo/common/file_path.mojom";
+
+interface RemovableStorageWriter {
+ const string kTestDevice = "chrome://test-removable-storage-writer";
+
+ // Writes the content of the source file to the target. The target
+ // file is restricted to removable drives by the utility process.
+ Write(mojo.common.mojom.FilePath source,
+ mojo.common.mojom.FilePath target,
+ RemovableStorageWriterClient client);
+
+ // Verifies that the contents of the source file was written to the
+ // target file. Again, the target is restricted to removable drives
+ // by the utility process.
+ Verify(mojo.common.mojom.FilePath source,
+ mojo.common.mojom.FilePath target,
+ RemovableStorageWriterClient client);
+};
+
+interface RemovableStorageWriterClient {
+ // Interface to the client used to report write or verify operation
+ // progress and completion status.
+ Progress(int64 progress);
+ Complete(string? error);
+};
« no previous file with comments | « chrome/common/extensions/chrome_utility_extensions_messages.h ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698