| 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/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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 #include "ppapi/c/private/ppb_flash_file.h" | 78 #include "ppapi/c/private/ppb_flash_file.h" |
| 79 #include "ppapi/c/private/ppb_flash_font_file.h" | 79 #include "ppapi/c/private/ppb_flash_font_file.h" |
| 80 #include "ppapi/c/private/ppb_flash_fullscreen.h" | 80 #include "ppapi/c/private/ppb_flash_fullscreen.h" |
| 81 #include "ppapi/c/private/ppb_flash.h" | 81 #include "ppapi/c/private/ppb_flash.h" |
| 82 #include "ppapi/c/private/ppb_flash_device_id.h" | 82 #include "ppapi/c/private/ppb_flash_device_id.h" |
| 83 #include "ppapi/c/private/ppb_flash_drm.h" | 83 #include "ppapi/c/private/ppb_flash_drm.h" |
| 84 #include "ppapi/c/private/ppb_flash_menu.h" | 84 #include "ppapi/c/private/ppb_flash_menu.h" |
| 85 #include "ppapi/c/private/ppb_flash_message_loop.h" | 85 #include "ppapi/c/private/ppb_flash_message_loop.h" |
| 86 #include "ppapi/c/private/ppb_flash_print.h" | 86 #include "ppapi/c/private/ppb_flash_print.h" |
| 87 #include "ppapi/c/private/ppb_host_resolver_private.h" | 87 #include "ppapi/c/private/ppb_host_resolver_private.h" |
| 88 #include "ppapi/c/private/ppb_input_event_private.h" |
| 88 #include "ppapi/c/private/ppb_isolated_file_system_private.h" | 89 #include "ppapi/c/private/ppb_isolated_file_system_private.h" |
| 89 #include "ppapi/c/private/ppb_net_address_private.h" | 90 #include "ppapi/c/private/ppb_net_address_private.h" |
| 90 #include "ppapi/c/private/ppb_output_protection_private.h" | 91 #include "ppapi/c/private/ppb_output_protection_private.h" |
| 91 #include "ppapi/c/private/ppb_pdf.h" | 92 #include "ppapi/c/private/ppb_pdf.h" |
| 92 #include "ppapi/c/private/ppb_platform_verification_private.h" | 93 #include "ppapi/c/private/ppb_platform_verification_private.h" |
| 93 #include "ppapi/c/private/ppb_talk_private.h" | 94 #include "ppapi/c/private/ppb_talk_private.h" |
| 94 #include "ppapi/c/private/ppb_tcp_server_socket_private.h" | 95 #include "ppapi/c/private/ppb_tcp_server_socket_private.h" |
| 95 #include "ppapi/c/private/ppb_tcp_socket_private.h" | 96 #include "ppapi/c/private/ppb_tcp_socket_private.h" |
| 96 #include "ppapi/c/private/ppb_testing_private.h" | 97 #include "ppapi/c/private/ppb_testing_private.h" |
| 97 #include "ppapi/c/private/ppb_udp_socket_private.h" | 98 #include "ppapi/c/private/ppb_udp_socket_private.h" |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 // static | 390 // static |
| 390 int InterfaceList::HashInterfaceName(const std::string& name) { | 391 int InterfaceList::HashInterfaceName(const std::string& name) { |
| 391 uint32 data = base::Hash(name.c_str(), name.size()); | 392 uint32 data = base::Hash(name.c_str(), name.size()); |
| 392 // Strip off the signed bit because UMA doesn't support negative values, | 393 // Strip off the signed bit because UMA doesn't support negative values, |
| 393 // but takes a signed int as input. | 394 // but takes a signed int as input. |
| 394 return static_cast<int>(data & 0x7fffffff); | 395 return static_cast<int>(data & 0x7fffffff); |
| 395 } | 396 } |
| 396 | 397 |
| 397 } // namespace proxy | 398 } // namespace proxy |
| 398 } // namespace ppapi | 399 } // namespace ppapi |
| OLD | NEW |