OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/sth_set_component_installer.h" | 5 #include "chrome/browser/component_updater/sth_set_component_installer.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_enumerator.h" | 10 #include "base/files/file_enumerator.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
| 17 #include "base/threading/sequenced_worker_pool.h" |
17 #include "base/values.h" | 18 #include "base/values.h" |
18 #include "base/version.h" | 19 #include "base/version.h" |
19 #include "chrome/browser/net/sth_distributor_provider.h" | 20 #include "chrome/browser/net/sth_distributor_provider.h" |
20 #include "components/component_updater/component_updater_paths.h" | 21 #include "components/component_updater/component_updater_paths.h" |
21 #include "content/public/browser/browser_thread.h" | 22 #include "content/public/browser/browser_thread.h" |
22 #include "crypto/sha2.h" | 23 #include "crypto/sha2.h" |
23 #include "net/cert/ct_log_response_parser.h" | 24 #include "net/cert/ct_log_response_parser.h" |
24 #include "net/cert/signed_tree_head.h" | 25 #include "net/cert/signed_tree_head.h" |
25 #include "net/cert/sth_distributor.h" | 26 #include "net/cert/sth_distributor.h" |
26 #include "net/cert/sth_observer.h" | 27 #include "net/cert/sth_observer.h" |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 | 203 |
203 std::unique_ptr<ComponentInstallerTraits> traits( | 204 std::unique_ptr<ComponentInstallerTraits> traits( |
204 new STHSetComponentInstallerTraits(distributor)); | 205 new STHSetComponentInstallerTraits(distributor)); |
205 // |cus| will take ownership of |installer| during installer->Register(cus). | 206 // |cus| will take ownership of |installer| during installer->Register(cus). |
206 DefaultComponentInstaller* installer = | 207 DefaultComponentInstaller* installer = |
207 new DefaultComponentInstaller(std::move(traits)); | 208 new DefaultComponentInstaller(std::move(traits)); |
208 installer->Register(cus, base::Closure()); | 209 installer->Register(cus, base::Closure()); |
209 } | 210 } |
210 | 211 |
211 } // namespace component_updater | 212 } // namespace component_updater |
OLD | NEW |