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