Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Side by Side Diff: components/component_updater/component_updater_service.cc

Issue 449643002: Componentize component_updater: Move over a bunch of files to the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "components/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
11 #include "base/at_exit.h" 11 #include "base/at_exit.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/file_util.h" 15 #include "base/file_util.h"
16 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "base/message_loop/message_loop_proxy.h" 19 #include "base/message_loop/message_loop_proxy.h"
20 #include "base/observer_list.h" 20 #include "base/observer_list.h"
21 #include "base/sequenced_task_runner.h" 21 #include "base/sequenced_task_runner.h"
22 #include "base/stl_util.h" 22 #include "base/stl_util.h"
23 #include "base/threading/sequenced_worker_pool.h" 23 #include "base/threading/sequenced_worker_pool.h"
24 #include "base/threading/thread_checker.h" 24 #include "base/threading/thread_checker.h"
25 #include "base/timer/timer.h" 25 #include "base/timer/timer.h"
26 #include "chrome/browser/component_updater/component_patcher_operation.h" 26 #include "components/component_updater/component_patcher_operation.h"
27 #include "chrome/browser/component_updater/component_unpacker.h" 27 #include "components/component_updater/component_unpacker.h"
28 #include "chrome/browser/component_updater/component_updater_configurator.h" 28 #include "components/component_updater/component_updater_configurator.h"
29 #include "chrome/browser/component_updater/component_updater_ping_manager.h" 29 #include "components/component_updater/component_updater_ping_manager.h"
30 #include "chrome/browser/component_updater/component_updater_utils.h" 30 #include "components/component_updater/component_updater_utils.h"
31 #include "chrome/browser/component_updater/crx_downloader.h" 31 #include "components/component_updater/crx_downloader.h"
32 #include "chrome/browser/component_updater/crx_update_item.h" 32 #include "components/component_updater/crx_update_item.h"
33 #include "chrome/browser/component_updater/update_checker.h" 33 #include "components/component_updater/update_checker.h"
34 #include "chrome/browser/component_updater/update_response.h" 34 #include "components/component_updater/update_response.h"
35 #include "url/gurl.h" 35 #include "url/gurl.h"
36 36
37 namespace component_updater { 37 namespace component_updater {
38 38
39 // The component updater is designed to live until process shutdown, so 39 // The component updater is designed to live until process shutdown, so
40 // base::Bind() calls are not refcounted. 40 // base::Bind() calls are not refcounted.
41 41
42 namespace { 42 namespace {
43 43
44 // Returns true if the |proposed| version is newer than |current| version. 44 // Returns true if the |proposed| version is newer than |current| version.
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 /////////////////////////////////////////////////////////////////////////////// 1009 ///////////////////////////////////////////////////////////////////////////////
1010 1010
1011 // The component update factory. Using the component updater as a singleton 1011 // The component update factory. Using the component updater as a singleton
1012 // is the job of the browser process. 1012 // is the job of the browser process.
1013 ComponentUpdateService* ComponentUpdateServiceFactory(Configurator* config) { 1013 ComponentUpdateService* ComponentUpdateServiceFactory(Configurator* config) {
1014 DCHECK(config); 1014 DCHECK(config);
1015 return new CrxUpdateService(config); 1015 return new CrxUpdateService(config);
1016 } 1016 }
1017 1017
1018 } // namespace component_updater 1018 } // namespace component_updater
OLDNEW
« no previous file with comments | « components/component_updater/component_updater_service.h ('k') | components/component_updater/component_updater_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698