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" | 16 #include "chrome/browser/chromeos/dbus/cros_disks_client.h" |
17 #include "third_party/cros/chromeos_imageburn.h" | 17 #include "third_party/cros/chromeos_imageburn.h" |
18 | 18 |
19 struct ImageBurnStatus { | 19 struct ImageBurnStatus { |
20 ImageBurnStatus() : target_path(), | 20 ImageBurnStatus() : target_path(), |
21 amount_burnt(0), | 21 amount_burnt(0), |
22 total_size(0), | 22 total_size(0), |
23 error() { | 23 error() { |
24 } | 24 } |
25 | 25 |
26 explicit ImageBurnStatus(const chromeos::BurnStatus& status) | 26 explicit ImageBurnStatus(const chromeos::BurnStatus& status) |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 virtual void CancelBurnImage() = 0; | 80 virtual void CancelBurnImage() = 0; |
81 | 81 |
82 // Factory function, creates a new instance and returns ownership. | 82 // Factory function, creates a new instance and returns ownership. |
83 // For normal usage, access the singleton via CrosLibrary::Get(). | 83 // For normal usage, access the singleton via CrosLibrary::Get(). |
84 static BurnLibrary* GetImpl(bool stub); | 84 static BurnLibrary* GetImpl(bool stub); |
85 }; | 85 }; |
86 | 86 |
87 } // namespace chromeos | 87 } // namespace chromeos |
88 | 88 |
89 #endif // CHROME_BROWSER_CHROMEOS_CROS_BURN_LIBRARY_H_ | 89 #endif // CHROME_BROWSER_CHROMEOS_CROS_BURN_LIBRARY_H_ |
OLD | NEW |