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

Unified Diff: components/discardable_memory/service/discardable_shared_memory_manager_proxy.h

Issue 2485623002: discardable_memory: Using mojo IPC to replace Chrome IPC (Closed)
Patch Set: Update Created 4 years, 1 month 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/discardable_memory/service/discardable_shared_memory_manager_proxy.h
diff --git a/components/discardable_memory/service/discardable_shared_memory_manager_proxy.h b/components/discardable_memory/service/discardable_shared_memory_manager_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..04b747af4674e214a4a42b636c3427e0063b45ad
--- /dev/null
+++ b/components/discardable_memory/service/discardable_shared_memory_manager_proxy.h
@@ -0,0 +1,40 @@
+// 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_DISCARDABLE_MEMORY_SERVICE_DISCARDABLE_SHARED_MEMORY_MANAGER_PROXY_H_
+#define COMPONENTS_DISCARDABLE_MEMORY_SERVICE_DISCARDABLE_SHARED_MEMORY_MANAGER_PROXY_H_
+
+#include <stddef.h>
+#include <stdint.h>
+
+#include "base/macros.h"
+#include "components/discardable_memory/common/discardable_memory_export.h"
+#include "components/discardable_memory/public/interfaces/discardable_memory.mojom.h"
+
+namespace discardable_memory {
+
+class DISCARDABLE_MEMORY_EXPORT DiscardableSharedMemoryManagerProxy
+ : public NON_EXPORTED_BASE(mojom::DiscardableSharedMemoryManager) {
+ public:
+ DiscardableSharedMemoryManagerProxy();
+ ~DiscardableSharedMemoryManagerProxy() override;
+
+ static void Create(mojom::DiscardableSharedMemoryManagerRequest request);
+
+ // mojom::DiscardableSharedMemoryManager overrids:
reveman 2016/11/11 20:17:27 s/overrids/overrides/
Peng 2016/11/11 22:50:35 Done.
+ void AllocateLockedDiscardableSharedMemory(
+ uint32_t size,
+ int32_t id,
+ const AllocateLockedDiscardableSharedMemoryCallback& callback) override;
+ void DeletedDiscardableSharedMemory(int32_t id) override;
+
+ private:
+ const int32_t client_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(DiscardableSharedMemoryManagerProxy);
+};
+
+} // namespace discardable_memory
+
+#endif // COMPONENTS_DISCARDABLE_MEMORY_SERVICE_DISCARDABLE_SHARED_MEMORY_MANAGER_PROXY_H_

Powered by Google App Engine
This is Rietveld 408576698