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

Side by Side Diff: chrome/common/extensions/api/image_writer_private.idl

Issue 109793006: Adds ImageWriterPrivate.destroyPartitions operation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes up DBusThreadManager initialization. Created 7 years 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/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Use the <code>chrome.image_writer</code> API to write images to 5 // Use the <code>chrome.image_writer</code> API to write images to
6 // removable media. 6 // removable media.
7 [nodoc] namespace imageWriterPrivate { 7 [nodoc] namespace imageWriterPrivate {
8 // The different stages of a write call. 8 // The different stages of a write call.
9 // 9 //
10 // <dl> 10 // <dl>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 // Cancel a current write operation. 95 // Cancel a current write operation.
96 // 96 //
97 // |callback|: The callback which is triggered with the write is 97 // |callback|: The callback which is triggered with the write is
98 // successfully cancelled, passing the $ref:ProgressInfo of the operation at 98 // successfully cancelled, passing the $ref:ProgressInfo of the operation at
99 // the time it was cancelled. 99 // the time it was cancelled.
100 static boolean cancelWrite(WriteCancelCallback callback); 100 static boolean cancelWrite(WriteCancelCallback callback);
101 101
102 // Destroys the partition table of a disk, effectively erasing it. This is 102 // Destroys the partition table of a disk, effectively erasing it. This is
103 // a fairly quick operation and so it does not have complex stages or 103 // a fairly quick operation and so it does not have complex stages or
104 // progress information. However, it can fail and call the callback with 104 // progress information, just a write phase.
105 // an error.
106 // 105 //
107 // |storageUnitId|: The identifier of the storage unit to wipe 106 // |storageUnitId|: The identifier of the storage unit to wipe
108 // |callback|: A callback which is called when the operation is complete. 107 // |callback|: A callback that triggers when the operation has been
108 // successfully started.
109 static void destroyPartitions(DOMString storageUnitId, 109 static void destroyPartitions(DOMString storageUnitId,
110 DestroyPartitionsCallback callback); 110 DestroyPartitionsCallback callback);
111 111
112 // List all the removable block devices currently attached to the system. 112 // List all the removable block devices currently attached to the system.
113 // |callback|: A callback called with a list of removable storage devices 113 // |callback|: A callback called with a list of removable storage devices
114 static void listRemovableStorageDevices( 114 static void listRemovableStorageDevices(
115 ListRemovableStorageDevicesCallback callback); 115 ListRemovableStorageDevicesCallback callback);
116 }; 116 };
117 117
118 interface Events { 118 interface Events {
(...skipping 11 matching lines...) Expand all
130 130
131 // Fires when a removable storage device is inserted. 131 // Fires when a removable storage device is inserted.
132 static void onDeviceInserted(RemovableStorageDevice device); 132 static void onDeviceInserted(RemovableStorageDevice device);
133 133
134 // Fires when a removable storage device is removed. 134 // Fires when a removable storage device is removed.
135 static void onDeviceRemoved(RemovableStorageDevice device); 135 static void onDeviceRemoved(RemovableStorageDevice device);
136 }; 136 };
137 137
138 }; 138 };
139 139
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698