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

Side by Side Diff: webkit/plugins/ppapi/resource_creation_impl.h

Issue 10544089: Implement the file chooser as a new resource "host" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ppapi/thunk/resource_creation_api.h" 10 #include "ppapi/thunk/resource_creation_api.h"
11 #include "webkit/plugins/webkit_plugins_export.h"
11 12
12 namespace webkit { 13 namespace webkit {
13 namespace ppapi { 14 namespace ppapi {
14 15
15 class PluginInstance; 16 class PluginInstance;
16 17
17 class ResourceCreationImpl : public ::ppapi::thunk::ResourceCreationAPI { 18 class WEBKIT_PLUGINS_EXPORT ResourceCreationImpl
19 : public NON_EXPORTED_BASE(::ppapi::thunk::ResourceCreationAPI) {
18 public: 20 public:
19 explicit ResourceCreationImpl(PluginInstance* instance); 21 explicit ResourceCreationImpl(PluginInstance* instance);
20 virtual ~ResourceCreationImpl(); 22 virtual ~ResourceCreationImpl();
21 23
22 // ResourceCreationAPI implementation. 24 // ResourceCreationAPI implementation.
23 virtual PP_Resource CreateAudio(PP_Instance instance, 25 virtual PP_Resource CreateAudio(PP_Instance instance,
24 PP_Resource config_id, 26 PP_Resource config_id,
25 PPB_Audio_Callback audio_callback, 27 PPB_Audio_Callback audio_callback,
26 void* user_data) OVERRIDE; 28 void* user_data) OVERRIDE;
27 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE; 29 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) OVERRIDE;
28 virtual PP_Resource CreateAudioConfig(PP_Instance instance, 30 virtual PP_Resource CreateAudioConfig(PP_Instance instance,
29 PP_AudioSampleRate sample_rate, 31 PP_AudioSampleRate sample_rate,
30 uint32_t sample_frame_count) OVERRIDE; 32 uint32_t sample_frame_count) OVERRIDE;
31 virtual PP_Resource CreateAudioInput0_1( 33 virtual PP_Resource CreateAudioInput0_1(
32 PP_Instance instance, 34 PP_Instance instance,
33 PP_Resource config_id, 35 PP_Resource config_id,
34 PPB_AudioInput_Callback audio_input_callback, 36 PPB_AudioInput_Callback audio_input_callback,
35 void* user_data) OVERRIDE; 37 void* user_data) OVERRIDE;
36 virtual PP_Resource CreateAudioInput(PP_Instance instance) OVERRIDE; 38 virtual PP_Resource CreateAudioInput(PP_Instance instance) OVERRIDE;
37 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE; 39 virtual PP_Resource CreateBroker(PP_Instance instance) OVERRIDE;
38 virtual PP_Resource CreateBrowserFont( 40 virtual PP_Resource CreateBrowserFont(
39 PP_Instance instance, 41 PP_Instance instance,
40 const PP_BrowserFont_Trusted_Description* description) OVERRIDE; 42 const PP_BrowserFont_Trusted_Description* description) OVERRIDE;
41 virtual PP_Resource CreateBuffer(PP_Instance instance, 43 virtual PP_Resource CreateBuffer(PP_Instance instance,
42 uint32_t size) OVERRIDE; 44 uint32_t size) OVERRIDE;
43 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) OVERRIDE; 45 virtual PP_Resource CreateDirectoryReader(PP_Resource directory_ref) OVERRIDE;
44 virtual PP_Resource CreateFileChooser(
45 PP_Instance instance,
46 PP_FileChooserMode_Dev mode,
47 const char* accept_types) OVERRIDE;
48 virtual PP_Resource CreateFileIO(PP_Instance instance) OVERRIDE; 46 virtual PP_Resource CreateFileIO(PP_Instance instance) OVERRIDE;
49 virtual PP_Resource CreateFileRef(PP_Resource file_system, 47 virtual PP_Resource CreateFileRef(PP_Resource file_system,
50 const char* path) OVERRIDE; 48 const char* path) OVERRIDE;
51 virtual PP_Resource CreateFileSystem(PP_Instance instance, 49 virtual PP_Resource CreateFileSystem(PP_Instance instance,
52 PP_FileSystemType type) OVERRIDE; 50 PP_FileSystemType type) OVERRIDE;
53 virtual PP_Resource CreateFlashDeviceID(PP_Instance instance) OVERRIDE; 51 virtual PP_Resource CreateFlashDeviceID(PP_Instance instance) OVERRIDE;
54 virtual PP_Resource CreateFlashMenu(PP_Instance instance, 52 virtual PP_Resource CreateFlashMenu(PP_Instance instance,
55 const PP_Flash_Menu* menu_data) OVERRIDE; 53 const PP_Flash_Menu* menu_data) OVERRIDE;
56 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) OVERRIDE; 54 virtual PP_Resource CreateFlashMessageLoop(PP_Instance instance) OVERRIDE;
57 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance, 55 virtual PP_Resource CreateGraphics2D(PP_Instance pp_instance,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 PP_Instance instance) OVERRIDE; 129 PP_Instance instance) OVERRIDE;
132 130
133 private: 131 private:
134 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl); 132 DISALLOW_COPY_AND_ASSIGN(ResourceCreationImpl);
135 }; 133 };
136 134
137 } // namespace ppapi 135 } // namespace ppapi
138 } // namespace webkit 136 } // namespace webkit
139 137
140 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_ 138 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_CREATION_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_file_ref_impl.h ('k') | webkit/plugins/ppapi/resource_creation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698