| 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/extensions/updater/extension_downloader.h" | 5 #include "chrome/browser/extensions/updater/extension_downloader.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/memory/scoped_handle.h" | 15 #include "base/memory/scoped_handle.h" |
| 16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
| 17 #include "base/platform_file.h" | 17 #include "base/platform_file.h" |
| 18 #include "base/stl_util.h" | 18 #include "base/stl_util.h" |
| 19 #include "base/string_util.h" | 19 #include "base/strings/string_util.h" |
| 20 #include "base/time.h" | 20 #include "base/time.h" |
| 21 #include "base/version.h" | 21 #include "base/version.h" |
| 22 #include "chrome/browser/extensions/updater/request_queue_impl.h" | 22 #include "chrome/browser/extensions/updater/request_queue_impl.h" |
| 23 #include "chrome/browser/extensions/updater/safe_manifest_parser.h" | 23 #include "chrome/browser/extensions/updater/safe_manifest_parser.h" |
| 24 #include "chrome/browser/metrics/metrics_service.h" | 24 #include "chrome/browser/metrics/metrics_service.h" |
| 25 #include "chrome/common/chrome_notification_types.h" | 25 #include "chrome/common/chrome_notification_types.h" |
| 26 #include "chrome/common/chrome_switches.h" | 26 #include "chrome/common/chrome_switches.h" |
| 27 #include "chrome/common/chrome_version_info.h" | 27 #include "chrome/common/chrome_version_info.h" |
| 28 #include "chrome/common/extensions/extension_constants.h" | 28 #include "chrome/common/extensions/extension_constants.h" |
| 29 #include "chrome/common/extensions/manifest_url_handler.h" | 29 #include "chrome/common/extensions/manifest_url_handler.h" |
| (...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 void ExtensionDownloader::NotifyUpdateFound(const std::string& id, | 774 void ExtensionDownloader::NotifyUpdateFound(const std::string& id, |
| 775 const std::string& version) { | 775 const std::string& version) { |
| 776 UpdateDetails updateInfo(id, Version(version)); | 776 UpdateDetails updateInfo(id, Version(version)); |
| 777 content::NotificationService::current()->Notify( | 777 content::NotificationService::current()->Notify( |
| 778 chrome::NOTIFICATION_EXTENSION_UPDATE_FOUND, | 778 chrome::NOTIFICATION_EXTENSION_UPDATE_FOUND, |
| 779 content::NotificationService::AllBrowserContextsAndSources(), | 779 content::NotificationService::AllBrowserContextsAndSources(), |
| 780 content::Details<UpdateDetails>(&updateInfo)); | 780 content::Details<UpdateDetails>(&updateInfo)); |
| 781 } | 781 } |
| 782 | 782 |
| 783 } // namespace extensions | 783 } // namespace extensions |
| OLD | NEW |