| 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/component_updater/component_updater_service.h" | 5 #include "chrome/browser/component_updater/component_updater_service.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/at_exit.h" | 10 #include "base/at_exit.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "chrome/common/chrome_version_info.h" | 26 #include "chrome/common/chrome_version_info.h" |
| 27 #include "chrome/common/extensions/extension.h" | 27 #include "chrome/common/extensions/extension.h" |
| 28 #include "content/public/browser/notification_service.h" | 28 #include "content/public/browser/notification_service.h" |
| 29 #include "content/public/browser/utility_process_host.h" | 29 #include "content/public/browser/utility_process_host.h" |
| 30 #include "content/public/browser/utility_process_host_client.h" | 30 #include "content/public/browser/utility_process_host_client.h" |
| 31 #include "googleurl/src/gurl.h" | 31 #include "googleurl/src/gurl.h" |
| 32 #include "net/base/escape.h" | 32 #include "net/base/escape.h" |
| 33 #include "net/base/load_flags.h" | 33 #include "net/base/load_flags.h" |
| 34 #include "net/url_request/url_fetcher.h" | 34 #include "net/url_request/url_fetcher.h" |
| 35 #include "net/url_request/url_fetcher_delegate.h" | 35 #include "net/url_request/url_fetcher_delegate.h" |
| 36 #include "net/url_request/url_request_status.h" |
| 36 | 37 |
| 37 using content::BrowserThread; | 38 using content::BrowserThread; |
| 38 using content::UtilityProcessHost; | 39 using content::UtilityProcessHost; |
| 39 using content::UtilityProcessHostClient; | 40 using content::UtilityProcessHostClient; |
| 40 using extensions::Extension; | 41 using extensions::Extension; |
| 41 | 42 |
| 42 // The component updater is designed to live until process shutdown, so | 43 // The component updater is designed to live until process shutdown, so |
| 43 // base::Bind() calls are not refcounted. | 44 // base::Bind() calls are not refcounted. |
| 44 | 45 |
| 45 namespace { | 46 namespace { |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 ScheduleNextRun(false); | 770 ScheduleNextRun(false); |
| 770 } | 771 } |
| 771 | 772 |
| 772 // The component update factory. Using the component updater as a singleton | 773 // The component update factory. Using the component updater as a singleton |
| 773 // is the job of the browser process. | 774 // is the job of the browser process. |
| 774 ComponentUpdateService* ComponentUpdateServiceFactory( | 775 ComponentUpdateService* ComponentUpdateServiceFactory( |
| 775 ComponentUpdateService::Configurator* config) { | 776 ComponentUpdateService::Configurator* config) { |
| 776 DCHECK(config); | 777 DCHECK(config); |
| 777 return new CrxUpdateService(config); | 778 return new CrxUpdateService(config); |
| 778 } | 779 } |
| OLD | NEW |