| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "base/weak_ptr.h" | 14 #include "base/weak_ptr.h" |
| 15 | 15 #include "third_party/cros/chromeos_imageburn.h" |
| 16 #include "cros/chromeos_imageburn.h" | |
| 17 | 16 |
| 18 struct ImageBurnStatus { | 17 struct ImageBurnStatus { |
| 19 explicit ImageBurnStatus(const chromeos::BurnStatus& status) | 18 explicit ImageBurnStatus(const chromeos::BurnStatus& status) |
| 20 : amount_burnt(status.amount_burnt), | 19 : amount_burnt(status.amount_burnt), |
| 21 total_size(status.total_size) { | 20 total_size(status.total_size) { |
| 22 if (status.target_path) | 21 if (status.target_path) |
| 23 target_path = status.target_path; | 22 target_path = status.target_path; |
| 24 if (status.error) | 23 if (status.error) |
| 25 error = status.error; | 24 error = status.error; |
| 26 } | 25 } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 base::WeakPtr<BurnLibraryImpl> library_; | 93 base::WeakPtr<BurnLibraryImpl> library_; |
| 95 | 94 |
| 96 friend class base::RefCountedThreadSafe<BurnLibraryTaskProxy>; | 95 friend class base::RefCountedThreadSafe<BurnLibraryTaskProxy>; |
| 97 | 96 |
| 98 DISALLOW_COPY_AND_ASSIGN(BurnLibraryTaskProxy); | 97 DISALLOW_COPY_AND_ASSIGN(BurnLibraryTaskProxy); |
| 99 }; | 98 }; |
| 100 | 99 |
| 101 } // namespace chromeos | 100 } // namespace chromeos |
| 102 | 101 |
| 103 #endif // CHROME_BROWSER_CHROMEOS_CROS_BURN_LIBRARY_H_ | 102 #endif // CHROME_BROWSER_CHROMEOS_CROS_BURN_LIBRARY_H_ |
| OLD | NEW |