summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppb_file_ref_proxy.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-14 15:43:42 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-14 15:43:42 +0000
commiteccf8031b30e3f8cf85b1e0dc82e69966afa30d5 (patch)
tree6c10625135c1fd95eb316fdbf496c5a5ee220c6e /ppapi/proxy/ppb_file_ref_proxy.h
parent1c7fa0a26fed6f48fbb2a7fe5724c5f9143610ff (diff)
downloadchromium_src-eccf8031b30e3f8cf85b1e0dc82e69966afa30d5.zip
chromium_src-eccf8031b30e3f8cf85b1e0dc82e69966afa30d5.tar.gz
chromium_src-eccf8031b30e3f8cf85b1e0dc82e69966afa30d5.tar.bz2
This implements the PPB_FileChooser resource as a new-style IPC-only resource.
Note that the new file name is file_chooser_resource in the proxy. I decided to drop the ppb_ prefix for the "new-style" files to help differentiate them, and also because it's technically wrong. PPB is an interface, and a resource "object" may support multiple interfaces. I think FooResource is easier to type and read. Review URL: https://chromiumcodereview.appspot.com/10544089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146737 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppb_file_ref_proxy.h')
-rw-r--r--ppapi/proxy/ppb_file_ref_proxy.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/ppapi/proxy/ppb_file_ref_proxy.h b/ppapi/proxy/ppb_file_ref_proxy.h
index 64febfa..e4a412e 100644
--- a/ppapi/proxy/ppb_file_ref_proxy.h
+++ b/ppapi/proxy/ppb_file_ref_proxy.h
@@ -12,6 +12,7 @@
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_time.h"
#include "ppapi/proxy/interface_proxy.h"
+#include "ppapi/proxy/ppapi_proxy_export.h"
#include "ppapi/proxy/proxy_completion_callback_factory.h"
#include "ppapi/utility/completion_callback_factory.h"
@@ -24,7 +25,8 @@ namespace proxy {
class SerializedVarReturnValue;
-class PPB_FileRef_Proxy : public InterfaceProxy {
+class PPAPI_PROXY_EXPORT PPB_FileRef_Proxy
+ : public NON_EXPORTED_BASE(InterfaceProxy) {
public:
explicit PPB_FileRef_Proxy(Dispatcher* dispatcher);
virtual ~PPB_FileRef_Proxy();
@@ -41,13 +43,10 @@ class PPB_FileRef_Proxy : public InterfaceProxy {
// "create info" for reconstitution in the plugin. This struct contains all
// the necessary information about the file ref.
//
- // This function is not static because it needs access to the particular
- // dispatcher and host interface.
- //
// Various PPAPI functions return file refs from various interfaces, so this
// function is public so anybody can send a file ref.
- void SerializeFileRef(PP_Resource file_ref,
- PPB_FileRef_CreateInfo* result);
+ static void SerializeFileRef(PP_Resource file_ref,
+ PPB_FileRef_CreateInfo* result);
// Creates a plugin resource from the given CreateInfo sent from the host.
// The value will be the result of calling SerializeFileRef on the host.