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_CHROMEOS_DOM_UI_IMAGEBURNER_UI_H_ | 6 #ifndef CHROME_BROWSER_CHROMEOS_DOM_UI_IMAGEBURNER_UI_H_ |
7 #define CHROME_BROWSER_CHROMEOS_DOM_UI_IMAGEBURNER_UI_H_ | 7 #define CHROME_BROWSER_CHROMEOS_DOM_UI_IMAGEBURNER_UI_H_ |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "app/download_file_interface.h" | |
13 #include "base/file_path.h" | 12 #include "base/file_path.h" |
14 #include "base/file_util.h" | 13 #include "base/file_util.h" |
15 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
16 #include "base/string16.h" | 15 #include "base/string16.h" |
17 #include "base/values.h" | 16 #include "base/values.h" |
18 #include "chrome/browser/chromeos/cros/burn_library.h" | 17 #include "chrome/browser/chromeos/cros/burn_library.h" |
19 #include "chrome/browser/chromeos/cros/cros_library.h" | 18 #include "chrome/browser/chromeos/cros/cros_library.h" |
20 #include "chrome/browser/chromeos/cros/mount_library.h" | 19 #include "chrome/browser/chromeos/cros/mount_library.h" |
21 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 20 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
22 #include "chrome/browser/dom_ui/dom_ui.h" | 21 #include "chrome/browser/dom_ui/dom_ui.h" |
23 #include "chrome/browser/download/download_item.h" | 22 #include "chrome/browser/download/download_item.h" |
24 #include "chrome/browser/download/download_manager.h" | 23 #include "chrome/browser/download/download_manager.h" |
25 #include "chrome/browser/download/download_util.h" | 24 #include "chrome/browser/download/download_util.h" |
26 #include "googleurl/src/gurl.h" | 25 #include "googleurl/src/gurl.h" |
27 #include "net/base/file_stream.h" | 26 #include "net/base/file_stream.h" |
| 27 #include "ui/base/dragdrop/download_file_interface.h" |
28 | 28 |
29 template <typename T> struct DefaultSingletonTraits; | 29 template <typename T> struct DefaultSingletonTraits; |
30 | 30 |
31 static const std::string kPropertyPath = "path"; | 31 static const std::string kPropertyPath = "path"; |
32 static const std::string kPropertyTitle = "title"; | 32 static const std::string kPropertyTitle = "title"; |
33 static const std::string kPropertyDirectory = "isDirectory"; | 33 static const std::string kPropertyDirectory = "isDirectory"; |
34 static const std::string kImageBaseURL = | 34 static const std::string kImageBaseURL = |
35 "http://chrome-master.mtv.corp.google.com/chromeos/dev-channel/"; | 35 "http://chrome-master.mtv.corp.google.com/chromeos/dev-channel/"; |
36 static const std::string kImageFetcherName = "LATEST-x86-generic"; | 36 static const std::string kImageFetcherName = "LATEST-x86-generic"; |
37 static const std::string kImageFileName = "chromeos_image.bin.gz"; | 37 static const std::string kImageFileName = "chromeos_image.bin.gz"; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 }; | 217 }; |
218 | 218 |
219 class ImageBurnUI : public DOMUI { | 219 class ImageBurnUI : public DOMUI { |
220 public: | 220 public: |
221 explicit ImageBurnUI(TabContents* contents); | 221 explicit ImageBurnUI(TabContents* contents); |
222 | 222 |
223 private: | 223 private: |
224 DISALLOW_COPY_AND_ASSIGN(ImageBurnUI); | 224 DISALLOW_COPY_AND_ASSIGN(ImageBurnUI); |
225 }; | 225 }; |
226 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_IMAGEBURNER_UI_H_ | 226 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_IMAGEBURNER_UI_H_ |
OLD | NEW |