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

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

Issue 1861383004: Add module for counting date-last-roll-call and persisting those counts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up BUILD.gn. Created 4 years, 8 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 13
14 class GURL; 14 class GURL;
15 class PrefService;
15 16
16 namespace base { 17 namespace base {
18 class FilePath;
17 class SequencedTaskRunner; 19 class SequencedTaskRunner;
18 class Version; 20 class Version;
19 } 21 }
20 22
21 namespace net { 23 namespace net {
22 class URLRequestContextGetter; 24 class URLRequestContextGetter;
23 } 25 }
24 26
25 namespace update_client { 27 namespace update_client {
26 28
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // non on-demand components. 106 // non on-demand components.
105 virtual bool UseBackgroundDownloader() const = 0; 107 virtual bool UseBackgroundDownloader() const = 0;
106 108
107 // True if signing of update checks is enabled. 109 // True if signing of update checks is enabled.
108 virtual bool UseCupSigning() const = 0; 110 virtual bool UseCupSigning() const = 0;
109 111
110 // Gets a task runner to a blocking pool of threads suitable for worker jobs. 112 // Gets a task runner to a blocking pool of threads suitable for worker jobs.
111 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() 113 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
112 const = 0; 114 const = 0;
113 115
116 // Returns a PrefService that the update_client can use to store persistent
117 // update information. The PrefService must outlive the entire update_client,
118 // and be safe to access from the thread the update_client is constructed
119 // on.
120 // Returning NULL is safe and will disable any functionality that requires
121 // persistent storage.
122 virtual PrefService* GetPrefService() const = 0;
123
114 protected: 124 protected:
115 friend class base::RefCountedThreadSafe<Configurator>; 125 friend class base::RefCountedThreadSafe<Configurator>;
116 126
117 virtual ~Configurator() {} 127 virtual ~Configurator() {}
118 }; 128 };
119 129
120 } // namespace update_client 130 } // namespace update_client
121 131
122 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ 132 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698