| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/chromeos/imageburner/burn_manager.h" | 5 #include "chrome/browser/chromeos/imageburner/burn_manager.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| 11 #include "base/threading/worker_pool.h" | 11 #include "base/threading/worker_pool.h" |
| 12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
| 13 #include "chrome/browser/chromeos/cros/cros_library.h" | 13 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 14 #include "chrome/browser/chromeos/net/connectivity_state_helper.h" | 14 #include "chrome/browser/chromeos/net/connectivity_state_helper.h" |
| 15 #include "chrome/browser/chromeos/system/statistics_provider.h" | 15 #include "chrome/browser/chromeos/system/statistics_provider.h" |
| 16 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
| 17 #include "chrome/common/zip.h" | |
| 18 #include "chromeos/dbus/dbus_thread_manager.h" | 17 #include "chromeos/dbus/dbus_thread_manager.h" |
| 19 #include "chromeos/dbus/image_burner_client.h" | 18 #include "chromeos/dbus/image_burner_client.h" |
| 19 #include "components/zip/zip.h" |
| 20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
| 21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
| 22 #include "net/url_request/url_fetcher.h" | 22 #include "net/url_request/url_fetcher.h" |
| 23 #include "net/url_request/url_request_status.h" | 23 #include "net/url_request/url_request_status.h" |
| 24 | 24 |
| 25 using content::BrowserThread; | 25 using content::BrowserThread; |
| 26 | 26 |
| 27 namespace chromeos { | 27 namespace chromeos { |
| 28 namespace imageburner { | 28 namespace imageburner { |
| 29 | 29 |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 // Note: in theory, this is not a part of notification, but cancelling | 579 // Note: in theory, this is not a part of notification, but cancelling |
| 580 // the running burning task. However, there is no good place to be in the | 580 // the running burning task. However, there is no good place to be in the |
| 581 // current code. | 581 // current code. |
| 582 // TODO(hidehiko): Clean this up after refactoring. | 582 // TODO(hidehiko): Clean this up after refactoring. |
| 583 OnError(IDS_IMAGEBURN_DEVICE_NOT_FOUND_ERROR); | 583 OnError(IDS_IMAGEBURN_DEVICE_NOT_FOUND_ERROR); |
| 584 } | 584 } |
| 585 } | 585 } |
| 586 | 586 |
| 587 } // namespace imageburner | 587 } // namespace imageburner |
| 588 } // namespace chromeos | 588 } // namespace chromeos |
| OLD | NEW |