| 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 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.h" | 5 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/common/chrome_paths.h" | 12 #include "chrome/common/chrome_paths.h" |
| 13 #include "content/browser/download/download_types.h" | 13 #include "content/browser/download/download_types.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 | 15 |
| 16 using content::BrowserThread; | 16 using content::BrowserThread; |
| 17 | 17 |
| 18 namespace imageburner { | 18 namespace imageburner { |
| 19 | 19 |
| 20 static const char kConfigFileUrl[] = | 20 const char kName[] = "name"; |
| 21 const char kHwid[] = "hwid"; |
| 22 const char kFileName[] = "file"; |
| 23 const char kUrl[] = "url"; |
| 24 |
| 25 const char kConfigFileUrl[] = |
| 21 "https://dl.google.com/dl/edgedl/chromeos/recovery/recovery.conf"; | 26 "https://dl.google.com/dl/edgedl/chromeos/recovery/recovery.conf"; |
| 22 static const char kTempImageFolderName[] = "chromeos_image"; | 27 const char kTempImageFolderName[] = "chromeos_image"; |
| 23 static const char kConfigFileName[] = "recovery.conf"; | 28 const char kConfigFileName[] = "recovery.conf"; |
| 24 | 29 |
| 25 //////////////////////////////////////////////////////////////////////////////// | 30 //////////////////////////////////////////////////////////////////////////////// |
| 26 // | 31 // |
| 27 // ConfigFile | 32 // ConfigFile |
| 28 // | 33 // |
| 29 //////////////////////////////////////////////////////////////////////////////// | 34 //////////////////////////////////////////////////////////////////////////////// |
| 30 ConfigFile::ConfigFile() { | 35 ConfigFile::ConfigFile() { |
| 31 } | 36 } |
| 32 | 37 |
| 33 ConfigFile::ConfigFile(const std::string& file_content) { | 38 ConfigFile::ConfigFile(const std::string& file_content) { |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 current_listener != listener_range.second; | 462 current_listener != listener_range.second; |
| 458 ++current_listener) { | 463 ++current_listener) { |
| 459 if (current_listener->second) | 464 if (current_listener->second) |
| 460 current_listener->second->OnBurnDownloadStarted(success); | 465 current_listener->second->OnBurnDownloadStarted(success); |
| 461 } | 466 } |
| 462 listeners_.erase(listener_range.first, listener_range.second); | 467 listeners_.erase(listener_range.first, listener_range.second); |
| 463 } | 468 } |
| 464 | 469 |
| 465 } // namespace imageburner. | 470 } // namespace imageburner. |
| 466 | 471 |
| OLD | NEW |