OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_PROXY_PPB_CONSOLE_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_CONSOLE_PROXY_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "ppapi/c/pp_instance.h" |
| 10 #include "ppapi/proxy/interface_proxy.h" |
| 11 #include "ppapi/proxy/serialized_var.h" |
| 12 |
| 13 struct PPB_Console_Dev; |
| 14 |
| 15 namespace pp { |
| 16 namespace proxy { |
| 17 |
| 18 class SerializedVarReturnValue; |
| 19 |
| 20 class PPB_Console_Proxy : public InterfaceProxy { |
| 21 public: |
| 22 PPB_Console_Proxy(Dispatcher* dispatcher, const void* target_interface); |
| 23 virtual ~PPB_Console_Proxy(); |
| 24 |
| 25 static const Info* GetInfo(); |
| 26 |
| 27 const PPB_Console_Dev* ppb_console_target() const { |
| 28 return static_cast<const PPB_Console_Dev*>(target_interface()); |
| 29 } |
| 30 |
| 31 // InterfaceProxy implementation. |
| 32 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 33 |
| 34 private: |
| 35 // Message handlers. |
| 36 void OnMsgLog(PP_Instance instance, |
| 37 int log_level, |
| 38 SerializedVarReceiveInput value); |
| 39 void OnMsgLogWithSource(PP_Instance instance, |
| 40 int log_level, |
| 41 SerializedVarReceiveInput source, |
| 42 SerializedVarReceiveInput value); |
| 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(PPB_Console_Proxy); |
| 45 }; |
| 46 |
| 47 } // namespace proxy |
| 48 } // namespace pp |
| 49 |
| 50 #endif // PPAPI_PROXY_PPB_CONSOLE_PROXY_H_ |
OLD | NEW |