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_audio_input_dev.h" | 10 #include "ppapi/c/dev/ppb_audio_input_dev.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 #include "ppapi/c/private/ppb_flash_menu.h" | 88 #include "ppapi/c/private/ppb_flash_menu.h" |
89 #include "ppapi/c/private/ppb_flash_message_loop.h" | 89 #include "ppapi/c/private/ppb_flash_message_loop.h" |
90 #include "ppapi/c/private/ppb_flash_print.h" | 90 #include "ppapi/c/private/ppb_flash_print.h" |
91 #include "ppapi/c/private/ppb_host_resolver_private.h" | 91 #include "ppapi/c/private/ppb_host_resolver_private.h" |
92 #include "ppapi/c/private/ppb_input_event_private.h" | 92 #include "ppapi/c/private/ppb_input_event_private.h" |
93 #include "ppapi/c/private/ppb_isolated_file_system_private.h" | 93 #include "ppapi/c/private/ppb_isolated_file_system_private.h" |
94 #include "ppapi/c/private/ppb_net_address_private.h" | 94 #include "ppapi/c/private/ppb_net_address_private.h" |
95 #include "ppapi/c/private/ppb_output_protection_private.h" | 95 #include "ppapi/c/private/ppb_output_protection_private.h" |
96 #include "ppapi/c/private/ppb_pdf.h" | 96 #include "ppapi/c/private/ppb_pdf.h" |
97 #include "ppapi/c/private/ppb_platform_verification_private.h" | 97 #include "ppapi/c/private/ppb_platform_verification_private.h" |
98 #include "ppapi/c/private/ppb_talk_private.h" | |
99 #include "ppapi/c/private/ppb_tcp_server_socket_private.h" | 98 #include "ppapi/c/private/ppb_tcp_server_socket_private.h" |
100 #include "ppapi/c/private/ppb_tcp_socket_private.h" | 99 #include "ppapi/c/private/ppb_tcp_socket_private.h" |
101 #include "ppapi/c/private/ppb_testing_private.h" | 100 #include "ppapi/c/private/ppb_testing_private.h" |
102 #include "ppapi/c/private/ppb_udp_socket_private.h" | 101 #include "ppapi/c/private/ppb_udp_socket_private.h" |
103 #include "ppapi/c/private/ppb_uma_private.h" | 102 #include "ppapi/c/private/ppb_uma_private.h" |
104 #include "ppapi/c/private/ppb_video_destination_private.h" | 103 #include "ppapi/c/private/ppb_video_destination_private.h" |
105 #include "ppapi/c/private/ppb_video_source_private.h" | 104 #include "ppapi/c/private/ppb_video_source_private.h" |
106 #include "ppapi/c/private/ppb_x509_certificate_private.h" | 105 #include "ppapi/c/private/ppb_x509_certificate_private.h" |
107 #include "ppapi/c/private/ppp_content_decryptor_private.h" | 106 #include "ppapi/c/private/ppp_content_decryptor_private.h" |
108 #include "ppapi/c/trusted/ppb_broker_trusted.h" | 107 #include "ppapi/c/trusted/ppb_broker_trusted.h" |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 | 412 |
414 int InterfaceList::HashInterfaceName(const std::string& name) { | 413 int InterfaceList::HashInterfaceName(const std::string& name) { |
415 uint32 data = base::Hash(name.c_str(), name.size()); | 414 uint32 data = base::Hash(name.c_str(), name.size()); |
416 // Strip off the signed bit because UMA doesn't support negative values, | 415 // Strip off the signed bit because UMA doesn't support negative values, |
417 // but takes a signed int as input. | 416 // but takes a signed int as input. |
418 return static_cast<int>(data & 0x7fffffff); | 417 return static_cast<int>(data & 0x7fffffff); |
419 } | 418 } |
420 | 419 |
421 } // namespace proxy | 420 } // namespace proxy |
422 } // namespace ppapi | 421 } // namespace ppapi |
OLD | NEW |