| 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" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 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" |
| 30 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
| 31 #include "content/public/browser/notification_details.h" | 31 #include "content/public/browser/notification_details.h" |
| 32 #include "content/public/browser/notification_service.h" | 32 #include "content/public/browser/notification_service.h" |
| 33 #include "net/base/backoff_entry.h" | 33 #include "net/base/backoff_entry.h" |
| 34 #include "net/base/load_flags.h" | 34 #include "net/base/load_flags.h" |
| 35 #include "net/base/net_errors.h" | 35 #include "net/base/net_errors.h" |
| 36 #include "net/url_request/url_fetcher.h" | 36 #include "net/url_request/url_fetcher.h" |
| 37 #include "net/url_request/url_request_context_getter.h" |
| 37 #include "net/url_request/url_request_status.h" | 38 #include "net/url_request/url_request_status.h" |
| 38 | 39 |
| 39 using base::Time; | 40 using base::Time; |
| 40 using base::TimeDelta; | 41 using base::TimeDelta; |
| 41 using content::BrowserThread; | 42 using content::BrowserThread; |
| 42 | 43 |
| 43 namespace extensions { | 44 namespace extensions { |
| 44 | 45 |
| 45 const char ExtensionDownloader::kBlacklistAppID[] = "com.google.crx.blacklist"; | 46 const char ExtensionDownloader::kBlacklistAppID[] = "com.google.crx.blacklist"; |
| 46 | 47 |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 void ExtensionDownloader::NotifyUpdateFound(const std::string& id, | 706 void ExtensionDownloader::NotifyUpdateFound(const std::string& id, |
| 706 const std::string& version) { | 707 const std::string& version) { |
| 707 UpdateDetails updateInfo(id, Version(version)); | 708 UpdateDetails updateInfo(id, Version(version)); |
| 708 content::NotificationService::current()->Notify( | 709 content::NotificationService::current()->Notify( |
| 709 chrome::NOTIFICATION_EXTENSION_UPDATE_FOUND, | 710 chrome::NOTIFICATION_EXTENSION_UPDATE_FOUND, |
| 710 content::NotificationService::AllBrowserContextsAndSources(), | 711 content::NotificationService::AllBrowserContextsAndSources(), |
| 711 content::Details<UpdateDetails>(&updateInfo)); | 712 content::Details<UpdateDetails>(&updateInfo)); |
| 712 } | 713 } |
| 713 | 714 |
| 714 } // namespace extensions | 715 } // namespace extensions |
| OLD | NEW |