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