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

Side by Side Diff: components/update_client/configurator.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
« no previous file with comments | « components/update_client/BUILD.gn ('k') | components/update_client/ping_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // Returns a PrefService that the update_client can use to store persistent 126 // Returns a PrefService that the update_client can use to store persistent
127 // update information. The PrefService must outlive the entire update_client, 127 // update information. The PrefService must outlive the entire update_client,
128 // and be safe to access from the thread the update_client is constructed 128 // and be safe to access from the thread the update_client is constructed
129 // on. 129 // on.
130 // Returning null is safe and will disable any functionality that requires 130 // Returning null is safe and will disable any functionality that requires
131 // persistent storage. 131 // persistent storage.
132 virtual PrefService* GetPrefService() const = 0; 132 virtual PrefService* GetPrefService() const = 0;
133 133
134 // Returns true if the Chrome is installed for the current user only, or false 134 // 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. 135 // 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.
136 virtual bool IsPerUserInstall() const = 0; 137 virtual bool IsPerUserInstall() const = 0;
137 138
138 protected: 139 protected:
139 friend class base::RefCountedThreadSafe<Configurator>; 140 friend class base::RefCountedThreadSafe<Configurator>;
140 141
141 virtual ~Configurator() {} 142 virtual ~Configurator() {}
142 }; 143 };
143 144
144 } // namespace update_client 145 } // namespace update_client
145 146
146 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ 147 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « components/update_client/BUILD.gn ('k') | components/update_client/ping_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698