| 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 <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
| 23 #include "base/strings/stringprintf.h" | 23 #include "base/strings/stringprintf.h" |
| 24 #include "base/threading/sequenced_worker_pool.h" | 24 #include "base/threading/sequenced_worker_pool.h" |
| 25 #include "base/timer/timer.h" | 25 #include "base/timer/timer.h" |
| 26 #include "chrome/browser/browser_process.h" | 26 #include "chrome/browser/browser_process.h" |
| 27 #include "chrome/browser/component_updater/component_patcher.h" | 27 #include "chrome/browser/component_updater/component_patcher.h" |
| 28 #include "chrome/browser/component_updater/component_unpacker.h" | 28 #include "chrome/browser/component_updater/component_unpacker.h" |
| 29 #include "chrome/browser/component_updater/component_updater_ping_manager.h" | 29 #include "chrome/browser/component_updater/component_updater_ping_manager.h" |
| 30 #include "chrome/browser/component_updater/crx_update_item.h" | 30 #include "chrome/browser/component_updater/crx_update_item.h" |
| 31 #include "chrome/common/chrome_version_info.h" | 31 #include "chrome/common/chrome_version_info.h" |
| 32 #include "chrome/common/extensions/extension.h" | |
| 33 #include "chrome/common/extensions/update_manifest.h" | 32 #include "chrome/common/extensions/update_manifest.h" |
| 34 #include "content/public/browser/browser_thread.h" | 33 #include "content/public/browser/browser_thread.h" |
| 35 #include "content/public/browser/resource_controller.h" | 34 #include "content/public/browser/resource_controller.h" |
| 36 #include "content/public/browser/resource_throttle.h" | 35 #include "content/public/browser/resource_throttle.h" |
| 36 #include "extensions/common/extension.h" |
| 37 #include "net/base/escape.h" | 37 #include "net/base/escape.h" |
| 38 #include "net/base/load_flags.h" | 38 #include "net/base/load_flags.h" |
| 39 #include "net/base/net_errors.h" | 39 #include "net/base/net_errors.h" |
| 40 #include "net/url_request/url_fetcher.h" | 40 #include "net/url_request/url_fetcher.h" |
| 41 #include "net/url_request/url_fetcher_delegate.h" | 41 #include "net/url_request/url_fetcher_delegate.h" |
| 42 #include "net/url_request/url_request.h" | 42 #include "net/url_request/url_request.h" |
| 43 #include "net/url_request/url_request_status.h" | 43 #include "net/url_request/url_request_status.h" |
| 44 #include "url/gurl.h" | 44 #include "url/gurl.h" |
| 45 | 45 |
| 46 using content::BrowserThread; | 46 using content::BrowserThread; |
| (...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1157 state_ = UNBLOCKED; | 1157 state_ = UNBLOCKED; |
| 1158 } | 1158 } |
| 1159 | 1159 |
| 1160 // The component update factory. Using the component updater as a singleton | 1160 // The component update factory. Using the component updater as a singleton |
| 1161 // is the job of the browser process. | 1161 // is the job of the browser process. |
| 1162 ComponentUpdateService* ComponentUpdateServiceFactory( | 1162 ComponentUpdateService* ComponentUpdateServiceFactory( |
| 1163 ComponentUpdateService::Configurator* config) { | 1163 ComponentUpdateService::Configurator* config) { |
| 1164 DCHECK(config); | 1164 DCHECK(config); |
| 1165 return new CrxUpdateService(config); | 1165 return new CrxUpdateService(config); |
| 1166 } | 1166 } |
| OLD | NEW |