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

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

Issue 252663002: Track plugin input event latency (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: move InputEventPriavte interface to terfaces_ppb_private.h Created 6 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/interface_list.h" 5 #include "ppapi/proxy/interface_list.h"
6 6
7 #include "base/hash.h" 7 #include "base/hash.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "ppapi/c/dev/ppb_alarms_dev.h" 10 #include "ppapi/c/dev/ppb_alarms_dev.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 #include "ppapi/c/private/ppb_flash_file.h" 79 #include "ppapi/c/private/ppb_flash_file.h"
80 #include "ppapi/c/private/ppb_flash_font_file.h" 80 #include "ppapi/c/private/ppb_flash_font_file.h"
81 #include "ppapi/c/private/ppb_flash_fullscreen.h" 81 #include "ppapi/c/private/ppb_flash_fullscreen.h"
82 #include "ppapi/c/private/ppb_flash.h" 82 #include "ppapi/c/private/ppb_flash.h"
83 #include "ppapi/c/private/ppb_flash_device_id.h" 83 #include "ppapi/c/private/ppb_flash_device_id.h"
84 #include "ppapi/c/private/ppb_flash_drm.h" 84 #include "ppapi/c/private/ppb_flash_drm.h"
85 #include "ppapi/c/private/ppb_flash_menu.h" 85 #include "ppapi/c/private/ppb_flash_menu.h"
86 #include "ppapi/c/private/ppb_flash_message_loop.h" 86 #include "ppapi/c/private/ppb_flash_message_loop.h"
87 #include "ppapi/c/private/ppb_flash_print.h" 87 #include "ppapi/c/private/ppb_flash_print.h"
88 #include "ppapi/c/private/ppb_host_resolver_private.h" 88 #include "ppapi/c/private/ppb_host_resolver_private.h"
89 #include "ppapi/c/private/ppb_input_event_private.h"
89 #include "ppapi/c/private/ppb_isolated_file_system_private.h" 90 #include "ppapi/c/private/ppb_isolated_file_system_private.h"
90 #include "ppapi/c/private/ppb_net_address_private.h" 91 #include "ppapi/c/private/ppb_net_address_private.h"
91 #include "ppapi/c/private/ppb_output_protection_private.h" 92 #include "ppapi/c/private/ppb_output_protection_private.h"
92 #include "ppapi/c/private/ppb_pdf.h" 93 #include "ppapi/c/private/ppb_pdf.h"
93 #include "ppapi/c/private/ppb_platform_verification_private.h" 94 #include "ppapi/c/private/ppb_platform_verification_private.h"
94 #include "ppapi/c/private/ppb_talk_private.h" 95 #include "ppapi/c/private/ppb_talk_private.h"
95 #include "ppapi/c/private/ppb_tcp_server_socket_private.h" 96 #include "ppapi/c/private/ppb_tcp_server_socket_private.h"
96 #include "ppapi/c/private/ppb_tcp_socket_private.h" 97 #include "ppapi/c/private/ppb_tcp_socket_private.h"
97 #include "ppapi/c/private/ppb_testing_private.h" 98 #include "ppapi/c/private/ppb_testing_private.h"
98 #include "ppapi/c/private/ppb_udp_socket_private.h" 99 #include "ppapi/c/private/ppb_udp_socket_private.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 // static 392 // static
392 int InterfaceList::HashInterfaceName(const std::string& name) { 393 int InterfaceList::HashInterfaceName(const std::string& name) {
393 uint32 data = base::Hash(name.c_str(), name.size()); 394 uint32 data = base::Hash(name.c_str(), name.size());
394 // Strip off the signed bit because UMA doesn't support negative values, 395 // Strip off the signed bit because UMA doesn't support negative values,
395 // but takes a signed int as input. 396 // but takes a signed int as input.
396 return static_cast<int>(data & 0x7fffffff); 397 return static_cast<int>(data & 0x7fffffff);
397 } 398 }
398 399
399 } // namespace proxy 400 } // namespace proxy
400 } // namespace ppapi 401 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698