| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/hash.h" | 9 #include "base/hash.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 #include "ppapi/c/ppb_url_request_info.h" | 63 #include "ppapi/c/ppb_url_request_info.h" |
| 64 #include "ppapi/c/ppb_url_response_info.h" | 64 #include "ppapi/c/ppb_url_response_info.h" |
| 65 #include "ppapi/c/ppb_var.h" | 65 #include "ppapi/c/ppb_var.h" |
| 66 #include "ppapi/c/ppb_var_array.h" | 66 #include "ppapi/c/ppb_var_array.h" |
| 67 #include "ppapi/c/ppb_var_array_buffer.h" | 67 #include "ppapi/c/ppb_var_array_buffer.h" |
| 68 #include "ppapi/c/ppb_var_dictionary.h" | 68 #include "ppapi/c/ppb_var_dictionary.h" |
| 69 #include "ppapi/c/ppb_video_decoder.h" | 69 #include "ppapi/c/ppb_video_decoder.h" |
| 70 #include "ppapi/c/ppb_video_encoder.h" | 70 #include "ppapi/c/ppb_video_encoder.h" |
| 71 #include "ppapi/c/ppb_video_frame.h" | 71 #include "ppapi/c/ppb_video_frame.h" |
| 72 #include "ppapi/c/ppb_view.h" | 72 #include "ppapi/c/ppb_view.h" |
| 73 #include "ppapi/c/ppb_vpn_provider.h" |
| 73 #include "ppapi/c/ppp_instance.h" | 74 #include "ppapi/c/ppp_instance.h" |
| 74 #include "ppapi/c/private/ppb_camera_capabilities_private.h" | 75 #include "ppapi/c/private/ppb_camera_capabilities_private.h" |
| 75 #include "ppapi/c/private/ppb_camera_device_private.h" | 76 #include "ppapi/c/private/ppb_camera_device_private.h" |
| 76 #include "ppapi/c/private/ppb_content_decryptor_private.h" | 77 #include "ppapi/c/private/ppb_content_decryptor_private.h" |
| 77 #include "ppapi/c/private/ppb_ext_crx_file_system_private.h" | 78 #include "ppapi/c/private/ppb_ext_crx_file_system_private.h" |
| 78 #include "ppapi/c/private/ppb_file_io_private.h" | 79 #include "ppapi/c/private/ppb_file_io_private.h" |
| 79 #include "ppapi/c/private/ppb_file_ref_private.h" | 80 #include "ppapi/c/private/ppb_file_ref_private.h" |
| 80 #include "ppapi/c/private/ppb_find_private.h" | 81 #include "ppapi/c/private/ppb_find_private.h" |
| 81 #include "ppapi/c/private/ppb_flash.h" | 82 #include "ppapi/c/private/ppb_flash.h" |
| 82 #include "ppapi/c/private/ppb_flash_clipboard.h" | 83 #include "ppapi/c/private/ppb_flash_clipboard.h" |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 | 412 |
| 412 int InterfaceList::HashInterfaceName(const std::string& name) { | 413 int InterfaceList::HashInterfaceName(const std::string& name) { |
| 413 uint32_t data = base::Hash(name.c_str(), name.size()); | 414 uint32_t data = base::Hash(name.c_str(), name.size()); |
| 414 // 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, |
| 415 // but takes a signed int as input. | 416 // but takes a signed int as input. |
| 416 return static_cast<int>(data & 0x7fffffff); | 417 return static_cast<int>(data & 0x7fffffff); |
| 417 } | 418 } |
| 418 | 419 |
| 419 } // namespace proxy | 420 } // namespace proxy |
| 420 } // namespace ppapi | 421 } // namespace ppapi |
| OLD | NEW |