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

Side by Side Diff: ppapi/proxy/ppb_host_resolver_private_proxy.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: Sync. Created 7 years, 10 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_host_resolver_private_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 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_HOST_RESOLVER_PRIVATE_PROXY_H_
6 #define PPAPI_PROXY_PPB_HOST_RESOLVER_PRIVATE_PROXY_H_
7
8 #include "base/basictypes.h"
9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_resource.h"
11 #include "ppapi/proxy/interface_proxy.h"
12 #include "ppapi/shared_impl/private/ppb_host_resolver_shared.h"
13
14 namespace ppapi {
15 namespace proxy {
16
17 class PPB_HostResolver_Private_Proxy : public InterfaceProxy {
18 public:
19 PPB_HostResolver_Private_Proxy(Dispatcher* dispatcher);
20 virtual~PPB_HostResolver_Private_Proxy();
21
22 static PP_Resource CreateProxyResource(PP_Instance instance);
23
24 // InterfaceProxy implementation.
25 virtual bool OnMessageReceived(const IPC::Message& msg);
26
27 static const ApiID kApiID = API_ID_PPB_HOSTRESOLVER_PRIVATE;
28
29 private:
30 // Browser->plugin message handlers.
31 void OnMsgResolveACK(
32 uint32 plugin_dispatcher_id,
33 uint32 host_resolver_id,
34 bool succeeded,
35 const std::string& canonical_name,
36 const std::vector<PP_NetAddress_Private>& net_address_list);
37
38 DISALLOW_COPY_AND_ASSIGN(PPB_HostResolver_Private_Proxy);
39 };
40
41 } // namespace proxy
42 } // namespace ppapi
43
44 #endif // PPAPI_PROXY_PPB_HOST_RESOLVER_PRIVATE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_host_resolver_private_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698