Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / extensions / api / image_writer_private / destroy_partitions_operation.h
blobb01e5131c445cc77ae77caf098a974da650446bd
1 // Copyright 2014 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.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_DESTROY_PARTITIONS_OPERATION_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_DESTROY_PARTITIONS_OPERATION_H_
8 #include "base/files/scoped_temp_dir.h"
9 #include "chrome/browser/extensions/api/image_writer_private/operation.h"
11 namespace extensions {
12 namespace image_writer {
14 extern const int kPartitionTableSize;
16 // Encapsulates an operation for destroying partitions. This is achieved by
17 // creating a dummy blank image which is then burned to the disk.
18 class DestroyPartitionsOperation : public Operation {
19 public:
20 DestroyPartitionsOperation(base::WeakPtr<OperationManager> manager,
21 const ExtensionId& extension_id,
22 const std::string& storage_unit_id);
23 void StartImpl() override;
25 private:
26 ~DestroyPartitionsOperation() override;
29 } // namespace image_writer
30 } // namespace extensions
32 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_DESTROY_PARTITIONS_OPERATION_H_