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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 #include "ppapi/c/ppb_tcp_socket.h" | 58 #include "ppapi/c/ppb_tcp_socket.h" |
59 #include "ppapi/c/ppb_text_input_controller.h" | 59 #include "ppapi/c/ppb_text_input_controller.h" |
60 #include "ppapi/c/ppb_udp_socket.h" | 60 #include "ppapi/c/ppb_udp_socket.h" |
61 #include "ppapi/c/ppb_url_loader.h" | 61 #include "ppapi/c/ppb_url_loader.h" |
62 #include "ppapi/c/ppb_url_request_info.h" | 62 #include "ppapi/c/ppb_url_request_info.h" |
63 #include "ppapi/c/ppb_url_response_info.h" | 63 #include "ppapi/c/ppb_url_response_info.h" |
64 #include "ppapi/c/ppb_var.h" | 64 #include "ppapi/c/ppb_var.h" |
65 #include "ppapi/c/ppb_var_array.h" | 65 #include "ppapi/c/ppb_var_array.h" |
66 #include "ppapi/c/ppb_var_array_buffer.h" | 66 #include "ppapi/c/ppb_var_array_buffer.h" |
67 #include "ppapi/c/ppb_var_dictionary.h" | 67 #include "ppapi/c/ppb_var_dictionary.h" |
| 68 #include "ppapi/c/ppb_video_decoder.h" |
68 #include "ppapi/c/ppb_video_frame.h" | 69 #include "ppapi/c/ppb_video_frame.h" |
69 #include "ppapi/c/ppb_view.h" | 70 #include "ppapi/c/ppb_view.h" |
70 #include "ppapi/c/pp_errors.h" | 71 #include "ppapi/c/pp_errors.h" |
71 #include "ppapi/c/ppp_instance.h" | 72 #include "ppapi/c/ppp_instance.h" |
72 #include "ppapi/c/private/ppb_content_decryptor_private.h" | 73 #include "ppapi/c/private/ppb_content_decryptor_private.h" |
73 #include "ppapi/c/private/ppb_ext_crx_file_system_private.h" | 74 #include "ppapi/c/private/ppb_ext_crx_file_system_private.h" |
74 #include "ppapi/c/private/ppb_file_io_private.h" | 75 #include "ppapi/c/private/ppb_file_io_private.h" |
75 #include "ppapi/c/private/ppb_file_ref_private.h" | 76 #include "ppapi/c/private/ppb_file_ref_private.h" |
76 #include "ppapi/c/private/ppb_find_private.h" | 77 #include "ppapi/c/private/ppb_find_private.h" |
77 #include "ppapi/c/private/ppb_flash_clipboard.h" | 78 #include "ppapi/c/private/ppb_flash_clipboard.h" |
(...skipping 311 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 |