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

Unified Diff: components/update_client/configurator.h

Issue 2873533002: Prepare to abstract PersistedData by making it part of the configurator.
Patch Set: Fix ios compile error. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/update_client/configurator.h
diff --git a/components/update_client/configurator.h b/components/update_client/configurator.h
index be2caff58d870274f40463d99995f94dc01e990b..9ee70df6bd9e05f92812382bb465bbcb464e1a2d 100644
--- a/components/update_client/configurator.h
+++ b/components/update_client/configurator.h
@@ -26,6 +26,7 @@ class URLRequestContextGetter;
namespace update_client {
class OutOfProcessPatcher;
+class PersistedData;
// Controls the component updater behavior.
// TODO(sorin): this class will be split soon in two. One class controls
@@ -133,6 +134,10 @@ class Configurator : public base::RefCountedThreadSafe<Configurator> {
// called only from a blocking pool thread, as it may access the file system.
virtual bool IsPerUserInstall() const = 0;
+ // Returns a PersistedData object that update_client can use to store
+ // persistent update information.
+ virtual std::unique_ptr<PersistedData> CreateMetadata() const = 0;
+
protected:
friend class base::RefCountedThreadSafe<Configurator>;

Powered by Google App Engine
This is Rietveld 408576698