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

Unified Diff: components/memory_coordinator/common/memory_coordinator_features.h

Issue 2094583002: Add MemoryCoordinator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use feature_list Created 4 years, 6 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/memory_coordinator/common/memory_coordinator_features.h
diff --git a/components/memory_coordinator/common/memory_coordinator_features.h b/components/memory_coordinator/common/memory_coordinator_features.h
new file mode 100644
index 0000000000000000000000000000000000000000..606a12c2d65d7ee785c20079f967d0629c6bfcca
--- /dev/null
+++ b/components/memory_coordinator/common/memory_coordinator_features.h
@@ -0,0 +1,22 @@
+// Copyright 2016 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_MEMORY_COORDINATOR_COMMON_MEMORY_COORDINATOR_FEATURES_H_
+#define COMPONENTS_MEMORY_COORDINATOR_COMMON_MEMORY_COORDINATOR_FEATURES_H_
+
+#include "base/feature_list.h"
+
+namespace memory_coordinator {
+
+extern const base::Feature kMemoryCoordinator;
+
+// Returns true when the memory coordinator is enabled.
+bool IsEnabled();
+
+// Enable the memory coordinator for testing.
+void EnableForTesting();
+
+} // memory_coordinator
+
+#endif // COMPONENTS_MEMORY_COORDINATOR_COMMON_MEMORY_COORDINATOR_FEATURES_H_

Powered by Google App Engine
This is Rietveld 408576698