| 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 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_FILE_OPERA
TION_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_FILE_OPERA
TION_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_FILE_OPERA
TION_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_FILE_OPERA
TION_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/extensions/api/image_writer_private/operation.h" | 8 #include "chrome/browser/extensions/api/image_writer_private/operation.h" |
| 9 | 9 |
| 10 namespace extensions { | 10 namespace extensions { |
| 11 namespace image_writer { | 11 namespace image_writer { |
| 12 | 12 |
| 13 // Encapsulates a write of an image from a local file. | 13 // Encapsulates a write of an image from a local file. |
| 14 class WriteFromFileOperation : public Operation { | 14 class WriteFromFileOperation : public Operation { |
| 15 public: | 15 public: |
| 16 WriteFromFileOperation(base::WeakPtr<OperationManager> manager, | 16 WriteFromFileOperation(base::WeakPtr<OperationManager> manager, |
| 17 const ExtensionId& extension_id, | 17 const ExtensionId& extension_id, |
| 18 const base::FilePath& user_file_path, | 18 const base::FilePath& path, |
| 19 const std::string& storage_unit_id); | 19 const std::string& storage_unit_id); |
| 20 virtual void StartImpl() OVERRIDE; | 20 virtual void Start() OVERRIDE; |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 virtual ~WriteFromFileOperation(); | 23 virtual ~WriteFromFileOperation(); |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 } // namespace image_writer | 26 } // namespace image_writer |
| 27 } // namespace extensions | 27 } // namespace extensions |
| 28 | 28 |
| 29 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_FILE_OP
ERATION_H_ | 29 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_FILE_OP
ERATION_H_ |
| OLD | NEW |