OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/chromeos/cros/burn_library.h" | 5 #include "chrome/browser/chromeos/cros/burn_library.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/memory/ref_counted_memory.h" | 9 #include "base/memory/ref_counted_memory.h" |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
11 #include "base/threading/worker_pool.h" | 11 #include "base/threading/worker_pool.h" |
12 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | |
13 #include "chrome/browser/chromeos/dbus/image_burner_client.h" | |
14 #include "chrome/browser/chromeos/disks/disk_mount_manager.h" | 12 #include "chrome/browser/chromeos/disks/disk_mount_manager.h" |
15 #include "chrome/common/zip.h" | 13 #include "chrome/common/zip.h" |
| 14 #include "chromeos/dbus/dbus_thread_manager.h" |
| 15 #include "chromeos/dbus/image_burner_client.h" |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // Unzips |source_zip_file| and sets the filename of the unzipped image to | 21 // Unzips |source_zip_file| and sets the filename of the unzipped image to |
22 // |source_image_file|. | 22 // |source_image_file|. |
23 void UnzipImage(const FilePath& source_zip_file, | 23 void UnzipImage(const FilePath& source_zip_file, |
24 const std::string& image_name, | 24 const std::string& image_name, |
25 scoped_refptr<base::RefCountedString> source_image_file) { | 25 scoped_refptr<base::RefCountedString> source_image_file) { |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 BurnLibrary* impl; | 247 BurnLibrary* impl; |
248 if (stub) | 248 if (stub) |
249 impl = new BurnLibraryStubImpl(); | 249 impl = new BurnLibraryStubImpl(); |
250 else | 250 else |
251 impl = new BurnLibraryImpl(); | 251 impl = new BurnLibraryImpl(); |
252 impl->Init(); | 252 impl->Init(); |
253 return impl; | 253 return impl; |
254 } | 254 } |
255 | 255 |
256 } // namespace chromeos | 256 } // namespace chromeos |
OLD | NEW |