OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/update_client/update_checker.h" | 5 #include "components/update_client/update_checker.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
19 #include "base/thread_task_runner_handle.h" | |
20 #include "base/threading/thread_checker.h" | 19 #include "base/threading/thread_checker.h" |
| 20 #include "base/threading/thread_task_runner_handle.h" |
21 #include "components/update_client/configurator.h" | 21 #include "components/update_client/configurator.h" |
22 #include "components/update_client/crx_update_item.h" | 22 #include "components/update_client/crx_update_item.h" |
23 #include "components/update_client/persisted_data.h" | 23 #include "components/update_client/persisted_data.h" |
24 #include "components/update_client/request_sender.h" | 24 #include "components/update_client/request_sender.h" |
25 #include "components/update_client/utils.h" | 25 #include "components/update_client/utils.h" |
26 #include "url/gurl.h" | 26 #include "url/gurl.h" |
27 | 27 |
28 namespace update_client { | 28 namespace update_client { |
29 | 29 |
30 namespace { | 30 namespace { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 } // namespace | 201 } // namespace |
202 | 202 |
203 std::unique_ptr<UpdateChecker> UpdateChecker::Create( | 203 std::unique_ptr<UpdateChecker> UpdateChecker::Create( |
204 const scoped_refptr<Configurator>& config, | 204 const scoped_refptr<Configurator>& config, |
205 PersistedData* persistent) { | 205 PersistedData* persistent) { |
206 return std::unique_ptr<UpdateChecker>( | 206 return std::unique_ptr<UpdateChecker>( |
207 new UpdateCheckerImpl(config, persistent)); | 207 new UpdateCheckerImpl(config, persistent)); |
208 } | 208 } |
209 | 209 |
210 } // namespace update_client | 210 } // namespace update_client |
OLD | NEW |