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

Side by Side Diff: ppapi/proxy/ppb_flash_net_connector_proxy.h

Issue 7740038: Use macros to define pepper interfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New patch Created 9 years, 3 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/ppb_flash_menu_proxy.cc ('k') | ppapi/proxy/ppb_flash_net_connector_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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_PROXY_PPB_FLASH_NET_CONNECTOR_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_FLASH_NET_CONNECTOR_PROXY_H_
6 #define PPAPI_PROXY_PPB_FLASH_NET_CONNECTOR_PROXY_H_ 6 #define PPAPI_PROXY_PPB_FLASH_NET_CONNECTOR_PROXY_H_
7 7
8 #include "base/platform_file.h" 8 #include "base/platform_file.h"
9 #include "ipc/ipc_platform_file.h" 9 #include "ipc/ipc_platform_file.h"
10 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/cpp/completion_callback.h" 11 #include "ppapi/cpp/completion_callback.h"
12 #include "ppapi/proxy/interface_proxy.h" 12 #include "ppapi/proxy/interface_proxy.h"
13 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" 13 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
14 14
15 struct PPB_Flash_NetConnector; 15 struct PPB_Flash_NetConnector;
16 16
17 namespace ppapi { 17 namespace ppapi {
18 18
19 class HostResource; 19 class HostResource;
20 20
21 namespace proxy { 21 namespace proxy {
22 22
23 class PPB_Flash_NetConnector_Proxy : public InterfaceProxy { 23 class PPB_Flash_NetConnector_Proxy : public InterfaceProxy {
24 public: 24 public:
25 PPB_Flash_NetConnector_Proxy(Dispatcher* dispatcher, 25 PPB_Flash_NetConnector_Proxy(Dispatcher* dispatcher);
26 const void* target_interface);
27 virtual ~PPB_Flash_NetConnector_Proxy(); 26 virtual ~PPB_Flash_NetConnector_Proxy();
28 27
29 static const Info* GetInfo(); 28 static const Info* GetInfo();
30 29
31 static PP_Resource CreateProxyResource(PP_Instance instance); 30 static PP_Resource CreateProxyResource(PP_Instance instance);
32 31
33 // InterfaceProxy implementation. 32 // InterfaceProxy implementation.
34 virtual bool OnMessageReceived(const IPC::Message& msg); 33 virtual bool OnMessageReceived(const IPC::Message& msg);
35 34
36 private: 35 private:
(...skipping 18 matching lines...) Expand all
55 void OnCompleteCallbackInHost(int32_t result, ConnectCallbackInfo* info); 54 void OnCompleteCallbackInHost(int32_t result, ConnectCallbackInfo* info);
56 55
57 pp::CompletionCallbackFactory<PPB_Flash_NetConnector_Proxy, 56 pp::CompletionCallbackFactory<PPB_Flash_NetConnector_Proxy,
58 ProxyNonThreadSafeRefCount> callback_factory_; 57 ProxyNonThreadSafeRefCount> callback_factory_;
59 }; 58 };
60 59
61 } // namespace proxy 60 } // namespace proxy
62 } // namespace ppapi 61 } // namespace ppapi
63 62
64 #endif // PPAPI_PROXY_PPB_FLASH_NET_CONNECTOR_PROXY_H_ 63 #endif // PPAPI_PROXY_PPB_FLASH_NET_CONNECTOR_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_flash_menu_proxy.cc ('k') | ppapi/proxy/ppb_flash_net_connector_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698