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

Side by Side Diff: ppapi/proxy/ppb_instance_proxy.cc

Issue 69663002: PPAPI: Implement PPB_FileMapping on POSIX (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix missing return Created 6 years, 10 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
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/shared_impl/resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ppapi/proxy/ppb_instance_proxy.h" 5 #include "ppapi/proxy/ppb_instance_proxy.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/pp_time.h" 10 #include "ppapi/c/pp_time.h"
11 #include "ppapi/c/pp_var.h" 11 #include "ppapi/c/pp_var.h"
12 #include "ppapi/c/ppb_audio_config.h" 12 #include "ppapi/c/ppb_audio_config.h"
13 #include "ppapi/c/ppb_instance.h" 13 #include "ppapi/c/ppb_instance.h"
14 #include "ppapi/c/ppb_messaging.h" 14 #include "ppapi/c/ppb_messaging.h"
15 #include "ppapi/c/ppb_mouse_lock.h" 15 #include "ppapi/c/ppb_mouse_lock.h"
16 #include "ppapi/c/private/pp_content_decryptor.h" 16 #include "ppapi/c/private/pp_content_decryptor.h"
17 #include "ppapi/proxy/broker_resource.h" 17 #include "ppapi/proxy/broker_resource.h"
18 #include "ppapi/proxy/browser_font_singleton_resource.h" 18 #include "ppapi/proxy/browser_font_singleton_resource.h"
19 #include "ppapi/proxy/content_decryptor_private_serializer.h" 19 #include "ppapi/proxy/content_decryptor_private_serializer.h"
20 #include "ppapi/proxy/enter_proxy.h" 20 #include "ppapi/proxy/enter_proxy.h"
21 #include "ppapi/proxy/extensions_common_resource.h" 21 #include "ppapi/proxy/extensions_common_resource.h"
22 #include "ppapi/proxy/file_mapping_resource.h"
22 #include "ppapi/proxy/flash_clipboard_resource.h" 23 #include "ppapi/proxy/flash_clipboard_resource.h"
23 #include "ppapi/proxy/flash_file_resource.h" 24 #include "ppapi/proxy/flash_file_resource.h"
24 #include "ppapi/proxy/flash_fullscreen_resource.h" 25 #include "ppapi/proxy/flash_fullscreen_resource.h"
25 #include "ppapi/proxy/flash_resource.h" 26 #include "ppapi/proxy/flash_resource.h"
26 #include "ppapi/proxy/gamepad_resource.h" 27 #include "ppapi/proxy/gamepad_resource.h"
27 #include "ppapi/proxy/host_dispatcher.h" 28 #include "ppapi/proxy/host_dispatcher.h"
28 #include "ppapi/proxy/isolated_file_system_private_resource.h" 29 #include "ppapi/proxy/isolated_file_system_private_resource.h"
29 #include "ppapi/proxy/network_proxy_resource.h" 30 #include "ppapi/proxy/network_proxy_resource.h"
30 #include "ppapi/proxy/pdf_resource.h" 31 #include "ppapi/proxy/pdf_resource.h"
31 #include "ppapi/proxy/plugin_dispatcher.h" 32 #include "ppapi/proxy/plugin_dispatcher.h"
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 scoped_refptr<Resource> new_singleton; 357 scoped_refptr<Resource> new_singleton;
357 Connection connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 358 Connection connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
358 359
359 switch (id) { 360 switch (id) {
360 case BROKER_SINGLETON_ID: 361 case BROKER_SINGLETON_ID:
361 new_singleton = new BrokerResource(connection, instance); 362 new_singleton = new BrokerResource(connection, instance);
362 break; 363 break;
363 case EXTENSIONS_COMMON_SINGLETON_ID: 364 case EXTENSIONS_COMMON_SINGLETON_ID:
364 new_singleton = new ExtensionsCommonResource(connection, instance); 365 new_singleton = new ExtensionsCommonResource(connection, instance);
365 break; 366 break;
367 case FILE_MAPPING_SINGLETON_ID:
368 new_singleton = new FileMappingResource(connection, instance);
369 break;
366 case GAMEPAD_SINGLETON_ID: 370 case GAMEPAD_SINGLETON_ID:
367 new_singleton = new GamepadResource(connection, instance); 371 new_singleton = new GamepadResource(connection, instance);
368 break; 372 break;
369 case ISOLATED_FILESYSTEM_SINGLETON_ID: 373 case ISOLATED_FILESYSTEM_SINGLETON_ID:
370 new_singleton = 374 new_singleton =
371 new IsolatedFileSystemPrivateResource(connection, instance); 375 new IsolatedFileSystemPrivateResource(connection, instance);
372 break; 376 break;
373 case NETWORK_PROXY_SINGLETON_ID: 377 case NETWORK_PROXY_SINGLETON_ID:
374 new_singleton = new NetworkProxyResource(connection, instance); 378 new_singleton = new NetworkProxyResource(connection, instance);
375 break; 379 break;
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 PP_Instance instance) { 1273 PP_Instance instance) {
1270 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> 1274 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())->
1271 GetInstanceData(instance); 1275 GetInstanceData(instance);
1272 if (!data) 1276 if (!data)
1273 return; // Instance was probably deleted. 1277 return; // Instance was probably deleted.
1274 data->should_do_request_surrounding_text = false; 1278 data->should_do_request_surrounding_text = false;
1275 } 1279 }
1276 1280
1277 } // namespace proxy 1281 } // namespace proxy
1278 } // namespace ppapi 1282 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/shared_impl/resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698