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

Side by Side Diff: components/component_updater/component_updater_service_internal.h

Issue 2498873003: Refactor how the updater state data is serialized in update checks. (Closed)
Patch Set: Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_INTERNAL_H_ 5 #ifndef COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_INTERNAL_H_
6 #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_INTERNAL_H_ 6 #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_INTERNAL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const CrxComponent* GetComponent(const std::string& id) const; 77 const CrxComponent* GetComponent(const std::string& id) const;
78 78
79 const CrxUpdateItem* GetComponentState(const std::string& id) const; 79 const CrxUpdateItem* GetComponentState(const std::string& id) const;
80 80
81 void OnUpdate(const std::vector<std::string>& ids, 81 void OnUpdate(const std::vector<std::string>& ids,
82 std::vector<CrxComponent>* components); 82 std::vector<CrxComponent>* components);
83 void OnUpdateComplete(Callback callback, 83 void OnUpdateComplete(Callback callback,
84 const base::TimeTicks& start_time, 84 const base::TimeTicks& start_time,
85 update_client::Error error); 85 update_client::Error error);
86 86
87 // Returns the map of installer attributes for the recovery component
88 // installer. This data corresponds to the Omaha updater state and it is
89 // serialized as part of the update check for the recovery component.
90 update_client::InstallerAttributes
91 GetInstallerAttributesForRecoveryComponentInstaller(
92 const CrxComponent& crx_component) const;
93 base::ThreadChecker thread_checker_; 87 base::ThreadChecker thread_checker_;
94 88
95 scoped_refptr<Configurator> config_; 89 scoped_refptr<Configurator> config_;
96 90
97 scoped_refptr<UpdateClient> update_client_; 91 scoped_refptr<UpdateClient> update_client_;
98 92
99 Timer timer_; 93 Timer timer_;
100 94
101 // A collection of every registered component. 95 // A collection of every registered component.
102 using Components = std::map<std::string, CrxComponent>; 96 using Components = std::map<std::string, CrxComponent>;
(...skipping 25 matching lines...) Expand all
128 std::map<std::string, std::string> component_ids_by_mime_type_; 122 std::map<std::string, std::string> component_ids_by_mime_type_;
129 123
130 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 124 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
131 125
132 DISALLOW_COPY_AND_ASSIGN(CrxUpdateService); 126 DISALLOW_COPY_AND_ASSIGN(CrxUpdateService);
133 }; 127 };
134 128
135 } // namespace component_updater 129 } // namespace component_updater
136 130
137 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_INTERNAL_H_ 131 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_INTERNAL_H_
OLDNEW
« no previous file with comments | « components/component_updater/component_updater_service.cc ('k') | components/component_updater/updater_state_unittest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698