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

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

Issue 2286483002: Serialize Google Update state as part of the recovery component update checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused Created 4 years, 3 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 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 <string> 10 #include <string>
10 #include <vector> 11 #include <vector>
11 12
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
14 #include "base/sequenced_task_runner.h" 15 #include "base/sequenced_task_runner.h"
15 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
16 #include "base/threading/thread_checker.h" 17 #include "base/threading/thread_checker.h"
17 #include "components/component_updater/timer.h" 18 #include "components/component_updater/timer.h"
18 19
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const CrxComponent* GetComponent(const std::string& id) const; 75 const CrxComponent* GetComponent(const std::string& id) const;
75 76
76 const CrxUpdateItem* GetComponentState(const std::string& id) const; 77 const CrxUpdateItem* GetComponentState(const std::string& id) const;
77 78
78 void OnUpdate(const std::vector<std::string>& ids, 79 void OnUpdate(const std::vector<std::string>& ids,
79 std::vector<CrxComponent>* components); 80 std::vector<CrxComponent>* components);
80 void OnUpdateComplete(CompletionCallback callback, 81 void OnUpdateComplete(CompletionCallback callback,
81 const base::TimeTicks& start_time, 82 const base::TimeTicks& start_time,
82 int error); 83 int error);
83 84
85 // Returns the map of installer attributes for the recovery component
86 // installer. This data corresponds to the Omaha updater state and it is
87 // serialized as part of the update check for the recovery component.
88 update_client::InstallerAttributes
89 GetInstallerAttributesForRecoveryComponentInstaller(
90 const CrxComponent& crx_component) const;
84 base::ThreadChecker thread_checker_; 91 base::ThreadChecker thread_checker_;
85 92
86 scoped_refptr<Configurator> config_; 93 scoped_refptr<Configurator> config_;
87 94
88 scoped_refptr<UpdateClient> update_client_; 95 scoped_refptr<UpdateClient> update_client_;
89 96
90 Timer timer_; 97 Timer timer_;
91 98
92 // A collection of every registered component. 99 // A collection of every registered component.
93 using Components = std::map<std::string, CrxComponent>; 100 using Components = std::map<std::string, CrxComponent>;
(...skipping 25 matching lines...) Expand all
119 std::map<std::string, std::string> component_ids_by_mime_type_; 126 std::map<std::string, std::string> component_ids_by_mime_type_;
120 127
121 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 128 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
122 129
123 DISALLOW_COPY_AND_ASSIGN(CrxUpdateService); 130 DISALLOW_COPY_AND_ASSIGN(CrxUpdateService);
124 }; 131 };
125 132
126 } // namespace component_updater 133 } // namespace component_updater
127 134
128 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_INTERNAL_H_ 135 #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