| Index: components/domain_reliability/google_configs.h
|
| diff --git a/components/domain_reliability/google_configs.h b/components/domain_reliability/google_configs.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c1a21369bead5bca504b74c9b9d5d3f75a7d7e8a
|
| --- /dev/null
|
| +++ b/components/domain_reliability/google_configs.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef COMPONENTS_DOMAIN_RELIABILITY_GOOGLE_CONFIGS_H_
|
| +#define COMPONENTS_DOMAIN_RELIABILITY_GOOGLE_CONFIGS_H_
|
| +
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "components/domain_reliability/config.h"
|
| +#include "components/domain_reliability/domain_reliability_export.h"
|
| +
|
| +namespace domain_reliability {
|
| +
|
| +class DOMAIN_RELIABILITY_EXPORT GoogleConfigs {
|
| + public:
|
| + ~GoogleConfigs();
|
| +
|
| + static GoogleConfigs GetAllConfigs();
|
| +
|
| + bool HasMoreConfigs();
|
| + scoped_ptr<DomainReliabilityConfig> GetNextConfig();
|
| +
|
| + private:
|
| + GoogleConfigs();
|
| +
|
| + size_t next_config_index_;
|
| + bool next_config_is_www_;
|
| +
|
| + // Okay to copy and assign.
|
| +};
|
| +
|
| +} // namespace domain_reliability
|
| +
|
| +#endif // COMPONENTS_DOMAIN_RELIABILITY_GOOGLE_CONFIGS_H_
|
|
|