| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #include "ppapi/c/ppb_url_request_info.h" | 59 #include "ppapi/c/ppb_url_request_info.h" |
| 60 #include "ppapi/c/ppb_url_response_info.h" | 60 #include "ppapi/c/ppb_url_response_info.h" |
| 61 #include "ppapi/c/ppb_var.h" | 61 #include "ppapi/c/ppb_var.h" |
| 62 #include "ppapi/c/ppb_var_array.h" | 62 #include "ppapi/c/ppb_var_array.h" |
| 63 #include "ppapi/c/ppb_var_array_buffer.h" | 63 #include "ppapi/c/ppb_var_array_buffer.h" |
| 64 #include "ppapi/c/ppb_var_dictionary.h" | 64 #include "ppapi/c/ppb_var_dictionary.h" |
| 65 #include "ppapi/c/ppb_video_decoder.h" | 65 #include "ppapi/c/ppb_video_decoder.h" |
| 66 #include "ppapi/c/ppb_video_encoder.h" | 66 #include "ppapi/c/ppb_video_encoder.h" |
| 67 #include "ppapi/c/ppb_video_frame.h" | 67 #include "ppapi/c/ppb_video_frame.h" |
| 68 #include "ppapi/c/ppb_view.h" | 68 #include "ppapi/c/ppb_view.h" |
| 69 #include "ppapi/c/ppb_vpn_provider.h" |
| 69 #include "ppapi/c/pp_errors.h" | 70 #include "ppapi/c/pp_errors.h" |
| 70 #include "ppapi/c/ppp_instance.h" | 71 #include "ppapi/c/ppp_instance.h" |
| 71 #include "ppapi/c/private/ppb_camera_capabilities_private.h" | 72 #include "ppapi/c/private/ppb_camera_capabilities_private.h" |
| 72 #include "ppapi/c/private/ppb_camera_device_private.h" | 73 #include "ppapi/c/private/ppb_camera_device_private.h" |
| 73 #include "ppapi/c/private/ppb_content_decryptor_private.h" | 74 #include "ppapi/c/private/ppb_content_decryptor_private.h" |
| 74 #include "ppapi/c/private/ppb_ext_crx_file_system_private.h" | 75 #include "ppapi/c/private/ppb_ext_crx_file_system_private.h" |
| 75 #include "ppapi/c/private/ppb_file_io_private.h" | 76 #include "ppapi/c/private/ppb_file_io_private.h" |
| 76 #include "ppapi/c/private/ppb_file_ref_private.h" | 77 #include "ppapi/c/private/ppb_file_ref_private.h" |
| 77 #include "ppapi/c/private/ppb_find_private.h" | 78 #include "ppapi/c/private/ppb_find_private.h" |
| 78 #include "ppapi/c/private/ppb_flash_clipboard.h" | 79 #include "ppapi/c/private/ppb_flash_clipboard.h" |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 | 409 |
| 409 int InterfaceList::HashInterfaceName(const std::string& name) { | 410 int InterfaceList::HashInterfaceName(const std::string& name) { |
| 410 uint32 data = base::Hash(name.c_str(), name.size()); | 411 uint32 data = base::Hash(name.c_str(), name.size()); |
| 411 // Strip off the signed bit because UMA doesn't support negative values, | 412 // Strip off the signed bit because UMA doesn't support negative values, |
| 412 // but takes a signed int as input. | 413 // but takes a signed int as input. |
| 413 return static_cast<int>(data & 0x7fffffff); | 414 return static_cast<int>(data & 0x7fffffff); |
| 414 } | 415 } |
| 415 | 416 |
| 416 } // namespace proxy | 417 } // namespace proxy |
| 417 } // namespace ppapi | 418 } // namespace ppapi |
| OLD | NEW |