| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "components/component_updater/configurator_impl.h" | 13 #include "components/component_updater/configurator_impl.h" |
| 14 #include "extensions/browser/updater/update_client_config.h" | 14 #include "extensions/browser/updater/update_client_config.h" |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 class BrowserContext; | 17 class BrowserContext; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace extensions { | 20 namespace extensions { |
| 21 | 21 |
| 22 class ChromeUpdateClientConfig : public UpdateClientConfig { | 22 class ChromeUpdateClientConfig : public UpdateClientConfig { |
| 23 public: | 23 public: |
| 24 explicit ChromeUpdateClientConfig(content::BrowserContext* context); | 24 explicit ChromeUpdateClientConfig(content::BrowserContext* context); |
| 25 | 25 |
| 26 int InitialDelay() const override; | 26 int InitialDelay() const override; |
| 27 int NextCheckDelay() const override; | 27 int NextCheckDelay() const override; |
| 28 int StepDelay() const override; | |
| 29 int OnDemandDelay() const override; | 28 int OnDemandDelay() const override; |
| 30 int UpdateDelay() const override; | 29 int UpdateDelay() const override; |
| 31 std::vector<GURL> UpdateUrl() const override; | 30 std::vector<GURL> UpdateUrl() const override; |
| 32 std::vector<GURL> PingUrl() const override; | 31 std::vector<GURL> PingUrl() const override; |
| 33 std::string GetProdId() const override; | 32 std::string GetProdId() const override; |
| 34 base::Version GetBrowserVersion() const override; | 33 base::Version GetBrowserVersion() const override; |
| 35 std::string GetChannel() const override; | 34 std::string GetChannel() const override; |
| 36 std::string GetBrand() const override; | 35 std::string GetBrand() const override; |
| 37 std::string GetLang() const override; | 36 std::string GetLang() const override; |
| 38 std::string GetOSLongName() const override; | 37 std::string GetOSLongName() const override; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 54 | 53 |
| 55 private: | 54 private: |
| 56 component_updater::ConfiguratorImpl impl_; | 55 component_updater::ConfiguratorImpl impl_; |
| 57 | 56 |
| 58 DISALLOW_COPY_AND_ASSIGN(ChromeUpdateClientConfig); | 57 DISALLOW_COPY_AND_ASSIGN(ChromeUpdateClientConfig); |
| 59 }; | 58 }; |
| 60 | 59 |
| 61 } // namespace extensions | 60 } // namespace extensions |
| 62 | 61 |
| 63 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_ | 62 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_ |
| OLD | NEW |