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

Side by Side 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: Address review issues. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_DISCARDABLE_MEMORY_SERVICE_DISCARDABLE_SHARED_MEMORY_MANAGER_ PROXY_H_
6 #define COMPONENTS_DISCARDABLE_MEMORY_SERVICE_DISCARDABLE_SHARED_MEMORY_MANAGER_ PROXY_H_
7
8 #include <stddef.h>
9 #include <stdint.h>
10
11 #include "base/macros.h"
12 #include "components/discardable_memory/common/discardable_memory_export.h"
13 #include "components/discardable_memory/public/interfaces/discardable_shared_mem ory_manager.mojom.h"
14
15 namespace discardable_memory {
16
17 class DiscardableSharedMemoryManager;
18
19 class DISCARDABLE_MEMORY_EXPORT DiscardableSharedMemoryManagerProxy
20 : public NON_EXPORTED_BASE(mojom::DiscardableSharedMemoryManager) {
21 public:
22 DiscardableSharedMemoryManagerProxy();
23 ~DiscardableSharedMemoryManagerProxy() override;
24
25 static void Create(mojom::DiscardableSharedMemoryManagerRequest request);
reveman 2016/11/15 16:13:20 Can you replace this with a DiscardableSharedMemor
Peng 2016/11/15 19:04:05 Done.
26
27 // mojom::DiscardableSharedMemoryManager overrides:
28 void AllocateLockedDiscardableSharedMemory(
29 uint32_t size,
30 int32_t id,
31 const AllocateLockedDiscardableSharedMemoryCallback& callback) override;
32 void DeletedDiscardableSharedMemory(int32_t id) override;
33
34 private:
35 static int last_client_id_;
36
37 const int32_t client_id_;
38 ::discardable_memory::DiscardableSharedMemoryManager* manager_;
reveman 2016/11/15 16:13:20 nit: ..Manager* const manager_;
Peng 2016/11/15 19:04:05 Done.
39
40 DISALLOW_COPY_AND_ASSIGN(DiscardableSharedMemoryManagerProxy);
41 };
42
43 } // namespace discardable_memory
44
45 #endif // COMPONENTS_DISCARDABLE_MEMORY_SERVICE_DISCARDABLE_SHARED_MEMORY_MANAG ER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698