| 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 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
| 13 #include "base/memory/weak_ptr.h" |
| 13 #include "base/string16.h" | 14 #include "base/string16.h" |
| 14 #include "base/values.h" | 15 #include "base/values.h" |
| 15 #include "chrome/browser/chromeos/cros/burn_library.h" | 16 #include "chrome/browser/chromeos/cros/burn_library.h" |
| 16 #include "chrome/browser/chromeos/cros/cros_library.h" | 17 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 17 #include "chrome/browser/chromeos/cros/network_library.h" | 18 #include "chrome/browser/chromeos/cros/network_library.h" |
| 18 #include "chrome/browser/chromeos/disks/disk_mount_manager.h" | 19 #include "chrome/browser/chromeos/disks/disk_mount_manager.h" |
| 19 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 20 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| 20 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.h" | 21 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.h" |
| 21 #include "content/browser/download/download_item.h" | 22 #include "content/browser/download/download_item.h" |
| 22 #include "content/browser/download/download_manager.h" | 23 #include "content/browser/download/download_manager.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 class WebUIHandler | 77 class WebUIHandler |
| 77 : public WebUIMessageHandler, | 78 : public WebUIMessageHandler, |
| 78 public chromeos::disks::DiskMountManager::Observer, | 79 public chromeos::disks::DiskMountManager::Observer, |
| 79 public chromeos::BurnLibrary::Observer, | 80 public chromeos::BurnLibrary::Observer, |
| 80 public chromeos::NetworkLibrary::NetworkManagerObserver, | 81 public chromeos::NetworkLibrary::NetworkManagerObserver, |
| 81 public DownloadItem::Observer, | 82 public DownloadItem::Observer, |
| 82 public DownloadManager::Observer, | 83 public DownloadManager::Observer, |
| 83 public Downloader::Listener, | 84 public Downloader::Listener, |
| 84 public StateMachine::Observer, | 85 public StateMachine::Observer, |
| 85 public WebUIHandlerTaskProxy::Delegate, | 86 public WebUIHandlerTaskProxy::Delegate, |
| 86 public BurnManager::Delegate { | 87 public BurnManager::Delegate, |
| 88 public base::SupportsWeakPtr<WebUIHandler> { |
| 87 public: | 89 public: |
| 88 explicit WebUIHandler(TabContents* contents); | 90 explicit WebUIHandler(TabContents* contents); |
| 89 virtual ~WebUIHandler(); | 91 virtual ~WebUIHandler(); |
| 90 | 92 |
| 91 // WebUIMessageHandler implementation. | 93 // WebUIMessageHandler implementation. |
| 92 virtual WebUIMessageHandler* Attach(WebUI* web_ui) OVERRIDE; | 94 virtual WebUIMessageHandler* Attach(WebUI* web_ui) OVERRIDE; |
| 93 virtual void RegisterMessages() OVERRIDE; | 95 virtual void RegisterMessages() OVERRIDE; |
| 94 | 96 |
| 95 // chromeos::disks::DiskMountManager::Observer interface. | 97 // chromeos::disks::DiskMountManager::Observer interface. |
| 96 virtual void DiskChanged(chromeos::disks::DiskMountManagerEventType event, | 98 virtual void DiskChanged(chromeos::disks::DiskMountManagerEventType event, |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 BurnManager* burn_manager_; | 210 BurnManager* burn_manager_; |
| 209 StateMachine* state_machine_; | 211 StateMachine* state_machine_; |
| 210 bool observing_burn_lib_; | 212 bool observing_burn_lib_; |
| 211 bool working_; | 213 bool working_; |
| 212 | 214 |
| 213 DISALLOW_COPY_AND_ASSIGN(WebUIHandler); | 215 DISALLOW_COPY_AND_ASSIGN(WebUIHandler); |
| 214 }; | 216 }; |
| 215 | 217 |
| 216 } // namespace imageburner. | 218 } // namespace imageburner. |
| 217 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_ | 219 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_ |
| OLD | NEW |