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

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

Issue 61643022: Proxy private UMA pepper interface for out-of-process and NaCl plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused histogram names Created 6 years, 11 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"
(...skipping 14 matching lines...) Expand all
25 #include "ppapi/proxy/flash_resource.h" 25 #include "ppapi/proxy/flash_resource.h"
26 #include "ppapi/proxy/gamepad_resource.h" 26 #include "ppapi/proxy/gamepad_resource.h"
27 #include "ppapi/proxy/host_dispatcher.h" 27 #include "ppapi/proxy/host_dispatcher.h"
28 #include "ppapi/proxy/isolated_file_system_private_resource.h" 28 #include "ppapi/proxy/isolated_file_system_private_resource.h"
29 #include "ppapi/proxy/network_proxy_resource.h" 29 #include "ppapi/proxy/network_proxy_resource.h"
30 #include "ppapi/proxy/pdf_resource.h" 30 #include "ppapi/proxy/pdf_resource.h"
31 #include "ppapi/proxy/plugin_dispatcher.h" 31 #include "ppapi/proxy/plugin_dispatcher.h"
32 #include "ppapi/proxy/ppapi_messages.h" 32 #include "ppapi/proxy/ppapi_messages.h"
33 #include "ppapi/proxy/serialized_var.h" 33 #include "ppapi/proxy/serialized_var.h"
34 #include "ppapi/proxy/truetype_font_singleton_resource.h" 34 #include "ppapi/proxy/truetype_font_singleton_resource.h"
35 #include "ppapi/proxy/uma_private_resource.h"
35 #include "ppapi/shared_impl/ppapi_globals.h" 36 #include "ppapi/shared_impl/ppapi_globals.h"
36 #include "ppapi/shared_impl/ppb_url_util_shared.h" 37 #include "ppapi/shared_impl/ppb_url_util_shared.h"
37 #include "ppapi/shared_impl/ppb_view_shared.h" 38 #include "ppapi/shared_impl/ppb_view_shared.h"
38 #include "ppapi/shared_impl/var.h" 39 #include "ppapi/shared_impl/var.h"
39 #include "ppapi/thunk/enter.h" 40 #include "ppapi/thunk/enter.h"
40 #include "ppapi/thunk/ppb_graphics_2d_api.h" 41 #include "ppapi/thunk/ppb_graphics_2d_api.h"
41 #include "ppapi/thunk/ppb_graphics_3d_api.h" 42 #include "ppapi/thunk/ppb_graphics_3d_api.h"
42 #include "ppapi/thunk/thunk.h" 43 #include "ppapi/thunk/thunk.h"
43 44
44 // Windows headers interfere with this file. 45 // Windows headers interfere with this file.
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 case ISOLATED_FILESYSTEM_SINGLETON_ID: 369 case ISOLATED_FILESYSTEM_SINGLETON_ID:
369 new_singleton = 370 new_singleton =
370 new IsolatedFileSystemPrivateResource(connection, instance); 371 new IsolatedFileSystemPrivateResource(connection, instance);
371 break; 372 break;
372 case NETWORK_PROXY_SINGLETON_ID: 373 case NETWORK_PROXY_SINGLETON_ID:
373 new_singleton = new NetworkProxyResource(connection, instance); 374 new_singleton = new NetworkProxyResource(connection, instance);
374 break; 375 break;
375 case TRUETYPE_FONT_SINGLETON_ID: 376 case TRUETYPE_FONT_SINGLETON_ID:
376 new_singleton = new TrueTypeFontSingletonResource(connection, instance); 377 new_singleton = new TrueTypeFontSingletonResource(connection, instance);
377 break; 378 break;
379 case UMA_SINGLETON_ID:
380 new_singleton = new UMAPrivateResource(connection, instance);
381 break;
378 // Flash/trusted resources aren't needed for NaCl. 382 // Flash/trusted resources aren't needed for NaCl.
379 #if !defined(OS_NACL) && !defined(NACL_WIN64) 383 #if !defined(OS_NACL) && !defined(NACL_WIN64)
380 case BROWSER_FONT_SINGLETON_ID: 384 case BROWSER_FONT_SINGLETON_ID:
381 new_singleton = new BrowserFontSingletonResource(connection, instance); 385 new_singleton = new BrowserFontSingletonResource(connection, instance);
382 break; 386 break;
383 case FLASH_CLIPBOARD_SINGLETON_ID: 387 case FLASH_CLIPBOARD_SINGLETON_ID:
384 new_singleton = new FlashClipboardResource(connection, instance); 388 new_singleton = new FlashClipboardResource(connection, instance);
385 break; 389 break;
386 case FLASH_FILE_SINGLETON_ID: 390 case FLASH_FILE_SINGLETON_ID:
387 new_singleton = new FlashFileResource(connection, instance); 391 new_singleton = new FlashFileResource(connection, instance);
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 PP_Instance instance) { 1269 PP_Instance instance) {
1266 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())-> 1270 InstanceData* data = static_cast<PluginDispatcher*>(dispatcher())->
1267 GetInstanceData(instance); 1271 GetInstanceData(instance);
1268 if (!data) 1272 if (!data)
1269 return; // Instance was probably deleted. 1273 return; // Instance was probably deleted.
1270 data->should_do_request_surrounding_text = false; 1274 data->should_do_request_surrounding_text = false;
1271 } 1275 }
1272 1276
1273 } // namespace proxy 1277 } // namespace proxy
1274 } // namespace ppapi 1278 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698