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
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_EXTENSIONS_API_RECOVERY_PRIVATE_WRITE_FROM_FILE_OPERATION_H_
6#define CHROME_BROWSER_EXTENSIONS_API_RECOVERY_PRIVATE_WRITE_FROM_FILE_OPERATION_H_
7
8#include "chrome/browser/extensions/api/recovery_private/recovery_operation.h"
9
10namespace extensions {
11namespace recovery {
12
13// Encapsulates a write of an image from a local file.
14class WriteFromFileOperation : public RecoveryOperation {
15 public:
16  WriteFromFileOperation(RecoveryOperationManager* manager,
17                        const ExtensionId& extension_id,
18                        const std::string& path,
19                        const std::string& storage_unit_id);
20  virtual ~WriteFromFileOperation();
21 private:
22  const std::string path_;
23  const std::string storage_unit_id_;
24};
25
26
27} // namespace recovery
28} // namespace extensions
29
30#endif  // CHROME_BROWSER_EXTENSIONS_API_RECOVERY_PRIVATE_WRITE_FROM_FILE_OPERATION_H_
31