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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Removable storage writer interface provided by the utility process
6 // and exposed by mojo policy to the chrome browser process.
7
8 module extensions.mojom;
9
10 import "mojo/common/file_path.mojom";
11
12 interface RemovableStorageWriter {
13 const string kTestDevice = "chrome://test-removable-storage-writer";
14
15 // Writes the content of the source file to the target. The target
16 // file is restricted to removable drives by the utility process.
17 Write(mojo.common.mojom.FilePath source,
18 mojo.common.mojom.FilePath target,
19 RemovableStorageWriterClient client);
20
21 // Verifies that the contents of the source file was written to the
22 // target file. Again, the target is restricted to removable drives
23 // by the utility process.
24 Verify(mojo.common.mojom.FilePath source,
25 mojo.common.mojom.FilePath target,
26 RemovableStorageWriterClient client);
27 };
28
29 interface RemovableStorageWriterClient {
30 // Interface to the client used to report write or verify operation
31 // progress and completion status.
32 Progress(int64 progress);
33 Complete(string? error);
34 };
OLDNEW
« 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