Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: ppapi/proxy/interface_list.cc

Issue 2755613002: Support audio output device enumeration and selection in PPAPI (Closed)
Patch Set: Should not include local change to ppapi/generators/idl_outfile.py Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/memory/singleton.h" 12 #include "base/memory/singleton.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "ppapi/c/dev/ppb_audio_input_dev.h" 14 #include "ppapi/c/dev/ppb_audio_input_dev.h"
15 #include "ppapi/c/dev/ppb_audio_output_dev.h"
15 #include "ppapi/c/dev/ppb_buffer_dev.h" 16 #include "ppapi/c/dev/ppb_buffer_dev.h"
16 #include "ppapi/c/dev/ppb_char_set_dev.h" 17 #include "ppapi/c/dev/ppb_char_set_dev.h"
17 #include "ppapi/c/dev/ppb_crypto_dev.h" 18 #include "ppapi/c/dev/ppb_crypto_dev.h"
18 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 19 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
19 #include "ppapi/c/dev/ppb_device_ref_dev.h" 20 #include "ppapi/c/dev/ppb_device_ref_dev.h"
20 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h" 21 #include "ppapi/c/dev/ppb_gles_chromium_texture_mapping_dev.h"
21 #include "ppapi/c/dev/ppb_ime_input_event_dev.h" 22 #include "ppapi/c/dev/ppb_ime_input_event_dev.h"
22 #include "ppapi/c/dev/ppb_memory_dev.h" 23 #include "ppapi/c/dev/ppb_memory_dev.h"
23 #include "ppapi/c/dev/ppb_opengles2ext_dev.h" 24 #include "ppapi/c/dev/ppb_opengles2ext_dev.h"
24 #include "ppapi/c/dev/ppb_printing_dev.h" 25 #include "ppapi/c/dev/ppb_printing_dev.h"
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 411
411 int InterfaceList::HashInterfaceName(const std::string& name) { 412 int InterfaceList::HashInterfaceName(const std::string& name) {
412 uint32_t data = base::Hash(name.c_str(), name.size()); 413 uint32_t data = base::Hash(name.c_str(), name.size());
413 // Strip off the signed bit because UMA doesn't support negative values, 414 // Strip off the signed bit because UMA doesn't support negative values,
414 // but takes a signed int as input. 415 // but takes a signed int as input.
415 return static_cast<int>(data & 0x7fffffff); 416 return static_cast<int>(data & 0x7fffffff);
416 } 417 }
417 418
418 } // namespace proxy 419 } // namespace proxy
419 } // namespace ppapi 420 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698