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

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

Issue 14188019: CRX FileSystem Pepper private API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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
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/ext_crx_file_system_private_resource.h"
21 #include "ppapi/proxy/extensions_common_resource.h" 22 #include "ppapi/proxy/extensions_common_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/pdf_resource.h" 29 #include "ppapi/proxy/pdf_resource.h"
29 #include "ppapi/proxy/plugin_dispatcher.h" 30 #include "ppapi/proxy/plugin_dispatcher.h"
30 #include "ppapi/proxy/ppapi_messages.h" 31 #include "ppapi/proxy/ppapi_messages.h"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 break; 360 break;
360 case EXTENSIONS_COMMON_SINGLETON_ID: 361 case EXTENSIONS_COMMON_SINGLETON_ID:
361 new_singleton = new ExtensionsCommonResource(connection, instance); 362 new_singleton = new ExtensionsCommonResource(connection, instance);
362 break; 363 break;
363 case GAMEPAD_SINGLETON_ID: 364 case GAMEPAD_SINGLETON_ID:
364 new_singleton = new GamepadResource(connection, instance); 365 new_singleton = new GamepadResource(connection, instance);
365 break; 366 break;
366 case TRUETYPE_FONT_SINGLETON_ID: 367 case TRUETYPE_FONT_SINGLETON_ID:
367 new_singleton = new TrueTypeFontSingletonResource(connection, instance); 368 new_singleton = new TrueTypeFontSingletonResource(connection, instance);
368 break; 369 break;
370 case CRX_FILESYSTEM_SINGLETON_ID:
371 new_singleton = new ExtCrxFileSystemPrivateResource(connection, instance);
372 break;
369 // Flash/trusted resources aren't needed for NaCl. 373 // Flash/trusted resources aren't needed for NaCl.
370 #if !defined(OS_NACL) && !defined(NACL_WIN64) 374 #if !defined(OS_NACL) && !defined(NACL_WIN64)
371 case BROWSER_FONT_SINGLETON_ID: 375 case BROWSER_FONT_SINGLETON_ID:
372 new_singleton = new BrowserFontSingletonResource(connection, instance); 376 new_singleton = new BrowserFontSingletonResource(connection, instance);
373 break; 377 break;
374 case FLASH_CLIPBOARD_SINGLETON_ID: 378 case FLASH_CLIPBOARD_SINGLETON_ID:
375 new_singleton = new FlashClipboardResource(connection, instance); 379 new_singleton = new FlashClipboardResource(connection, instance);
376 break; 380 break;
377 case FLASH_FILE_SINGLETON_ID: 381 case FLASH_FILE_SINGLETON_ID:
378 new_singleton = new FlashFileResource(connection, instance); 382 new_singleton = new FlashFileResource(connection, instance);
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 PP_Instance instance) { 1246 PP_Instance instance) {
1243 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> 1247 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())->
1244 GetInstanceData(instance); 1248 GetInstanceData(instance);
1245 if (!data) 1249 if (!data)
1246 return; // Instance was probably deleted. 1250 return; // Instance was probably deleted.
1247 data->should_do_request_surrounding_text = false; 1251 data->should_do_request_surrounding_text = false;
1248 } 1252 }
1249 1253
1250 } // namespace proxy 1254 } // namespace proxy
1251 } // namespace ppapi 1255 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698