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

Unified Diff: components/memory_coordinator/child/blink_memory_coordinator_client.h

Issue 2094583002: Add MemoryCoordinator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gyp 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/child/blink_memory_coordinator_client.h
diff --git a/components/memory_coordinator/child/blink_memory_coordinator_client.h b/components/memory_coordinator/child/blink_memory_coordinator_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..8dbe65e506225d5b7b36af9ec77646693ac19dc2
--- /dev/null
+++ b/components/memory_coordinator/child/blink_memory_coordinator_client.h
@@ -0,0 +1,24 @@
+// 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_CHILD_BLINK_MEMORY_COORDINATOR_CLIENT_H_
+#define COMPONENTS_MEMORY_COORDINATOR_CHILD_BLINK_MEMORY_COORDINATOR_CLIENT_H_
+
+#include "components/memory_coordinator/common/memory_coordinator_client.h"
+
+namespace memory_coordinator {
+
+// A MemoryCoordinatorClient for Blink.
+class BlinkMemoryCoordinatorClient : public MemoryCoordinatorClient {
+ public:
+ BlinkMemoryCoordinatorClient();
+ ~BlinkMemoryCoordinatorClient() override;
+
+ // MemoryCoordinatorClient implementation:
+ void OnMemoryStateChange(mojom::MemoryState state) override;
+};
+
+} // namespace memory_coordinator
+
+#endif // COMPONENTS_MEMORY_COORDINATOR_CHILD_BLINK_MEMORY_COORDINATOR_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698