summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_flash_clipboard_proxy.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-22 16:08:46 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-22 16:08:46 +0000
commit56c802fa1fd078b7f43338a7be9d016ccf582750 (patch)
tree971c45407c507904ce213c8efa274a87426a7d9c /ppapi/proxy/ppb_flash_clipboard_proxy.cc
parentf574674ae65bfd387a518138ad357afa4a411a2a (diff)
downloadchromium_src-56c802fa1fd078b7f43338a7be9d016ccf582750.zip
chromium_src-56c802fa1fd078b7f43338a7be9d016ccf582750.tar.gz
chromium_src-56c802fa1fd078b7f43338a7be9d016ccf582750.tar.bz2
Convert the Flash interfaces to no longer use GetInfo.
GetInfo is deprecated. I moved all the Flash setup for the proxy into a separate function since I suspect we'll be moving this somewhere else in the future to allow a non-Flash build of the proxy. I didn't change any thunk stuff (it would be nice to convert more of these APIs) since I started and this patch got too complicated. I also changed the way the factory functions worked. I could save a bunch of macros by using a template. Yay! TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/8359010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106856 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_flash_clipboard_proxy.cc')
-rw-r--r--ppapi/proxy/ppb_flash_clipboard_proxy.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/ppapi/proxy/ppb_flash_clipboard_proxy.cc b/ppapi/proxy/ppb_flash_clipboard_proxy.cc
index 5477280..e37aff2 100644
--- a/ppapi/proxy/ppb_flash_clipboard_proxy.cc
+++ b/ppapi/proxy/ppb_flash_clipboard_proxy.cc
@@ -107,15 +107,8 @@ PPB_Flash_Clipboard_Proxy::~PPB_Flash_Clipboard_Proxy() {
}
// static
-const InterfaceProxy::Info* PPB_Flash_Clipboard_Proxy::GetInfo() {
- static const Info info = {
- &flash_clipboard_interface,
- PPB_FLASH_CLIPBOARD_INTERFACE,
- API_ID_PPB_FLASH_CLIPBOARD,
- false,
- &CreateFlashClipboardProxy
- };
- return &info;
+const PPB_Flash_Clipboard* PPB_Flash_Clipboard_Proxy::GetInterface() {
+ return &flash_clipboard_interface;
}
bool PPB_Flash_Clipboard_Proxy::OnMessageReceived(const IPC::Message& msg) {