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

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

Issue 1093383002: [WIP] Provided file system from NACL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved several modules to chromeos folder. Created 5 years, 5 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
« no previous file with comments | « ppapi/proxy/filesystem_provider_resource_unittest.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
OLDNEW
« no previous file with comments | « ppapi/proxy/filesystem_provider_resource_unittest.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698