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

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: 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 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_memory.moj om.h"
14
15 namespace discardable_memory {
16
17 class DISCARDABLE_MEMORY_EXPORT DiscardableSharedMemoryManagerProxy
18 : public NON_EXPORTED_BASE(mojom::DiscardableSharedMemoryManager) {
19 public:
20 DiscardableSharedMemoryManagerProxy();
21 ~DiscardableSharedMemoryManagerProxy() override;
22
23 static void Create(mojom::DiscardableSharedMemoryManagerRequest request);
24
25 // mojom::DiscardableSharedMemoryManager overrids:
reveman 2016/11/11 20:17:27 s/overrids/overrides/
Peng 2016/11/11 22:50:35 Done.
26 void AllocateLockedDiscardableSharedMemory(
27 uint32_t size,
28 int32_t id,
29 const AllocateLockedDiscardableSharedMemoryCallback& callback) override;
30 void DeletedDiscardableSharedMemory(int32_t id) override;
31
32 private:
33 const int32_t client_id_;
34
35 DISALLOW_COPY_AND_ASSIGN(DiscardableSharedMemoryManagerProxy);
36 };
37
38 } // namespace discardable_memory
39
40 #endif // COMPONENTS_DISCARDABLE_MEMORY_SERVICE_DISCARDABLE_SHARED_MEMORY_MANAG ER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698