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

Side by Side Diff: components/update_client/configurator.h

Issue 2661113003: Skeleton mechanical impl. for the RecoveryImprovedComponent. (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 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 #ifndef COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ 5 #ifndef COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_
6 #define COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ 6 #define COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // components are always enabled and can't be disabled programatically. 112 // components are always enabled and can't be disabled programatically.
113 virtual bool EnabledComponentUpdates() const = 0; 113 virtual bool EnabledComponentUpdates() const = 0;
114 114
115 // True means that the background downloader can be used for downloading 115 // True means that the background downloader can be used for downloading
116 // non on-demand components. 116 // non on-demand components.
117 virtual bool EnabledBackgroundDownloader() const = 0; 117 virtual bool EnabledBackgroundDownloader() const = 0;
118 118
119 // True if signing of update checks is enabled. 119 // True if signing of update checks is enabled.
120 virtual bool EnabledCupSigning() const = 0; 120 virtual bool EnabledCupSigning() const = 0;
121 121
122 // True if the improved recovery component is enabled. The recovery component
123 // is available on Windows and macOS.
124 virtual bool EnabledImprovedRecovery() const = 0;
125
122 // Gets a task runner to a blocking pool of threads suitable for worker jobs. 126 // Gets a task runner to a blocking pool of threads suitable for worker jobs.
123 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() 127 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
124 const = 0; 128 const = 0;
125 129
126 // Returns a PrefService that the update_client can use to store persistent 130 // Returns a PrefService that the update_client can use to store persistent
127 // update information. The PrefService must outlive the entire update_client, 131 // update information. The PrefService must outlive the entire update_client,
128 // and be safe to access from the thread the update_client is constructed 132 // and be safe to access from the thread the update_client is constructed
129 // on. 133 // on.
130 // Returning null is safe and will disable any functionality that requires 134 // Returning null is safe and will disable any functionality that requires
131 // persistent storage. 135 // persistent storage.
132 virtual PrefService* GetPrefService() const = 0; 136 virtual PrefService* GetPrefService() const = 0;
133 137
134 // Returns true if the Chrome is installed for the current user only, or false 138 // Returns true if the Chrome is installed for the current user only, or false
135 // if Chrome is installed for all users on the machine. This function must be 139 // if Chrome is installed for all users on the machine. This function must be
136 // called only from a blocking pool thread, as it may access the file system. 140 // called only from a blocking pool thread, as it may access the file system.
137 virtual bool IsPerUserInstall() const = 0; 141 virtual bool IsPerUserInstall() const = 0;
138 142
139 protected: 143 protected:
140 friend class base::RefCountedThreadSafe<Configurator>; 144 friend class base::RefCountedThreadSafe<Configurator>;
141 145
142 virtual ~Configurator() {} 146 virtual ~Configurator() {}
143 }; 147 };
144 148
145 } // namespace update_client 149 } // namespace update_client
146 150
147 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ 151 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698