| 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 #include "ppapi/proxy/ppb_url_request_info_proxy.h" | |
| 6 | |
| 7 #include "ppapi/proxy/plugin_dispatcher.h" | |
| 8 #include "ppapi/shared_impl/url_request_info_impl.h" | |
| 9 #include "ppapi/thunk/thunk.h" | |
| 10 | |
| 11 namespace ppapi { | |
| 12 namespace proxy { | |
| 13 | |
| 14 namespace { | |
| 15 | |
| 16 InterfaceProxy* CreateURLRequestInfoProxy(Dispatcher* dispatcher, | |
| 17 const void* target_interface) { | |
| 18 return new PPB_URLRequestInfo_Proxy(dispatcher, target_interface); | |
| 19 } | |
| 20 | |
| 21 } // namespace | |
| 22 | |
| 23 PPB_URLRequestInfo_Proxy::PPB_URLRequestInfo_Proxy( | |
| 24 Dispatcher* dispatcher, | |
| 25 const void* target_interface) | |
| 26 : InterfaceProxy(dispatcher, target_interface) { | |
| 27 } | |
| 28 | |
| 29 PPB_URLRequestInfo_Proxy::~PPB_URLRequestInfo_Proxy() { | |
| 30 } | |
| 31 | |
| 32 // static | |
| 33 const InterfaceProxy::Info* PPB_URLRequestInfo_Proxy::GetInfo() { | |
| 34 static const Info info = { | |
| 35 thunk::GetPPB_URLRequestInfo_Thunk(), | |
| 36 PPB_URLREQUESTINFO_INTERFACE, | |
| 37 INTERFACE_ID_PPB_URL_REQUEST_INFO, | |
| 38 false, | |
| 39 &CreateURLRequestInfoProxy, | |
| 40 }; | |
| 41 return &info; | |
| 42 } | |
| 43 | |
| 44 bool PPB_URLRequestInfo_Proxy::OnMessageReceived(const IPC::Message& msg) { | |
| 45 // No messages to handle. | |
| 46 return false; | |
| 47 } | |
| 48 | |
| 49 } // namespace proxy | |
| 50 } // namespace ppapi | |
| OLD | NEW |