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

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

Issue 7082036: Convert more interfaces to the new thunk system. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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
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_FILE_CHOOSER_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_
6 #define PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_ 6 #define PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/cpp/completion_callback.h" 13 #include "ppapi/cpp/completion_callback.h"
14 #include "ppapi/proxy/interface_proxy.h" 14 #include "ppapi/proxy/interface_proxy.h"
15 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h" 15 #include "ppapi/proxy/proxy_non_thread_safe_ref_count.h"
16 #include "ppapi/thunk/ppb_file_chooser_api.h"
16 17
17 struct PPB_FileChooser_Dev; 18 struct PPB_FileChooser_Dev;
18 19
19 namespace pp { 20 namespace pp {
20 namespace proxy { 21 namespace proxy {
21 22
22 class HostResource; 23 class HostResource;
23 struct PPBFileRef_CreateInfo; 24 struct PPBFileRef_CreateInfo;
24 25
25 class PPB_FileChooser_Proxy : public InterfaceProxy { 26 class PPB_FileChooser_Proxy : public InterfaceProxy {
26 public: 27 public:
27 PPB_FileChooser_Proxy(Dispatcher* dispatcher, const void* target_interface); 28 PPB_FileChooser_Proxy(Dispatcher* dispatcher, const void* target_interface);
28 virtual ~PPB_FileChooser_Proxy(); 29 virtual ~PPB_FileChooser_Proxy();
29 30
30 static const Info* GetInfo(); 31 static const Info* GetInfo();
31 32
33 static PP_Resource CreateProxyResource(
34 PP_Instance instance,
35 const PP_FileChooserOptions_Dev* options);
36
32 const PPB_FileChooser_Dev* ppb_file_chooser_target() const { 37 const PPB_FileChooser_Dev* ppb_file_chooser_target() const {
33 return static_cast<const PPB_FileChooser_Dev*>(target_interface()); 38 return static_cast<const PPB_FileChooser_Dev*>(target_interface());
34 } 39 }
35 40
36 // InterfaceProxy implementation. 41 // InterfaceProxy implementation.
37 virtual bool OnMessageReceived(const IPC::Message& msg); 42 virtual bool OnMessageReceived(const IPC::Message& msg);
38 43
39 private: 44 private:
40 // Plugin -> host message handlers. 45 // Plugin -> host message handlers.
41 void OnMsgCreate(PP_Instance instance, 46 void OnMsgCreate(PP_Instance instance,
(...skipping 15 matching lines...) Expand all
57 CompletionCallbackFactory<PPB_FileChooser_Proxy, 62 CompletionCallbackFactory<PPB_FileChooser_Proxy,
58 ProxyNonThreadSafeRefCount> callback_factory_; 63 ProxyNonThreadSafeRefCount> callback_factory_;
59 64
60 DISALLOW_COPY_AND_ASSIGN(PPB_FileChooser_Proxy); 65 DISALLOW_COPY_AND_ASSIGN(PPB_FileChooser_Proxy);
61 }; 66 };
62 67
63 } // namespace proxy 68 } // namespace proxy
64 } // namespace pp 69 } // namespace pp
65 70
66 #endif // PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_ 71 #endif // PPAPI_PROXY_PPB_FILE_CHOOSER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698