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 #ifndef CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
316 int64 current, | 316 int64 current, |
317 int64 total) OVERRIDE; | 317 int64 total) OVERRIDE; |
318 | 318 |
319 // NetworkStateHandlerObserver override. | 319 // NetworkStateHandlerObserver override. |
320 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE; | 320 virtual void DefaultNetworkChanged(const NetworkState* network) OVERRIDE; |
321 | 321 |
322 // Creates directory image will be downloaded to. | 322 // Creates directory image will be downloaded to. |
323 // Must be called from FILE thread. | 323 // Must be called from FILE thread. |
324 void CreateImageDir(); | 324 void CreateImageDir(); |
325 | 325 |
326 // Returns directory image should be dopwnloaded to. | 326 // Returns directory image should be dopwnloaded to. |
achuithb
2013/05/09 21:52:51
nit: can we fix the spelling of dopwnloaded
tbarzic
2013/05/09 22:11:38
Done.
| |
327 // The directory has to be previously created. | 327 // The directory has to be previously created. |
achuithb
2013/05/09 21:52:51
Maybe this comment should be changed to say that e
tbarzic
2013/05/09 22:11:38
Done.
| |
328 const base::FilePath& GetImageDir(); | 328 const base::FilePath GetImageDir(); |
achuithb
2013/05/09 21:52:51
Don't see the point of const since this will be co
tbarzic
2013/05/09 22:11:38
Done.
| |
329 | 329 |
330 const base::FilePath& target_device_path() { return target_device_path_; } | 330 const base::FilePath& target_device_path() { return target_device_path_; } |
331 void set_target_device_path(const base::FilePath& path) { | 331 void set_target_device_path(const base::FilePath& path) { |
332 target_device_path_ = path; | 332 target_device_path_ = path; |
333 } | 333 } |
334 | 334 |
335 const base::FilePath& target_file_path() { return target_file_path_; } | 335 const base::FilePath& target_file_path() { return target_file_path_; } |
336 void set_target_file_path(const base::FilePath& path) { | 336 void set_target_file_path(const base::FilePath& path) { |
337 target_file_path_ = path; | 337 target_file_path_ = path; |
338 } | 338 } |
(...skipping 23 matching lines...) Expand all Loading... | |
362 const std::string& error); | 362 const std::string& error); |
363 void OnBurnProgressUpdate(const std::string& target_path, | 363 void OnBurnProgressUpdate(const std::string& target_path, |
364 int64 num_bytes_burnt, | 364 int64 num_bytes_burnt, |
365 int64 total_size); | 365 int64 total_size); |
366 | 366 |
367 void NotifyDeviceAdded(const disks::DiskMountManager::Disk& disk); | 367 void NotifyDeviceAdded(const disks::DiskMountManager::Disk& disk); |
368 void NotifyDeviceRemoved(const disks::DiskMountManager::Disk& disk); | 368 void NotifyDeviceRemoved(const disks::DiskMountManager::Disk& disk); |
369 | 369 |
370 BurnDeviceHandler device_handler_; | 370 BurnDeviceHandler device_handler_; |
371 | 371 |
372 bool image_dir_created_; | |
372 bool unzipping_; | 373 bool unzipping_; |
373 bool cancelled_; | 374 bool cancelled_; |
374 bool burning_; | 375 bool burning_; |
375 bool block_burn_signals_; | 376 bool block_burn_signals_; |
376 | 377 |
377 base::FilePath image_dir_; | 378 base::FilePath image_dir_; |
378 base::FilePath zip_image_file_path_; | 379 base::FilePath zip_image_file_path_; |
379 base::FilePath source_image_path_; | 380 base::FilePath source_image_path_; |
380 base::FilePath target_device_path_; | 381 base::FilePath target_device_path_; |
381 base::FilePath target_file_path_; | 382 base::FilePath target_file_path_; |
(...skipping 20 matching lines...) Expand all Loading... | |
402 base::WeakPtrFactory<BurnManager> weak_ptr_factory_; | 403 base::WeakPtrFactory<BurnManager> weak_ptr_factory_; |
403 | 404 |
404 DISALLOW_COPY_AND_ASSIGN(BurnManager); | 405 DISALLOW_COPY_AND_ASSIGN(BurnManager); |
405 }; | 406 }; |
406 | 407 |
407 } // namespace imageburner | 408 } // namespace imageburner |
408 | 409 |
409 } // namespace chromeos | 410 } // namespace chromeos |
410 | 411 |
411 #endif // CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_MANAGER_H_ | 412 #endif // CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_MANAGER_H_ |
OLD | NEW |