Index: ppapi/proxy/ppb_host_resolver_private_proxy.h |
diff --git a/ppapi/proxy/ppb_host_resolver_private_proxy.h b/ppapi/proxy/ppb_host_resolver_private_proxy.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4282d3d3ca14252b84a87d5873cfbad68308c049 |
--- /dev/null |
+++ b/ppapi/proxy/ppb_host_resolver_private_proxy.h |
@@ -0,0 +1,43 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef PPAPI_PROXY_PPB_HOST_RESOLVER_PRIVATE_PROXY_H_ |
+#define PPAPI_PROXY_PPB_HOST_RESOLVER_PRIVATE_PROXY_H_ |
+ |
+#include "base/basictypes.h" |
+#include "ppapi/c/pp_instance.h" |
+#include "ppapi/c/pp_resource.h" |
+#include "ppapi/proxy/interface_proxy.h" |
+#include "ppapi/shared_impl/private/ppb_host_resolver_shared.h" |
+ |
+namespace ppapi { |
+namespace proxy { |
+ |
+class PPB_HostResolver_Private_Proxy : public InterfaceProxy { |
+ public: |
+ PPB_HostResolver_Private_Proxy(Dispatcher* dispatcher); |
+ virtual~PPB_HostResolver_Private_Proxy(); |
+ |
+ static PP_Resource CreateProxyResource(PP_Instance instance); |
+ |
+ // InterfaceProxy implementation. |
+ virtual bool OnMessageReceived(const IPC::Message& msg); |
+ |
+ static const ApiID kApiID = API_ID_PPB_HOSTRESOLVER_PRIVATE; |
+ |
+ private: |
+ // Browser->plugin message handlers. |
+ void OnMsgResolveACK(uint32 plugin_dispatcher_id, |
+ uint32 host_resolver_id, |
+ bool succeeded, |
+ const std::string& canonical_name, |
+ const ppapi::NetAddressList& net_address_list); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(PPB_HostResolver_Private_Proxy); |
+}; |
+ |
+} // namespace proxy |
+} // namespace ppapi |
+ |
+#endif // PPAPI_PROXY_PPB_HOST_RESOLVER_PRIVATE_PROXY_H_ |