Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |