OLD | NEW |
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 #include "ppapi/proxy/interface_list.h" | 5 #include "ppapi/proxy/interface_list.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "ppapi/c/dev/ppb_alarms_dev.h" | 9 #include "ppapi/c/dev/ppb_alarms_dev.h" |
10 #include "ppapi/c/dev/ppb_audio_input_dev.h" | 10 #include "ppapi/c/dev/ppb_audio_input_dev.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "ppapi/c/dev/ppb_var_deprecated.h" | 29 #include "ppapi/c/dev/ppb_var_deprecated.h" |
30 #include "ppapi/c/dev/ppb_var_resource_dev.h" | 30 #include "ppapi/c/dev/ppb_var_resource_dev.h" |
31 #include "ppapi/c/dev/ppb_video_capture_dev.h" | 31 #include "ppapi/c/dev/ppb_video_capture_dev.h" |
32 #include "ppapi/c/dev/ppb_view_dev.h" | 32 #include "ppapi/c/dev/ppb_view_dev.h" |
33 #include "ppapi/c/extensions/dev/ppb_ext_socket_dev.h" | 33 #include "ppapi/c/extensions/dev/ppb_ext_socket_dev.h" |
34 #include "ppapi/c/ppb_audio_config.h" | 34 #include "ppapi/c/ppb_audio_config.h" |
35 #include "ppapi/c/ppb_audio.h" | 35 #include "ppapi/c/ppb_audio.h" |
36 #include "ppapi/c/ppb_console.h" | 36 #include "ppapi/c/ppb_console.h" |
37 #include "ppapi/c/ppb_core.h" | 37 #include "ppapi/c/ppb_core.h" |
38 #include "ppapi/c/ppb_file_io.h" | 38 #include "ppapi/c/ppb_file_io.h" |
| 39 #include "ppapi/c/ppb_file_mapping.h" |
39 #include "ppapi/c/ppb_file_ref.h" | 40 #include "ppapi/c/ppb_file_ref.h" |
40 #include "ppapi/c/ppb_file_system.h" | 41 #include "ppapi/c/ppb_file_system.h" |
41 #include "ppapi/c/ppb_fullscreen.h" | 42 #include "ppapi/c/ppb_fullscreen.h" |
42 #include "ppapi/c/ppb_graphics_2d.h" | 43 #include "ppapi/c/ppb_graphics_2d.h" |
43 #include "ppapi/c/ppb_host_resolver.h" | 44 #include "ppapi/c/ppb_host_resolver.h" |
44 #include "ppapi/c/ppb_image_data.h" | 45 #include "ppapi/c/ppb_image_data.h" |
45 #include "ppapi/c/ppb_input_event.h" | 46 #include "ppapi/c/ppb_input_event.h" |
46 #include "ppapi/c/ppb_instance.h" | 47 #include "ppapi/c/ppb_instance.h" |
47 #include "ppapi/c/ppb_message_loop.h" | 48 #include "ppapi/c/ppb_message_loop.h" |
48 #include "ppapi/c/ppb_messaging.h" | 49 #include "ppapi/c/ppb_messaging.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 Permission current_required_permission = PERMISSION_PRIVATE; | 187 Permission current_required_permission = PERMISSION_PRIVATE; |
187 #include "ppapi/thunk/interfaces_ppb_private.h" | 188 #include "ppapi/thunk/interfaces_ppb_private.h" |
188 } | 189 } |
189 { | 190 { |
190 #if !defined(OS_NACL) | 191 #if !defined(OS_NACL) |
191 Permission current_required_permission = PERMISSION_FLASH; | 192 Permission current_required_permission = PERMISSION_FLASH; |
192 #include "ppapi/thunk/interfaces_ppb_private_flash.h" | 193 #include "ppapi/thunk/interfaces_ppb_private_flash.h" |
193 #endif // !defined(OS_NACL) | 194 #endif // !defined(OS_NACL) |
194 } | 195 } |
195 { | 196 { |
196 // TODO(teravest): These lines should be uncommented when a dev channel | 197 Permission current_required_permission = PERMISSION_DEV_CHANNEL; |
197 // interface is added. They're commented right now because they cause an | 198 #include "ppapi/thunk/interfaces_ppb_public_dev_channel.h" |
198 // unused variable warning. | |
199 // | |
200 // Permission current_required_permission = PERMISSION_DEV_CHANNEL; | |
201 // #include "ppapi/thunk/interfaces_ppb_public_dev_channel.h" | |
202 } | 199 } |
203 | 200 |
204 #undef PROXIED_API | 201 #undef PROXIED_API |
205 #undef PROXIED_IFACE | 202 #undef PROXIED_IFACE |
206 | 203 |
207 // Manually add some special proxies. Some of these don't have interfaces | 204 // Manually add some special proxies. Some of these don't have interfaces |
208 // that they support, so aren't covered by the macros above, but have proxies | 205 // that they support, so aren't covered by the macros above, but have proxies |
209 // for message routing. Others have different implementations between the | 206 // for message routing. Others have different implementations between the |
210 // proxy and the impl and there's no obvious message routing. | 207 // proxy and the impl and there's no obvious message routing. |
211 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create); | 208 AddProxy(API_ID_RESOURCE_CREATION, &ResourceCreationProxy::Create); |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 } | 356 } |
360 | 357 |
361 void InterfaceList::AddPPP(const char* name, | 358 void InterfaceList::AddPPP(const char* name, |
362 const void* iface) { | 359 const void* iface) { |
363 DCHECK(name_to_plugin_info_.find(name) == name_to_plugin_info_.end()); | 360 DCHECK(name_to_plugin_info_.find(name) == name_to_plugin_info_.end()); |
364 name_to_plugin_info_[name] = InterfaceInfo(iface, PERMISSION_NONE); | 361 name_to_plugin_info_[name] = InterfaceInfo(iface, PERMISSION_NONE); |
365 } | 362 } |
366 | 363 |
367 } // namespace proxy | 364 } // namespace proxy |
368 } // namespace ppapi | 365 } // namespace ppapi |
OLD | NEW |