Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: ppapi/proxy/host_resolver_private_resource.h

Issue 11411357: PPB_HostResolver_Private is switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed MockPluginDelegate. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/host_resolver_private_resource.h
diff --git a/ppapi/proxy/host_resolver_private_resource.h b/ppapi/proxy/host_resolver_private_resource.h
new file mode 100644
index 0000000000000000000000000000000000000000..415ebbaab42654cd1cf6ea35d3254dcc7400a33c
--- /dev/null
+++ b/ppapi/proxy/host_resolver_private_resource.h
@@ -0,0 +1,47 @@
+// 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_HOST_RESOLVER_PRIVATE_RESOURCE_H_
+#define PPAPI_PROXY_HOST_RESOLVER_PRIVATE_RESOURCE_H_
+
+#include "base/compiler_specific.h"
+#include "ppapi/proxy/plugin_resource.h"
+#include "ppapi/proxy/ppapi_proxy_export.h"
+#include "ppapi/shared_impl/private/ppb_host_resolver_shared.h"
+#include "ppapi/thunk/ppb_host_resolver_private_api.h"
+
+namespace ppapi {
+namespace proxy {
+
+class PPAPI_PROXY_EXPORT HostResolverPrivateResource
+ : public PluginResource,
+ public PPB_HostResolver_Shared {
+ public:
+ HostResolverPrivateResource(Connection connection,
+ PP_Instance instance);
+ virtual ~HostResolverPrivateResource();
+
+ // PluginResource overrides.
+ virtual thunk::PPB_HostResolver_Private_API*
+ AsPPB_HostResolver_Private_API() OVERRIDE;
+
+ // PPB_HostResolver_Shared implementation.
+ virtual void SendResolve(const HostPortPair& host_port,
+ const PP_HostResolver_Private_Hint* hint) OVERRIDE;
+
+ private:
+ // IPC message handlers.
+ void OnPluginMsgResolveReply(
+ const ResourceMessageReplyParams& params,
+ bool succeeded,
+ const std::string& canonical_name,
+ const std::vector<PP_NetAddress_Private>& net_address_list);
+
+ DISALLOW_COPY_AND_ASSIGN(HostResolverPrivateResource);
+};
+
+} // namespace proxy
+} // namespace ppapi
+
+#endif // PPAPI_PROXY_HOST_RESOLVER_PRIVATE_RESOURCE_H_

Powered by Google App Engine
This is Rietveld 408576698