OLD | NEW |
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 <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 return std::string(); | 107 return std::string(); |
108 } | 108 } |
109 | 109 |
110 class ChromeConfigurator : public Configurator { | 110 class ChromeConfigurator : public Configurator { |
111 public: | 111 public: |
112 ChromeConfigurator(const CommandLine* cmdline, | 112 ChromeConfigurator(const CommandLine* cmdline, |
113 net::URLRequestContextGetter* url_request_getter); | 113 net::URLRequestContextGetter* url_request_getter); |
114 | 114 |
115 virtual ~ChromeConfigurator() {} | 115 virtual ~ChromeConfigurator() {} |
116 | 116 |
117 virtual int InitialDelay() const OVERRIDE; | 117 virtual int InitialDelay() const override; |
118 virtual int NextCheckDelay() OVERRIDE; | 118 virtual int NextCheckDelay() override; |
119 virtual int StepDelay() const OVERRIDE; | 119 virtual int StepDelay() const override; |
120 virtual int StepDelayMedium() OVERRIDE; | 120 virtual int StepDelayMedium() override; |
121 virtual int MinimumReCheckWait() const OVERRIDE; | 121 virtual int MinimumReCheckWait() const override; |
122 virtual int OnDemandDelay() const OVERRIDE; | 122 virtual int OnDemandDelay() const override; |
123 virtual std::vector<GURL> UpdateUrl() const OVERRIDE; | 123 virtual std::vector<GURL> UpdateUrl() const override; |
124 virtual std::vector<GURL> PingUrl() const OVERRIDE; | 124 virtual std::vector<GURL> PingUrl() const override; |
125 virtual base::Version GetBrowserVersion() const OVERRIDE; | 125 virtual base::Version GetBrowserVersion() const override; |
126 virtual std::string GetChannel() const OVERRIDE; | 126 virtual std::string GetChannel() const override; |
127 virtual std::string GetLang() const OVERRIDE; | 127 virtual std::string GetLang() const override; |
128 virtual std::string GetOSLongName() const OVERRIDE; | 128 virtual std::string GetOSLongName() const override; |
129 virtual std::string ExtraRequestParams() const OVERRIDE; | 129 virtual std::string ExtraRequestParams() const override; |
130 virtual size_t UrlSizeLimit() const OVERRIDE; | 130 virtual size_t UrlSizeLimit() const override; |
131 virtual net::URLRequestContextGetter* RequestContext() const OVERRIDE; | 131 virtual net::URLRequestContextGetter* RequestContext() const override; |
132 virtual scoped_refptr<OutOfProcessPatcher> CreateOutOfProcessPatcher() | 132 virtual scoped_refptr<OutOfProcessPatcher> CreateOutOfProcessPatcher() |
133 const OVERRIDE; | 133 const override; |
134 virtual bool DeltasEnabled() const OVERRIDE; | 134 virtual bool DeltasEnabled() const override; |
135 virtual bool UseBackgroundDownloader() const OVERRIDE; | 135 virtual bool UseBackgroundDownloader() const override; |
136 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() | 136 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() |
137 const OVERRIDE; | 137 const override; |
138 virtual scoped_refptr<base::SingleThreadTaskRunner> | 138 virtual scoped_refptr<base::SingleThreadTaskRunner> |
139 GetSingleThreadTaskRunner() const OVERRIDE; | 139 GetSingleThreadTaskRunner() const override; |
140 | 140 |
141 private: | 141 private: |
142 net::URLRequestContextGetter* url_request_getter_; | 142 net::URLRequestContextGetter* url_request_getter_; |
143 std::string extra_info_; | 143 std::string extra_info_; |
144 GURL url_source_override_; | 144 GURL url_source_override_; |
145 bool fast_update_; | 145 bool fast_update_; |
146 bool pings_enabled_; | 146 bool pings_enabled_; |
147 bool deltas_enabled_; | 147 bool deltas_enabled_; |
148 bool background_downloads_enabled_; | 148 bool background_downloads_enabled_; |
149 bool fallback_to_alt_source_url_enabled_; | 149 bool fallback_to_alt_source_url_enabled_; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 | 285 |
286 } // namespace | 286 } // namespace |
287 | 287 |
288 Configurator* MakeChromeComponentUpdaterConfigurator( | 288 Configurator* MakeChromeComponentUpdaterConfigurator( |
289 const base::CommandLine* cmdline, | 289 const base::CommandLine* cmdline, |
290 net::URLRequestContextGetter* context_getter) { | 290 net::URLRequestContextGetter* context_getter) { |
291 return new ChromeConfigurator(cmdline, context_getter); | 291 return new ChromeConfigurator(cmdline, context_getter); |
292 } | 292 } |
293 | 293 |
294 } // namespace component_updater | 294 } // namespace component_updater |
OLD | NEW |