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

Unified Diff: ppapi/proxy/ppp_messaging_proxy.cc

Issue 113263003: Pepper: More interface_list cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « ppapi/proxy/ppp_messaging_proxy.h ('k') | ppapi/proxy/ppp_mouse_lock_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppp_messaging_proxy.cc
diff --git a/ppapi/proxy/ppp_messaging_proxy.cc b/ppapi/proxy/ppp_messaging_proxy.cc
index 5a12419f78ae9f3291697d41e8a904559691d7a8..2a859bcc16ac93d3d3c92a546c6a025e1338a26f 100644
--- a/ppapi/proxy/ppp_messaging_proxy.cc
+++ b/ppapi/proxy/ppp_messaging_proxy.cc
@@ -45,10 +45,6 @@ static const PPP_Messaging messaging_interface = {
static const PPP_Messaging messaging_interface = {};
#endif // !defined(OS_NACL)
-InterfaceProxy* CreateMessagingProxy(Dispatcher* dispatcher) {
- return new PPP_Messaging_Proxy(dispatcher);
-}
-
} // namespace
PPP_Messaging_Proxy::PPP_Messaging_Proxy(Dispatcher* dispatcher)
@@ -64,15 +60,8 @@ PPP_Messaging_Proxy::~PPP_Messaging_Proxy() {
}
// static
-const InterfaceProxy::Info* PPP_Messaging_Proxy::GetInfo() {
- static const Info info = {
- &messaging_interface,
- PPP_MESSAGING_INTERFACE,
- API_ID_PPP_MESSAGING,
- false,
- &CreateMessagingProxy,
- };
- return &info;
+const PPP_Messaging* PPP_Messaging_Proxy::GetProxyInterface() {
+ return &messaging_interface;
}
bool PPP_Messaging_Proxy::OnMessageReceived(const IPC::Message& msg) {
« no previous file with comments | « ppapi/proxy/ppp_messaging_proxy.h ('k') | ppapi/proxy/ppp_mouse_lock_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698