| 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 EXTENSIONS_BROWSER_UPDATER_UPDATE_CLIENT_CONFIG_H_ | 5 #ifndef EXTENSIONS_BROWSER_UPDATER_UPDATE_CLIENT_CONFIG_H_ |
| 6 #define EXTENSIONS_BROWSER_UPDATER_UPDATE_CLIENT_CONFIG_H_ | 6 #define EXTENSIONS_BROWSER_UPDATER_UPDATE_CLIENT_CONFIG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 11 #include "components/update_client/configurator.h" | 12 #include "components/update_client/configurator.h" |
| 12 | 13 |
| 13 namespace base { | 14 namespace base { |
| 14 class SequencedTaskRunner; | 15 class SequencedTaskRunner; |
| 15 } | 16 } |
| 16 | 17 |
| 17 namespace extensions { | 18 namespace extensions { |
| 18 | 19 |
| 19 // Used to provide configuration settings to the UpdateClient. | 20 // Used to provide configuration settings to the UpdateClient. |
| 20 class UpdateClientConfig : public update_client::Configurator { | 21 class UpdateClientConfig : public update_client::Configurator { |
| 21 public: | 22 public: |
| 22 UpdateClientConfig(); | 23 UpdateClientConfig(); |
| 23 | 24 |
| 24 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() | 25 scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() |
| 25 const override; | 26 const override; |
| 26 | 27 |
| 27 protected: | 28 protected: |
| 28 friend class base::RefCountedThreadSafe<UpdateClientConfig>; | 29 friend class base::RefCountedThreadSafe<UpdateClientConfig>; |
| 29 ~UpdateClientConfig() override; | 30 ~UpdateClientConfig() override; |
| 30 | 31 |
| 31 private: | 32 private: |
| 32 DISALLOW_COPY_AND_ASSIGN(UpdateClientConfig); | 33 DISALLOW_COPY_AND_ASSIGN(UpdateClientConfig); |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 } // namespace extensions | 36 } // namespace extensions |
| 36 | 37 |
| 37 #endif // EXTENSIONS_BROWSER_UPDATER_UPDATE_CLIENT_CONFIG_H_ | 38 #endif // EXTENSIONS_BROWSER_UPDATER_UPDATE_CLIENT_CONFIG_H_ |
| OLD | NEW |