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 COMPONENTS_DOMAIN_RELIABILITY_GOOGLE_CONFIGS_H_ |
| 6 #define COMPONENTS_DOMAIN_RELIABILITY_GOOGLE_CONFIGS_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "components/domain_reliability/config.h" |
| 10 #include "components/domain_reliability/domain_reliability_export.h" |
| 11 |
| 12 namespace domain_reliability { |
| 13 |
| 14 class DOMAIN_RELIABILITY_EXPORT GoogleConfigs { |
| 15 public: |
| 16 ~GoogleConfigs(); |
| 17 |
| 18 static GoogleConfigs GetAllConfigs(); |
| 19 |
| 20 bool HasMoreConfigs(); |
| 21 scoped_ptr<DomainReliabilityConfig> GetNextConfig(); |
| 22 |
| 23 private: |
| 24 GoogleConfigs(); |
| 25 |
| 26 size_t next_config_index_; |
| 27 bool next_config_is_www_; |
| 28 |
| 29 // Okay to copy and assign. |
| 30 }; |
| 31 |
| 32 } // namespace domain_reliability |
| 33 |
| 34 #endif // COMPONENTS_DOMAIN_RELIABILITY_GOOGLE_CONFIGS_H_ |
OLD | NEW |