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

Side by Side Diff: ios/chrome/browser/component_updater/ios_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 | « components/update_client/utils.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/component_updater/ios_component_updater_configurato r.h" 5 #include "ios/chrome/browser/component_updater/ios_component_updater_configurato r.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector>
8 9
9 #include "base/threading/sequenced_worker_pool.h" 10 #include "base/threading/sequenced_worker_pool.h"
10 #include "base/version.h" 11 #include "base/version.h"
11 #include "components/component_updater/configurator_impl.h" 12 #include "components/component_updater/configurator_impl.h"
12 #include "components/update_client/component_patcher_operation.h" 13 #include "components/update_client/component_patcher_operation.h"
13 #include "ios/chrome/browser/application_context.h" 14 #include "ios/chrome/browser/application_context.h"
14 #include "ios/chrome/common/channel_info.h" 15 #include "ios/chrome/common/channel_info.h"
15 #include "ios/web/public/web_thread.h" 16 #include "ios/web/public/web_thread.h"
16 17
17 namespace component_updater { 18 namespace component_updater {
(...skipping 17 matching lines...) Expand all
35 std::string GetChannel() const override; 36 std::string GetChannel() const override;
36 std::string GetLang() const override; 37 std::string GetLang() const override;
37 std::string GetOSLongName() const override; 38 std::string GetOSLongName() const override;
38 std::string ExtraRequestParams() const override; 39 std::string ExtraRequestParams() const override;
39 std::string GetDownloadPreference() const override; 40 std::string GetDownloadPreference() const override;
40 net::URLRequestContextGetter* RequestContext() const override; 41 net::URLRequestContextGetter* RequestContext() const override;
41 scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher() 42 scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher()
42 const override; 43 const override;
43 bool DeltasEnabled() const override; 44 bool DeltasEnabled() const override;
44 bool UseBackgroundDownloader() const override; 45 bool UseBackgroundDownloader() const override;
46 bool UseCupSigning() const override;
45 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() 47 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner()
46 const override; 48 const override;
47 49
48 private: 50 private:
49 friend class base::RefCountedThreadSafe<IOSConfigurator>; 51 friend class base::RefCountedThreadSafe<IOSConfigurator>;
50 52
51 ConfiguratorImpl configurator_impl_; 53 ConfiguratorImpl configurator_impl_;
52 54
53 ~IOSConfigurator() override {} 55 ~IOSConfigurator() override {}
54 }; 56 };
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 122 }
121 123
122 bool IOSConfigurator::DeltasEnabled() const { 124 bool IOSConfigurator::DeltasEnabled() const {
123 return configurator_impl_.DeltasEnabled(); 125 return configurator_impl_.DeltasEnabled();
124 } 126 }
125 127
126 bool IOSConfigurator::UseBackgroundDownloader() const { 128 bool IOSConfigurator::UseBackgroundDownloader() const {
127 return configurator_impl_.UseBackgroundDownloader(); 129 return configurator_impl_.UseBackgroundDownloader();
128 } 130 }
129 131
132 bool IOSConfigurator::UseCupSigning() const {
133 return configurator_impl_.UseCupSigning();
134 }
135
130 scoped_refptr<base::SequencedTaskRunner> 136 scoped_refptr<base::SequencedTaskRunner>
131 IOSConfigurator::GetSequencedTaskRunner() const { 137 IOSConfigurator::GetSequencedTaskRunner() const {
132 return web::WebThread::GetBlockingPool() 138 return web::WebThread::GetBlockingPool()
133 ->GetSequencedTaskRunnerWithShutdownBehavior( 139 ->GetSequencedTaskRunnerWithShutdownBehavior(
134 web::WebThread::GetBlockingPool()->GetSequenceToken(), 140 web::WebThread::GetBlockingPool()->GetSequenceToken(),
135 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); 141 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN);
136 } 142 }
137 143
138 } // namespace 144 } // namespace
139 145
140 scoped_refptr<update_client::Configurator> MakeIOSComponentUpdaterConfigurator( 146 scoped_refptr<update_client::Configurator> MakeIOSComponentUpdaterConfigurator(
141 const base::CommandLine* cmdline, 147 const base::CommandLine* cmdline,
142 net::URLRequestContextGetter* context_getter) { 148 net::URLRequestContextGetter* context_getter) {
143 return new IOSConfigurator(cmdline, context_getter); 149 return new IOSConfigurator(cmdline, context_getter);
144 } 150 }
145 151
146 } // namespace component_updater 152 } // namespace component_updater
OLDNEW
« no previous file with comments | « components/update_client/utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698