| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PPAPI_PPB_MEMORY_PROXY_H_ | 5 #ifndef PPAPI_PPB_MEMORY_PROXY_H_ |
| 6 #define PPAPI_PPB_MEMORY_PROXY_H_ | 6 #define PPAPI_PPB_MEMORY_PROXY_H_ |
| 7 | 7 |
| 8 #include "ppapi/proxy/interface_proxy.h" | 8 #include "ppapi/proxy/interface_proxy.h" |
| 9 | 9 |
| 10 struct PPB_Memory_Dev; | 10 struct PPB_Memory_Dev; |
| 11 | 11 |
| 12 namespace pp { | 12 namespace ppapi { |
| 13 namespace proxy { | 13 namespace proxy { |
| 14 | 14 |
| 15 class PPB_Memory_Proxy : public InterfaceProxy { | 15 class PPB_Memory_Proxy : public InterfaceProxy { |
| 16 public: | 16 public: |
| 17 PPB_Memory_Proxy(Dispatcher* dispatcher, | 17 PPB_Memory_Proxy(Dispatcher* dispatcher, |
| 18 const void* target_interface); | 18 const void* target_interface); |
| 19 virtual ~PPB_Memory_Proxy(); | 19 virtual ~PPB_Memory_Proxy(); |
| 20 | 20 |
| 21 static const Info* GetInfo(); | 21 static const Info* GetInfo(); |
| 22 | 22 |
| 23 const PPB_Memory_Dev* ppb_memory_target() const { | 23 const PPB_Memory_Dev* ppb_memory_target() const { |
| 24 return static_cast<const PPB_Memory_Dev*>(target_interface()); | 24 return static_cast<const PPB_Memory_Dev*>(target_interface()); |
| 25 } | 25 } |
| 26 | 26 |
| 27 // InterfaceProxy implementation. In this case, no messages are sent or | 27 // InterfaceProxy implementation. In this case, no messages are sent or |
| 28 // received, so this always returns false. | 28 // received, so this always returns false. |
| 29 virtual bool OnMessageReceived(const IPC::Message& msg); | 29 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 30 | 30 |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace proxy | 33 } // namespace proxy |
| 34 } // namespace pp | 34 } // namespace ppapi |
| 35 | 35 |
| 36 #endif // PPAPI_PPB_MEMORY_PROXY_H_ | 36 #endif // PPAPI_PPB_MEMORY_PROXY_H_ |
| OLD | NEW |