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_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_CONTROLLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "chromeos/disks/disk_mount_manager.h" | 11 #include "chromeos/disks/disk_mount_manager.h" |
12 | 12 |
| 13 namespace base { |
13 class FilePath; | 14 class FilePath; |
14 | |
15 namespace base { | |
16 class TimeDelta; | 15 class TimeDelta; |
17 } | 16 } |
18 | 17 |
19 namespace content { | 18 namespace content { |
20 class WebContents; | 19 class WebContents; |
21 } | 20 } |
22 | 21 |
23 namespace chromeos { | 22 namespace chromeos { |
24 namespace imageburner { | 23 namespace imageburner { |
25 | 24 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual void OnNoNetwork() = 0; | 61 virtual void OnNoNetwork() = 0; |
63 }; | 62 }; |
64 | 63 |
65 virtual ~BurnController() {} | 64 virtual ~BurnController() {} |
66 | 65 |
67 // Initializes the instance. | 66 // Initializes the instance. |
68 virtual void Init() = 0; | 67 virtual void Init() = 0; |
69 // Returns devices on which we can burn recovery image. | 68 // Returns devices on which we can burn recovery image. |
70 virtual std::vector<disks::DiskMountManager::Disk> GetBurnableDevices() = 0; | 69 virtual std::vector<disks::DiskMountManager::Disk> GetBurnableDevices() = 0; |
71 // Starts burning process. | 70 // Starts burning process. |
72 virtual void StartBurnImage(const FilePath& target_device_path, | 71 virtual void StartBurnImage(const base::FilePath& target_device_path, |
73 const FilePath& target_file_path) = 0; | 72 const base::FilePath& target_file_path) = 0; |
74 // Cancels burning process. | 73 // Cancels burning process. |
75 virtual void CancelBurnImage() = 0; | 74 virtual void CancelBurnImage() = 0; |
76 // Creates a new instance of BurnController. | 75 // Creates a new instance of BurnController. |
77 static BurnController* CreateBurnController( | 76 static BurnController* CreateBurnController( |
78 content::WebContents* web_contents, Delegate* delegate); | 77 content::WebContents* web_contents, Delegate* delegate); |
79 | 78 |
80 protected: | 79 protected: |
81 BurnController() {} | 80 BurnController() {} |
82 | 81 |
83 private: | 82 private: |
84 DISALLOW_COPY_AND_ASSIGN(BurnController); | 83 DISALLOW_COPY_AND_ASSIGN(BurnController); |
85 }; | 84 }; |
86 | 85 |
87 } // namespace imageburner | 86 } // namespace imageburner |
88 } // namespace chromeos | 87 } // namespace chromeos |
89 | 88 |
90 #endif // CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_CONTROLLER_H_ | 89 #endif // CHROME_BROWSER_CHROMEOS_IMAGEBURNER_BURN_CONTROLLER_H_ |
OLD | NEW |