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); | |
63 }; | 62 }; |
64 | 63 |
65 class ImageWriterPrivateListRemovableStorageDevicesFunction | 64 class ImageWriterPrivateListRemovableStorageDevicesFunction |
66 : public ChromeAsyncExtensionFunction { | 65 : public ChromeAsyncExtensionFunction { |
67 public: | 66 public: |
68 DECLARE_EXTENSION_FUNCTION("imageWriterPrivate.listRemovableStorageDevices", | 67 DECLARE_EXTENSION_FUNCTION("imageWriterPrivate.listRemovableStorageDevices", |
69 IMAGEWRITER_LISTREMOVABLESTORAGEDEVICES); | 68 IMAGEWRITER_LISTREMOVABLESTORAGEDEVICES); |
70 ImageWriterPrivateListRemovableStorageDevicesFunction(); | 69 ImageWriterPrivateListRemovableStorageDevicesFunction(); |
71 | 70 |
72 private: | 71 private: |
73 virtual ~ImageWriterPrivateListRemovableStorageDevicesFunction(); | 72 virtual ~ImageWriterPrivateListRemovableStorageDevicesFunction(); |
74 virtual bool RunImpl() OVERRIDE; | 73 virtual bool RunImpl() OVERRIDE; |
75 void OnDeviceListReady(scoped_refptr<StorageDeviceList> device_list, | 74 void OnDeviceListReady(scoped_refptr<StorageDeviceList> device_list, |
76 bool success); | 75 bool success); |
77 }; | 76 }; |
78 | 77 |
79 } // namespace extensions | 78 } // namespace extensions |
80 | 79 |
81 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_IMAGE_WRITER_PRIVA
TE_API_H_ | 80 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_IMAGE_WRITER_PRIVA
TE_API_H_ |
OLD | NEW |