| 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/string16.h" | 13 #include "base/string16.h" |
| 14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/chromeos/cros/burn_library.h" | 15 #include "chrome/browser/chromeos/cros/burn_library.h" |
| 16 #include "chrome/browser/chromeos/cros/cros_library.h" | 16 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 17 #include "chrome/browser/chromeos/cros/mount_library.h" | 17 #include "chrome/browser/chromeos/cros/mount_library.h" |
| 18 #include "chrome/browser/chromeos/cros/network_library.h" | 18 #include "chrome/browser/chromeos/cros/network_library.h" |
| 19 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 19 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| 20 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.h" | 20 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.h" |
| 21 #include "content/browser/download/download_item.h" | 21 #include "content/browser/download/download_item.h" |
| 22 #include "content/browser/download/download_manager.h" | 22 #include "content/browser/download/download_manager.h" |
| 23 #include "content/browser/tab_contents/tab_contents.h" | 23 #include "content/browser/tab_contents/tab_contents.h" |
| 24 #include "googleurl/src/gurl.h" | 24 #include "googleurl/src/gurl.h" |
| 25 | 25 |
| 26 using content::BrowserThread; |
| 27 |
| 26 namespace imageburner { | 28 namespace imageburner { |
| 27 | 29 |
| 28 enum ProgressType { | 30 enum ProgressType { |
| 29 DOWNLOAD, | 31 DOWNLOAD, |
| 30 UNZIP, | 32 UNZIP, |
| 31 BURN | 33 BURN |
| 32 }; | 34 }; |
| 33 | 35 |
| 34 class WebUIHandlerTaskProxy | 36 class WebUIHandlerTaskProxy |
| 35 : public base::RefCountedThreadSafe<WebUIHandlerTaskProxy> { | 37 : public base::RefCountedThreadSafe<WebUIHandlerTaskProxy> { |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 StateMachine* state_machine_; | 206 StateMachine* state_machine_; |
| 205 bool observing_burn_lib_; | 207 bool observing_burn_lib_; |
| 206 bool working_; | 208 bool working_; |
| 207 | 209 |
| 208 DISALLOW_COPY_AND_ASSIGN(WebUIHandler); | 210 DISALLOW_COPY_AND_ASSIGN(WebUIHandler); |
| 209 }; | 211 }; |
| 210 | 212 |
| 211 } // namespace imageburner. | 213 } // namespace imageburner. |
| 212 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_ | 214 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_ |
| 213 | 215 |
| OLD | NEW |