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

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

Issue 1606943007: Implement Windows GPO support for "dlpref" in component updater. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whitespace comments only Created 4 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
« 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual std::string GetLang() const = 0; 70 virtual std::string GetLang() const = 0;
71 71
72 // Returns the OS's long name like "Windows", "Mac OS X", etc. 72 // Returns the OS's long name like "Windows", "Mac OS X", etc.
73 virtual std::string GetOSLongName() const = 0; 73 virtual std::string GetOSLongName() const = 0;
74 74
75 // Parameters added to each url request. It can be empty if none are needed. 75 // Parameters added to each url request. It can be empty if none are needed.
76 // The return string must be safe for insertion as an attribute in an 76 // The return string must be safe for insertion as an attribute in an
77 // XML element. 77 // XML element.
78 virtual std::string ExtraRequestParams() const = 0; 78 virtual std::string ExtraRequestParams() const = 0;
79 79
80 // Provides a hint for the server to control the order in which multiple
81 // download urls are returned. The hint may or may not be honored in the
82 // response returned by the server.
83 // Returns an empty string if no policy is in effect.
84 virtual std::string GetDownloadPreference() const = 0;
85
80 // The source of contexts for all the url requests. 86 // The source of contexts for all the url requests.
81 virtual net::URLRequestContextGetter* RequestContext() const = 0; 87 virtual net::URLRequestContextGetter* RequestContext() const = 0;
82 88
83 // Returns a new out of process patcher. May be NULL for implementations 89 // Returns a new out of process patcher. May be NULL for implementations
84 // that patch in-process. 90 // that patch in-process.
85 virtual scoped_refptr<update_client::OutOfProcessPatcher> 91 virtual scoped_refptr<update_client::OutOfProcessPatcher>
86 CreateOutOfProcessPatcher() const = 0; 92 CreateOutOfProcessPatcher() const = 0;
87 93
88 // True means that this client can handle delta updates. 94 // True means that this client can handle delta updates.
89 virtual bool DeltasEnabled() const = 0; 95 virtual bool DeltasEnabled() const = 0;
90 96
91 // True means that the background downloader can be used for downloading 97 // True means that the background downloader can be used for downloading
92 // non on-demand components. 98 // non on-demand components.
93 virtual bool UseBackgroundDownloader() const = 0; 99 virtual bool UseBackgroundDownloader() const = 0;
94 100
95 // Gets a task runner to a blocking pool of threads suitable for worker jobs. 101 // Gets a task runner to a blocking pool of threads suitable for worker jobs.
96 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() 102 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
97 const = 0; 103 const = 0;
98 104
99 protected: 105 protected:
100 friend class base::RefCountedThreadSafe<Configurator>; 106 friend class base::RefCountedThreadSafe<Configurator>;
101 107
102 virtual ~Configurator() {} 108 virtual ~Configurator() {}
103 }; 109 };
104 110
105 } // namespace update_client 111 } // namespace update_client
106 112
107 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ 113 #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