Chromium Code Reviews| 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 class PrefService; | |
|
asargent_no_longer_on_chrome
2016/04/07 23:07:25
You should already get this from the extensions/br
waffles
2016/04/07 23:22:24
Done.
| |
| 17 | |
| 18 namespace base { | |
| 19 class FilePath; | |
| 20 } | |
|
asargent_no_longer_on_chrome
2016/04/07 23:07:25
do you still need this FilePath declaration?
waffles
2016/04/07 23:22:24
Done.
| |
| 21 | |
| 16 namespace content { | 22 namespace content { |
| 17 class BrowserContext; | 23 class BrowserContext; |
| 18 } | 24 } |
| 19 | 25 |
| 20 namespace extensions { | 26 namespace extensions { |
| 21 | 27 |
| 22 class ChromeUpdateClientConfig : public UpdateClientConfig { | 28 class ChromeUpdateClientConfig : public UpdateClientConfig { |
| 23 public: | 29 public: |
| 24 explicit ChromeUpdateClientConfig(content::BrowserContext* context); | 30 explicit ChromeUpdateClientConfig(content::BrowserContext* context); |
| 25 | 31 |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 36 std::string GetLang() const override; | 42 std::string GetLang() const override; |
| 37 std::string GetOSLongName() const override; | 43 std::string GetOSLongName() const override; |
| 38 std::string ExtraRequestParams() const override; | 44 std::string ExtraRequestParams() const override; |
| 39 std::string GetDownloadPreference() const override; | 45 std::string GetDownloadPreference() const override; |
| 40 net::URLRequestContextGetter* RequestContext() const override; | 46 net::URLRequestContextGetter* RequestContext() const override; |
| 41 scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher() | 47 scoped_refptr<update_client::OutOfProcessPatcher> CreateOutOfProcessPatcher() |
| 42 const override; | 48 const override; |
| 43 bool DeltasEnabled() const override; | 49 bool DeltasEnabled() const override; |
| 44 bool UseBackgroundDownloader() const override; | 50 bool UseBackgroundDownloader() const override; |
| 45 bool UseCupSigning() const override; | 51 bool UseCupSigning() const override; |
| 52 PrefService* GetPrefService() const override; | |
| 46 | 53 |
| 47 protected: | 54 protected: |
| 48 friend class base::RefCountedThreadSafe<ChromeUpdateClientConfig>; | 55 friend class base::RefCountedThreadSafe<ChromeUpdateClientConfig>; |
| 49 ~ChromeUpdateClientConfig() override; | 56 ~ChromeUpdateClientConfig() override; |
| 50 | 57 |
| 51 private: | 58 private: |
| 52 component_updater::ConfiguratorImpl impl_; | 59 component_updater::ConfiguratorImpl impl_; |
| 53 | 60 |
| 54 DISALLOW_COPY_AND_ASSIGN(ChromeUpdateClientConfig); | 61 DISALLOW_COPY_AND_ASSIGN(ChromeUpdateClientConfig); |
| 55 }; | 62 }; |
| 56 | 63 |
| 57 } // namespace extensions | 64 } // namespace extensions |
| 58 | 65 |
| 59 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_ | 66 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_CHROME_UPDATE_CLIENT_CONFIG_H_ |
| OLD | NEW |