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

Side by Side Diff: chrome/browser/component_updater/chrome_component_updater_configurator.cc

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 #include "chrome/browser/component_updater/chrome_component_updater_configurator .h" 5 #include "chrome/browser/component_updater/chrome_component_updater_configurator .h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 std::string GetOSLongName() const override; 55 std::string GetOSLongName() const override;
56 std::string ExtraRequestParams() const override; 56 std::string ExtraRequestParams() const override;
57 std::string GetDownloadPreference() const override; 57 std::string GetDownloadPreference() const override;
58 net::URLRequestContextGetter* RequestContext() const override; 58 net::URLRequestContextGetter* RequestContext() const override;
59 scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher() 59 scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher()
60 const override; 60 const override;
61 bool EnabledDeltas() const override; 61 bool EnabledDeltas() const override;
62 bool EnabledComponentUpdates() const override; 62 bool EnabledComponentUpdates() const override;
63 bool EnabledBackgroundDownloader() const override; 63 bool EnabledBackgroundDownloader() const override;
64 bool EnabledCupSigning() const override; 64 bool EnabledCupSigning() const override;
65 bool EnabledImprovedRecovery() const override;
65 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() 66 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
66 const override; 67 const override;
67 PrefService* GetPrefService() const override; 68 PrefService* GetPrefService() const override;
68 bool IsPerUserInstall() const override; 69 bool IsPerUserInstall() const override;
69 70
70 private: 71 private:
71 friend class base::RefCountedThreadSafe<ChromeConfigurator>; 72 friend class base::RefCountedThreadSafe<ChromeConfigurator>;
72 73
73 ConfiguratorImpl configurator_impl_; 74 ConfiguratorImpl configurator_impl_;
74 PrefService* pref_service_; // This member is not owned by this class. 75 PrefService* pref_service_; // This member is not owned by this class.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 } 179 }
179 180
180 bool ChromeConfigurator::EnabledBackgroundDownloader() const { 181 bool ChromeConfigurator::EnabledBackgroundDownloader() const {
181 return configurator_impl_.EnabledBackgroundDownloader(); 182 return configurator_impl_.EnabledBackgroundDownloader();
182 } 183 }
183 184
184 bool ChromeConfigurator::EnabledCupSigning() const { 185 bool ChromeConfigurator::EnabledCupSigning() const {
185 return configurator_impl_.EnabledCupSigning(); 186 return configurator_impl_.EnabledCupSigning();
186 } 187 }
187 188
189 bool ChromeConfigurator::EnabledImprovedRecovery() const {
190 return configurator_impl_.EnabledImprovedRecovery();
191 }
192
188 // Returns a task runner to run blocking tasks. The task runner continues to run 193 // Returns a task runner to run blocking tasks. The task runner continues to run
189 // after the browser shuts down, until the OS terminates the process. This 194 // after the browser shuts down, until the OS terminates the process. This
190 // imposes certain requirements for the code using the task runner, such as 195 // imposes certain requirements for the code using the task runner, such as
191 // not accessing any global browser state while the code is running. 196 // not accessing any global browser state while the code is running.
192 scoped_refptr<base::SequencedTaskRunner> 197 scoped_refptr<base::SequencedTaskRunner>
193 ChromeConfigurator::GetSequencedTaskRunner() const { 198 ChromeConfigurator::GetSequencedTaskRunner() const {
194 return content::BrowserThread::GetBlockingPool() 199 return content::BrowserThread::GetBlockingPool()
195 ->GetSequencedTaskRunnerWithShutdownBehavior( 200 ->GetSequencedTaskRunnerWithShutdownBehavior(
196 base::SequencedWorkerPool::GetSequenceToken(), 201 base::SequencedWorkerPool::GetSequenceToken(),
197 base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN); 202 base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN);
(...skipping 18 matching lines...) Expand all
216 221
217 scoped_refptr<update_client::Configurator> 222 scoped_refptr<update_client::Configurator>
218 MakeChromeComponentUpdaterConfigurator( 223 MakeChromeComponentUpdaterConfigurator(
219 const base::CommandLine* cmdline, 224 const base::CommandLine* cmdline,
220 net::URLRequestContextGetter* context_getter, 225 net::URLRequestContextGetter* context_getter,
221 PrefService* pref_service) { 226 PrefService* pref_service) {
222 return new ChromeConfigurator(cmdline, context_getter, pref_service); 227 return new ChromeConfigurator(cmdline, context_getter, pref_service);
223 } 228 }
224 229
225 } // namespace component_updater 230 } // namespace component_updater
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698