| OLD | NEW |
| (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 }; |
| OLD | NEW |