| 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 |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 | 13 |
| 14 class GURL; | 14 class GURL; |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class FilePath; |
| 17 class SequencedTaskRunner; | 18 class SequencedTaskRunner; |
| 18 class Version; | 19 class Version; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace net { | 22 namespace net { |
| 22 class URLRequestContextGetter; | 23 class URLRequestContextGetter; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace update_client { | 26 namespace update_client { |
| 26 | 27 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // non on-demand components. | 105 // non on-demand components. |
| 105 virtual bool UseBackgroundDownloader() const = 0; | 106 virtual bool UseBackgroundDownloader() const = 0; |
| 106 | 107 |
| 107 // True if signing of update checks is enabled. | 108 // True if signing of update checks is enabled. |
| 108 virtual bool UseCupSigning() const = 0; | 109 virtual bool UseCupSigning() const = 0; |
| 109 | 110 |
| 110 // Gets a task runner to a blocking pool of threads suitable for worker jobs. | 111 // Gets a task runner to a blocking pool of threads suitable for worker jobs. |
| 111 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() | 112 virtual scoped_refptr<base::SequencedTaskRunner> GetSequencedTaskRunner() |
| 112 const = 0; | 113 const = 0; |
| 113 | 114 |
| 115 // Returns a path at which metadata information about updatable items can be |
| 116 // persisted. If the path is .empty(), no information will be persisted. |
| 117 virtual base::FilePath GetMetadataPath() const = 0; |
| 118 |
| 114 protected: | 119 protected: |
| 115 friend class base::RefCountedThreadSafe<Configurator>; | 120 friend class base::RefCountedThreadSafe<Configurator>; |
| 116 | 121 |
| 117 virtual ~Configurator() {} | 122 virtual ~Configurator() {} |
| 118 }; | 123 }; |
| 119 | 124 |
| 120 } // namespace update_client | 125 } // namespace update_client |
| 121 | 126 |
| 122 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ | 127 #endif // COMPONENTS_UPDATE_CLIENT_CONFIGURATOR_H_ |
| OLD | NEW |