OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 5 |
6 #ifndef CHROME_BROWSER_CHROMEOS_CROS_BURN_LIBRARY_H_ | 6 #ifndef CHROME_BROWSER_CHROMEOS_CROS_BURN_LIBRARY_H_ |
7 #define CHROME_BROWSER_CHROMEOS_CROS_BURN_LIBRARY_H_ | 7 #define CHROME_BROWSER_CHROMEOS_CROS_BURN_LIBRARY_H_ |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "chrome/browser/chromeos/cros/mount_library.h" | |
17 #include "third_party/cros/chromeos_imageburn.h" | 16 #include "third_party/cros/chromeos_imageburn.h" |
18 | 17 |
19 struct ImageBurnStatus { | 18 struct ImageBurnStatus { |
20 ImageBurnStatus() : target_path(), | 19 ImageBurnStatus() : target_path(), |
21 amount_burnt(0), | 20 amount_burnt(0), |
22 total_size(0), | 21 total_size(0), |
23 error() { | 22 error() { |
24 } | 23 } |
25 | 24 |
26 explicit ImageBurnStatus(const chromeos::BurnStatus& status) | 25 explicit ImageBurnStatus(const chromeos::BurnStatus& status) |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 virtual void CancelBurnImage() = 0; | 79 virtual void CancelBurnImage() = 0; |
81 | 80 |
82 // Factory function, creates a new instance and returns ownership. | 81 // Factory function, creates a new instance and returns ownership. |
83 // For normal usage, access the singleton via CrosLibrary::Get(). | 82 // For normal usage, access the singleton via CrosLibrary::Get(). |
84 static BurnLibrary* GetImpl(bool stub); | 83 static BurnLibrary* GetImpl(bool stub); |
85 }; | 84 }; |
86 | 85 |
87 } // namespace chromeos | 86 } // namespace chromeos |
88 | 87 |
89 #endif // CHROME_BROWSER_CHROMEOS_CROS_BURN_LIBRARY_H_ | 88 #endif // CHROME_BROWSER_CHROMEOS_CROS_BURN_LIBRARY_H_ |
OLD | NEW |