| 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_COMPONENT_UPDATER_COMPONENT_UPDATER_CONFIGURATOR_H_ | 5 #ifndef COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_CONFIGURATOR_H_ |
| 6 #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_CONFIGURATOR_H_ | 6 #define COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_CONFIGURATOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> |
| 9 | 10 |
| 10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 12 | 13 |
| 13 class GURL; | 14 class GURL; |
| 14 | 15 |
| 15 namespace base { | 16 namespace base { |
| 16 class SingleThreadTaskRunner; | 17 class SingleThreadTaskRunner; |
| 17 class SequencedTaskRunner; | 18 class SequencedTaskRunner; |
| 18 class Version; | 19 class Version; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 46 // for testing purposes. | 47 // for testing purposes. |
| 47 virtual int StepDelayMedium() = 0; | 48 virtual int StepDelayMedium() = 0; |
| 48 | 49 |
| 49 // Minimum delta time in seconds before checking again the same component. | 50 // Minimum delta time in seconds before checking again the same component. |
| 50 virtual int MinimumReCheckWait() const = 0; | 51 virtual int MinimumReCheckWait() const = 0; |
| 51 | 52 |
| 52 // Minimum delta time in seconds before an on-demand check is allowed | 53 // Minimum delta time in seconds before an on-demand check is allowed |
| 53 // for the same component. | 54 // for the same component. |
| 54 virtual int OnDemandDelay() const = 0; | 55 virtual int OnDemandDelay() const = 0; |
| 55 | 56 |
| 56 // The url that is going to be used update checks over Omaha protocol. | 57 // The urls for the update checks. The urls are tried in order, the first one |
| 57 virtual GURL UpdateUrl() const = 0; | 58 // that succeeds wins. |
| 59 virtual std::vector<GURL> UpdateUrl() const = 0; |
| 58 | 60 |
| 59 // The url where the completion pings are sent. Invalid if and only if | 61 // The urls for pings. Returns an empty vector if and only if pings are |
| 60 // pings are disabled. | 62 // disabled. Similarly, these urls have a fall back behavior too. |
| 61 virtual GURL PingUrl() const = 0; | 63 virtual std::vector<GURL> PingUrl() const = 0; |
| 62 | 64 |
| 63 // Version of the application. Used to compare the component manifests. | 65 // Version of the application. Used to compare the component manifests. |
| 64 virtual base::Version GetBrowserVersion() const = 0; | 66 virtual base::Version GetBrowserVersion() const = 0; |
| 65 | 67 |
| 66 // Returns the value we use for the "updaterchannel=" and "prodchannel=" | 68 // Returns the value we use for the "updaterchannel=" and "prodchannel=" |
| 67 // parameters. Possible return values include: "canary", "dev", "beta", and | 69 // parameters. Possible return values include: "canary", "dev", "beta", and |
| 68 // "stable". | 70 // "stable". |
| 69 virtual std::string GetChannel() const = 0; | 71 virtual std::string GetChannel() const = 0; |
| 70 | 72 |
| 71 // Returns the language for the present locale. Possible return values are | 73 // Returns the language for the present locale. Possible return values are |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Gets a task runner for worker jobs guaranteed to run on a single thread. | 107 // Gets a task runner for worker jobs guaranteed to run on a single thread. |
| 106 // This thread must be capable of IO. On Windows, this thread must be | 108 // This thread must be capable of IO. On Windows, this thread must be |
| 107 // initialized for use of COM objects. | 109 // initialized for use of COM objects. |
| 108 virtual scoped_refptr<base::SingleThreadTaskRunner> | 110 virtual scoped_refptr<base::SingleThreadTaskRunner> |
| 109 GetSingleThreadTaskRunner() const = 0; | 111 GetSingleThreadTaskRunner() const = 0; |
| 110 }; | 112 }; |
| 111 | 113 |
| 112 } // namespace component_updater | 114 } // namespace component_updater |
| 113 | 115 |
| 114 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_CONFIGURATOR_H_ | 116 #endif // COMPONENTS_COMPONENT_UPDATER_COMPONENT_UPDATER_CONFIGURATOR_H_ |
| OLD | NEW |