| 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" |
| 11 #include "ppapi/c/dev/ppb_buffer_dev.h" | 11 #include "ppapi/c/dev/ppb_buffer_dev.h" |
| 12 #include "ppapi/c/dev/ppb_char_set_dev.h" | 12 #include "ppapi/c/dev/ppb_char_set_dev.h" |
| 13 #include "ppapi/c/dev/ppb_crypto_dev.h" | 13 #include "ppapi/c/dev/ppb_crypto_dev.h" |
| 14 #include "ppapi/c/dev/ppb_cursor_control_dev.h" | 14 #include "ppapi/c/dev/ppb_cursor_control_dev.h" |
| 15 #include "ppapi/c/dev/ppb_device_ref_dev.h" | 15 #include "ppapi/c/dev/ppb_device_ref_dev.h" |
| 16 #include "ppapi/c/dev/ppb_filesystemprovider_dev.h" |
| 16 #include "ppapi/c/dev/ppb_font_dev.h" | 17 #include "ppapi/c/dev/ppb_font_dev.h" |
| 17 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h" | 18 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h" |
| 18 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" | 19 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" |
| 19 #include "ppapi/c/dev/ppb_memory_dev.h" | 20 #include "ppapi/c/dev/ppb_memory_dev.h" |
| 20 #include "ppapi/c/dev/ppb_opengles2ext_dev.h" | 21 #include "ppapi/c/dev/ppb_opengles2ext_dev.h" |
| 21 #include "ppapi/c/dev/ppb_printing_dev.h" | 22 #include "ppapi/c/dev/ppb_printing_dev.h" |
| 22 #include "ppapi/c/dev/ppb_text_input_dev.h" | 23 #include "ppapi/c/dev/ppb_text_input_dev.h" |
| 23 #include "ppapi/c/dev/ppb_trace_event_dev.h" | 24 #include "ppapi/c/dev/ppb_trace_event_dev.h" |
| 24 #include "ppapi/c/dev/ppb_truetype_font_dev.h" | 25 #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
| 25 #include "ppapi/c/dev/ppb_url_util_dev.h" | 26 #include "ppapi/c/dev/ppb_url_util_dev.h" |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 410 |
| 410 int InterfaceList::HashInterfaceName(const std::string& name) { | 411 int InterfaceList::HashInterfaceName(const std::string& name) { |
| 411 uint32 data = base::Hash(name.c_str(), name.size()); | 412 uint32 data = base::Hash(name.c_str(), name.size()); |
| 412 // Strip off the signed bit because UMA doesn't support negative values, | 413 // Strip off the signed bit because UMA doesn't support negative values, |
| 413 // but takes a signed int as input. | 414 // but takes a signed int as input. |
| 414 return static_cast<int>(data & 0x7fffffff); | 415 return static_cast<int>(data & 0x7fffffff); |
| 415 } | 416 } |
| 416 | 417 |
| 417 } // namespace proxy | 418 } // namespace proxy |
| 418 } // namespace ppapi | 419 } // namespace ppapi |
| OLD | NEW |