Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: components/domain_reliability/google_configs.h

Issue 1180223006: Domain Reliability: Simplify configs and reports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add new configs Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698