OLD | NEW |
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 #ifndef CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_IMAGE_WRITER_PRIVATE_
API_H_ | 4 #ifndef CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_IMAGE_WRITER_PRIVATE_
API_H_ |
5 #define CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_IMAGE_WRITER_PRIVATE_
API_H_ | 5 #define CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_IMAGE_WRITER_PRIVATE_
API_H_ |
6 | 6 |
7 #include "chrome/browser/extensions/api/image_writer_private/removable_storage_p
rovider.h" | 7 #include "chrome/browser/extensions/api/image_writer_private/removable_storage_p
rovider.h" |
8 #include "chrome/browser/extensions/chrome_extension_function.h" | 8 #include "chrome/browser/extensions/chrome_extension_function.h" |
9 #include "chrome/common/extensions/api/image_writer_private.h" | 9 #include "chrome/common/extensions/api/image_writer_private.h" |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 class ImageWriterPrivateDestroyPartitionsFunction | 52 class ImageWriterPrivateDestroyPartitionsFunction |
53 : public ChromeAsyncExtensionFunction { | 53 : public ChromeAsyncExtensionFunction { |
54 public: | 54 public: |
55 DECLARE_EXTENSION_FUNCTION("imageWriterPrivate.destroyPartitions", | 55 DECLARE_EXTENSION_FUNCTION("imageWriterPrivate.destroyPartitions", |
56 IMAGEWRITER_DESTROYPARTITIONS) | 56 IMAGEWRITER_DESTROYPARTITIONS) |
57 ImageWriterPrivateDestroyPartitionsFunction(); | 57 ImageWriterPrivateDestroyPartitionsFunction(); |
58 | 58 |
59 private: | 59 private: |
60 virtual ~ImageWriterPrivateDestroyPartitionsFunction(); | 60 virtual ~ImageWriterPrivateDestroyPartitionsFunction(); |
61 virtual bool RunImpl() OVERRIDE; | 61 virtual bool RunImpl() OVERRIDE; |
| 62 void OnDestroyComplete(bool success, const std::string& error); |
62 }; | 63 }; |
63 | 64 |
64 class ImageWriterPrivateListRemovableStorageDevicesFunction | 65 class ImageWriterPrivateListRemovableStorageDevicesFunction |
65 : public ChromeAsyncExtensionFunction { | 66 : public ChromeAsyncExtensionFunction { |
66 public: | 67 public: |
67 DECLARE_EXTENSION_FUNCTION("imageWriterPrivate.listRemovableStorageDevices", | 68 DECLARE_EXTENSION_FUNCTION("imageWriterPrivate.listRemovableStorageDevices", |
68 IMAGEWRITER_LISTREMOVABLESTORAGEDEVICES); | 69 IMAGEWRITER_LISTREMOVABLESTORAGEDEVICES); |
69 ImageWriterPrivateListRemovableStorageDevicesFunction(); | 70 ImageWriterPrivateListRemovableStorageDevicesFunction(); |
70 | 71 |
71 private: | 72 private: |
72 virtual ~ImageWriterPrivateListRemovableStorageDevicesFunction(); | 73 virtual ~ImageWriterPrivateListRemovableStorageDevicesFunction(); |
73 virtual bool RunImpl() OVERRIDE; | 74 virtual bool RunImpl() OVERRIDE; |
74 void OnDeviceListReady(scoped_refptr<StorageDeviceList> device_list, | 75 void OnDeviceListReady(scoped_refptr<StorageDeviceList> device_list, |
75 bool success); | 76 bool success); |
76 }; | 77 }; |
77 | 78 |
78 } // namespace extensions | 79 } // namespace extensions |
79 | 80 |
80 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_IMAGE_WRITER_PRIVA
TE_API_H_ | 81 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_IMAGE_WRITER_PRIVA
TE_API_H_ |
OLD | NEW |