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

Side by Side Diff: chrome/browser/component_updater/sth_set_component_installer.cc

Issue 2691263002: Revert of Remove header dependencies from sequence_checker.h to sequenced_worker_pool.h (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
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"
18 #include "base/values.h" 17 #include "base/values.h"
19 #include "base/version.h" 18 #include "base/version.h"
20 #include "chrome/browser/net/sth_distributor_provider.h" 19 #include "chrome/browser/net/sth_distributor_provider.h"
21 #include "components/component_updater/component_updater_paths.h" 20 #include "components/component_updater/component_updater_paths.h"
22 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
23 #include "crypto/sha2.h" 22 #include "crypto/sha2.h"
24 #include "net/cert/ct_log_response_parser.h" 23 #include "net/cert/ct_log_response_parser.h"
25 #include "net/cert/signed_tree_head.h" 24 #include "net/cert/signed_tree_head.h"
26 #include "net/cert/sth_distributor.h" 25 #include "net/cert/sth_distributor.h"
27 #include "net/cert/sth_observer.h" 26 #include "net/cert/sth_observer.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 202
204 std::unique_ptr<ComponentInstallerTraits> traits( 203 std::unique_ptr<ComponentInstallerTraits> traits(
205 new STHSetComponentInstallerTraits(distributor)); 204 new STHSetComponentInstallerTraits(distributor));
206 // |cus| will take ownership of |installer| during installer->Register(cus). 205 // |cus| will take ownership of |installer| during installer->Register(cus).
207 DefaultComponentInstaller* installer = 206 DefaultComponentInstaller* installer =
208 new DefaultComponentInstaller(std::move(traits)); 207 new DefaultComponentInstaller(std::move(traits));
209 installer->Register(cus, base::Closure()); 208 installer->Register(cus, base::Closure());
210 } 209 }
211 210
212 } // namespace component_updater 211 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698