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

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

Issue 1685323002: Implement CUP signing in UpdateClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and remove duplicated code comment. 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 | « no previous file | chrome/browser/extensions/updater/chrome_update_client_config.h » ('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 #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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 std::string GetChannel() const override; 43 std::string GetChannel() const override;
44 std::string GetLang() const override; 44 std::string GetLang() const override;
45 std::string GetOSLongName() const override; 45 std::string GetOSLongName() const override;
46 std::string ExtraRequestParams() const override; 46 std::string ExtraRequestParams() const override;
47 std::string GetDownloadPreference() const override; 47 std::string GetDownloadPreference() const override;
48 net::URLRequestContextGetter* RequestContext() const override; 48 net::URLRequestContextGetter* RequestContext() const override;
49 scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher() 49 scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher()
50 const override; 50 const override;
51 bool DeltasEnabled() const override; 51 bool DeltasEnabled() const override;
52 bool UseBackgroundDownloader() const override; 52 bool UseBackgroundDownloader() const override;
53 bool UseCupSigning() const override;
53 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() 54 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
54 const override; 55 const override;
55 56
56 private: 57 private:
57 friend class base::RefCountedThreadSafe<ChromeConfigurator>; 58 friend class base::RefCountedThreadSafe<ChromeConfigurator>;
58 59
59 ConfiguratorImpl configurator_impl_; 60 ConfiguratorImpl configurator_impl_;
60 61
61 ~ChromeConfigurator() override {} 62 ~ChromeConfigurator() override {}
62 }; 63 };
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 } 138 }
138 139
139 bool ChromeConfigurator::DeltasEnabled() const { 140 bool ChromeConfigurator::DeltasEnabled() const {
140 return configurator_impl_.DeltasEnabled(); 141 return configurator_impl_.DeltasEnabled();
141 } 142 }
142 143
143 bool ChromeConfigurator::UseBackgroundDownloader() const { 144 bool ChromeConfigurator::UseBackgroundDownloader() const {
144 return configurator_impl_.UseBackgroundDownloader(); 145 return configurator_impl_.UseBackgroundDownloader();
145 } 146 }
146 147
148 bool ChromeConfigurator::UseCupSigning() const {
149 return configurator_impl_.UseCupSigning();
150 }
151
147 // Returns a task runner to run blocking tasks. The task runner continues to run 152 // Returns a task runner to run blocking tasks. The task runner continues to run
148 // after the browser shuts down, until the OS terminates the process. This 153 // after the browser shuts down, until the OS terminates the process. This
149 // imposes certain requirements for the code using the task runner, such as 154 // imposes certain requirements for the code using the task runner, such as
150 // not accessing any global browser state while the code is running. 155 // not accessing any global browser state while the code is running.
151 scoped_refptr<base::SequencedTaskRunner> 156 scoped_refptr<base::SequencedTaskRunner>
152 ChromeConfigurator::GetSequencedTaskRunner() const { 157 ChromeConfigurator::GetSequencedTaskRunner() const {
153 return content::BrowserThread::GetBlockingPool() 158 return content::BrowserThread::GetBlockingPool()
154 ->GetSequencedTaskRunnerWithShutdownBehavior( 159 ->GetSequencedTaskRunnerWithShutdownBehavior(
155 base::SequencedWorkerPool::GetSequenceToken(), 160 base::SequencedWorkerPool::GetSequenceToken(),
156 base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN); 161 base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN);
157 } 162 }
158 163
159 } // namespace 164 } // namespace
160 165
161 scoped_refptr<update_client::Configurator> 166 scoped_refptr<update_client::Configurator>
162 MakeChromeComponentUpdaterConfigurator( 167 MakeChromeComponentUpdaterConfigurator(
163 const base::CommandLine* cmdline, 168 const base::CommandLine* cmdline,
164 net::URLRequestContextGetter* context_getter) { 169 net::URLRequestContextGetter* context_getter) {
165 return new ChromeConfigurator(cmdline, context_getter); 170 return new ChromeConfigurator(cmdline, context_getter);
166 } 171 }
167 172
168 } // namespace component_updater 173 } // namespace component_updater
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/updater/chrome_update_client_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698