OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_APP_MODE_KIOSK_EXTERNAL_UPDATER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_EXTERNAL_UPDATER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_EXTERNAL_UPDATER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_EXTERNAL_UPDATER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 ~KioskExternalUpdater() override; | 38 ~KioskExternalUpdater() override; |
39 | 39 |
40 private: | 40 private: |
41 enum ExternalUpdateStatus { | 41 enum ExternalUpdateStatus { |
42 PENDING, | 42 PENDING, |
43 SUCCESS, | 43 SUCCESS, |
44 FAILED, | 44 FAILED, |
45 }; | 45 }; |
46 struct ExternalUpdate { | 46 struct ExternalUpdate { |
47 ExternalUpdate(); | 47 ExternalUpdate(); |
| 48 ~ExternalUpdate(); |
48 | 49 |
49 std::string app_name; | 50 std::string app_name; |
50 base::FilePath external_crx; | 51 extensions::CRXFileInfo external_crx; |
51 ExternalUpdateStatus update_status; | 52 ExternalUpdateStatus update_status; |
52 base::string16 error; | 53 base::string16 error; |
53 }; | 54 }; |
54 | 55 |
55 // disks::DiskMountManager::Observer overrides. | 56 // disks::DiskMountManager::Observer overrides. |
56 void OnDiskEvent(disks::DiskMountManager::DiskEvent event, | 57 void OnDiskEvent(disks::DiskMountManager::DiskEvent event, |
57 const disks::DiskMountManager::Disk* disk) override; | 58 const disks::DiskMountManager::Disk* disk) override; |
58 void OnDeviceEvent(disks::DiskMountManager::DeviceEvent event, | 59 void OnDeviceEvent(disks::DiskMountManager::DeviceEvent event, |
59 const std::string& device_path) override; | 60 const std::string& device_path) override; |
60 void OnMountEvent( | 61 void OnMountEvent( |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 scoped_ptr<KioskExternalUpdateNotification> notification_; | 144 scoped_ptr<KioskExternalUpdateNotification> notification_; |
144 | 145 |
145 base::WeakPtrFactory<KioskExternalUpdater> weak_factory_; | 146 base::WeakPtrFactory<KioskExternalUpdater> weak_factory_; |
146 | 147 |
147 DISALLOW_COPY_AND_ASSIGN(KioskExternalUpdater); | 148 DISALLOW_COPY_AND_ASSIGN(KioskExternalUpdater); |
148 }; | 149 }; |
149 | 150 |
150 } // namespace chromeos | 151 } // namespace chromeos |
151 | 152 |
152 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_EXTERNAL_UPDATER_H_ | 153 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_EXTERNAL_UPDATER_H_ |
OLD | NEW |