OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_ |
| 7 |
| 8 #include <string> |
| 9 #include <vector> |
| 10 |
| 11 #include "base/memory/ref_counted.h" |
| 12 #include "components/component_updater/configurator_impl.h" |
| 13 #include "extensions/browser/updater/update_client_config.h" |
| 14 |
| 15 namespace content { |
| 16 class BrowserContext; |
| 17 } |
| 18 |
| 19 namespace extensions { |
| 20 |
| 21 class ChromeUpdateClientConfig : public UpdateClientConfig { |
| 22 public: |
| 23 explicit ChromeUpdateClientConfig(content::BrowserContext* context); |
| 24 |
| 25 int InitialDelay() const override; |
| 26 int NextCheckDelay() const override; |
| 27 int StepDelay() const override; |
| 28 int OnDemandDelay() const override; |
| 29 int UpdateDelay() const override; |
| 30 std::vector<GURL> UpdateUrl() const override; |
| 31 std::vector<GURL> PingUrl() const override; |
| 32 base::Version GetBrowserVersion() const override; |
| 33 std::string GetChannel() const override; |
| 34 std::string GetLang() const override; |
| 35 std::string GetOSLongName() const override; |
| 36 std::string ExtraRequestParams() const override; |
| 37 net::URLRequestContextGetter* RequestContext() const override; |
| 38 scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher() |
| 39 const override; |
| 40 bool DeltasEnabled() const override; |
| 41 bool UseBackgroundDownloader() const override; |
| 42 |
| 43 protected: |
| 44 friend class base::RefCountedThreadSafe<ChromeUpdateClientConfig>; |
| 45 ~ChromeUpdateClientConfig() override; |
| 46 |
| 47 private: |
| 48 component_updater::ConfiguratorImpl impl_; |
| 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(ChromeUpdateClientConfig); |
| 51 }; |
| 52 |
| 53 } // namespace extensions |
| 54 |
| 55 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_ |
OLD | NEW |