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_URL_UTIL_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_URL_UTIL_PROXY_H_ |
| 7 |
| 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "ppapi/proxy/interface_proxy.h" |
| 10 #include "ppapi/proxy/serialized_var.h" |
| 11 |
| 12 struct PPB_URLUtil_Dev; |
| 13 |
| 14 namespace pp { |
| 15 namespace proxy { |
| 16 |
| 17 class PPB_URLUtil_Proxy : public InterfaceProxy { |
| 18 public: |
| 19 PPB_URLUtil_Proxy(Dispatcher* dispatcher, const void* target_interface); |
| 20 virtual ~PPB_URLUtil_Proxy(); |
| 21 |
| 22 static const Info* GetInfo(); |
| 23 |
| 24 const PPB_URLUtil_Dev* ppb_url_util_target() const { |
| 25 return static_cast<const PPB_URLUtil_Dev*>(target_interface()); |
| 26 } |
| 27 |
| 28 // InterfaceProxy implementation. |
| 29 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 30 |
| 31 private: |
| 32 // Message handlers. |
| 33 void OnMsgResolveRelativeToDocument(PP_Instance instance, |
| 34 SerializedVarReceiveInput relative, |
| 35 SerializedVarReturnValue result); |
| 36 void OnMsgDocumentCanRequest(PP_Instance instance, |
| 37 SerializedVarReceiveInput url, |
| 38 PP_Bool* result); |
| 39 void OnMsgDocumentCanAccessDocument(PP_Instance active, |
| 40 PP_Instance target, |
| 41 PP_Bool* result); |
| 42 void OnMsgGetDocumentURL(PP_Instance instance, |
| 43 SerializedVarReturnValue result); |
| 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(PPB_URLUtil_Proxy); |
| 46 }; |
| 47 |
| 48 } // namespace proxy |
| 49 } // namespace pp |
| 50 |
| 51 #endif // PPAPI_PROXY_PPB_URL_UTIL_PROXY_H_ |
| 52 |
OLD | NEW |