| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_ | 6 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_ |
| 7 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_ | 7 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_ |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 public chromeos::disks::DiskMountManager::Observer, | 73 public chromeos::disks::DiskMountManager::Observer, |
| 74 public chromeos::BurnLibrary::Observer, | 74 public chromeos::BurnLibrary::Observer, |
| 75 public chromeos::NetworkLibrary::NetworkManagerObserver, | 75 public chromeos::NetworkLibrary::NetworkManagerObserver, |
| 76 public content::DownloadItem::Observer, | 76 public content::DownloadItem::Observer, |
| 77 public content::DownloadManager::Observer, | 77 public content::DownloadManager::Observer, |
| 78 public Downloader::Listener, | 78 public Downloader::Listener, |
| 79 public StateMachine::Observer, | 79 public StateMachine::Observer, |
| 80 public WebUIHandlerTaskProxy::Delegate, | 80 public WebUIHandlerTaskProxy::Delegate, |
| 81 public BurnManager::Delegate { | 81 public BurnManager::Delegate { |
| 82 public: | 82 public: |
| 83 explicit WebUIHandler(TabContents* contents); | 83 explicit WebUIHandler(content::WebContents* contents); |
| 84 virtual ~WebUIHandler(); | 84 virtual ~WebUIHandler(); |
| 85 | 85 |
| 86 // WebUIMessageHandler implementation. | 86 // WebUIMessageHandler implementation. |
| 87 virtual void RegisterMessages() OVERRIDE; | 87 virtual void RegisterMessages() OVERRIDE; |
| 88 | 88 |
| 89 // chromeos::disks::DiskMountManager::Observer interface. | 89 // chromeos::disks::DiskMountManager::Observer interface. |
| 90 virtual void DiskChanged(chromeos::disks::DiskMountManagerEventType event, | 90 virtual void DiskChanged(chromeos::disks::DiskMountManagerEventType event, |
| 91 const chromeos::disks::DiskMountManager::Disk* disk) | 91 const chromeos::disks::DiskMountManager::Disk* disk) |
| 92 OVERRIDE; | 92 OVERRIDE; |
| 93 virtual void DeviceChanged(chromeos::disks::DiskMountManagerEventType event, | 93 virtual void DeviceChanged(chromeos::disks::DiskMountManagerEventType event, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 189 |
| 190 int64 GetDeviceSize(const std::string& device_path); | 190 int64 GetDeviceSize(const std::string& device_path); |
| 191 | 191 |
| 192 bool CheckNetwork(); | 192 bool CheckNetwork(); |
| 193 | 193 |
| 194 | 194 |
| 195 private: | 195 private: |
| 196 FilePath zip_image_file_path_; | 196 FilePath zip_image_file_path_; |
| 197 GURL image_download_url_; | 197 GURL image_download_url_; |
| 198 std::string image_file_name_; | 198 std::string image_file_name_; |
| 199 TabContents* tab_contents_; | 199 content::WebContents* web_contents_; |
| 200 content::DownloadManager* download_manager_; | 200 content::DownloadManager* download_manager_; |
| 201 content::DownloadItem* active_download_item_; | 201 content::DownloadItem* active_download_item_; |
| 202 BurnManager* burn_manager_; | 202 BurnManager* burn_manager_; |
| 203 StateMachine* state_machine_; | 203 StateMachine* state_machine_; |
| 204 bool observing_burn_lib_; | 204 bool observing_burn_lib_; |
| 205 bool working_; | 205 bool working_; |
| 206 | 206 |
| 207 DISALLOW_COPY_AND_ASSIGN(WebUIHandler); | 207 DISALLOW_COPY_AND_ASSIGN(WebUIHandler); |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 } // namespace imageburner. | 210 } // namespace imageburner. |
| 211 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_ | 211 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_ |
| OLD | NEW |