| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ |
| 6 #define COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 virtual scoped_refptr<update_client::OutOfProcessPatcher> | 91 virtual scoped_refptr<update_client::OutOfProcessPatcher> |
| 92 CreateOutOfProcessPatcher() const = 0; | 92 CreateOutOfProcessPatcher() const = 0; |
| 93 | 93 |
| 94 // True means that this client can handle delta updates. | 94 // True means that this client can handle delta updates. |
| 95 virtual bool DeltasEnabled() const = 0; | 95 virtual bool DeltasEnabled() const = 0; |
| 96 | 96 |
| 97 // True means that the background downloader can be used for downloading | 97 // True means that the background downloader can be used for downloading |
| 98 // non on-demand components. | 98 // non on-demand components. |
| 99 virtual bool UseBackgroundDownloader() const = 0; | 99 virtual bool UseBackgroundDownloader() const = 0; |
| 100 | 100 |
| 101 // True if signing of update checks is enabled. |
| 102 virtual bool UseCupSigning() const = 0; |
| 103 |
| 101 // Gets a task runner to a blocking pool of threads suitable for worker jobs. | 104 // Gets a task runner to a blocking pool of threads suitable for worker jobs. |
| 102 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() | 105 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() |
| 103 const = 0; | 106 const = 0; |
| 104 | 107 |
| 105 protected: | 108 protected: |
| 106 friend class base::RefCountedThreadSafe<Configurator>; | 109 friend class base::RefCountedThreadSafe<Configurator>; |
| 107 | 110 |
| 108 virtual ~Configurator() {} | 111 virtual ~Configurator() {} |
| 109 }; | 112 }; |
| 110 | 113 |
| 111 } // namespace update_client | 114 } // namespace update_client |
| 112 | 115 |
| 113 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ | 116 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ |
| OLD | NEW |