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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "ppapi/c/ppb_fullscreen.h" | 44 #include "ppapi/c/ppb_fullscreen.h" |
45 #include "ppapi/c/ppb_graphics_2d.h" | 45 #include "ppapi/c/ppb_graphics_2d.h" |
46 #include "ppapi/c/ppb_host_resolver.h" | 46 #include "ppapi/c/ppb_host_resolver.h" |
47 #include "ppapi/c/ppb_image_data.h" | 47 #include "ppapi/c/ppb_image_data.h" |
48 #include "ppapi/c/ppb_input_event.h" | 48 #include "ppapi/c/ppb_input_event.h" |
49 #include "ppapi/c/ppb_instance.h" | 49 #include "ppapi/c/ppb_instance.h" |
50 #include "ppapi/c/ppb_media_stream_audio_track.h" | 50 #include "ppapi/c/ppb_media_stream_audio_track.h" |
51 #include "ppapi/c/ppb_media_stream_video_track.h" | 51 #include "ppapi/c/ppb_media_stream_video_track.h" |
52 #include "ppapi/c/ppb_message_loop.h" | 52 #include "ppapi/c/ppb_message_loop.h" |
53 #include "ppapi/c/ppb_messaging.h" | 53 #include "ppapi/c/ppb_messaging.h" |
| 54 #include "ppapi/c/ppb_mojo.h" |
54 #include "ppapi/c/ppb_mouse_lock.h" | 55 #include "ppapi/c/ppb_mouse_lock.h" |
55 #include "ppapi/c/ppb_net_address.h" | 56 #include "ppapi/c/ppb_net_address.h" |
56 #include "ppapi/c/ppb_network_list.h" | 57 #include "ppapi/c/ppb_network_list.h" |
57 #include "ppapi/c/ppb_network_monitor.h" | 58 #include "ppapi/c/ppb_network_monitor.h" |
58 #include "ppapi/c/ppb_network_proxy.h" | 59 #include "ppapi/c/ppb_network_proxy.h" |
59 #include "ppapi/c/ppb_opengles2.h" | 60 #include "ppapi/c/ppb_opengles2.h" |
60 #include "ppapi/c/ppb_tcp_socket.h" | 61 #include "ppapi/c/ppb_tcp_socket.h" |
61 #include "ppapi/c/ppb_text_input_controller.h" | 62 #include "ppapi/c/ppb_text_input_controller.h" |
62 #include "ppapi/c/ppb_udp_socket.h" | 63 #include "ppapi/c/ppb_udp_socket.h" |
63 #include "ppapi/c/ppb_url_loader.h" | 64 #include "ppapi/c/ppb_url_loader.h" |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 | 413 |
413 int InterfaceList::HashInterfaceName(const std::string& name) { | 414 int InterfaceList::HashInterfaceName(const std::string& name) { |
414 uint32 data = base::Hash(name.c_str(), name.size()); | 415 uint32 data = base::Hash(name.c_str(), name.size()); |
415 // Strip off the signed bit because UMA doesn't support negative values, | 416 // Strip off the signed bit because UMA doesn't support negative values, |
416 // but takes a signed int as input. | 417 // but takes a signed int as input. |
417 return static_cast<int>(data & 0x7fffffff); | 418 return static_cast<int>(data & 0x7fffffff); |
418 } | 419 } |
419 | 420 |
420 } // namespace proxy | 421 } // namespace proxy |
421 } // namespace ppapi | 422 } // namespace ppapi |
OLD | NEW |