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

Side by Side Diff: webkit/plugins/ppapi/plugin_module.cc

Issue 9960083: Add a Flash API to get the device ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppb_flash_proxy.cc ('k') | webkit/plugins/ppapi/ppb_flash_impl.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 "webkit/plugins/ppapi/plugin_module.h" 5 #include "webkit/plugins/ppapi/plugin_module.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE_0_1) == 0) 309 if (strcmp(name, PPB_BUFFER_TRUSTED_INTERFACE_0_1) == 0)
310 return ::ppapi::thunk::GetPPB_BufferTrusted_0_1_Thunk(); 310 return ::ppapi::thunk::GetPPB_BufferTrusted_0_1_Thunk();
311 if (strcmp(name, PPB_CORE_INTERFACE_1_0) == 0) 311 if (strcmp(name, PPB_CORE_INTERFACE_1_0) == 0)
312 return &core_interface; 312 return &core_interface;
313 if (strcmp(name, PPB_FLASH_INTERFACE_11_0) == 0) 313 if (strcmp(name, PPB_FLASH_INTERFACE_11_0) == 0)
314 return PPB_Flash_Impl::GetInterface11(); 314 return PPB_Flash_Impl::GetInterface11();
315 if (strcmp(name, PPB_FLASH_INTERFACE_12_0) == 0) 315 if (strcmp(name, PPB_FLASH_INTERFACE_12_0) == 0)
316 return PPB_Flash_Impl::GetInterface12_0(); 316 return PPB_Flash_Impl::GetInterface12_0();
317 if (strcmp(name, PPB_FLASH_INTERFACE_12_1) == 0) 317 if (strcmp(name, PPB_FLASH_INTERFACE_12_1) == 0)
318 return PPB_Flash_Impl::GetInterface12_1(); 318 return PPB_Flash_Impl::GetInterface12_1();
319 if (strcmp(name, PPB_FLASH_INTERFACE_12_2) == 0)
320 return PPB_Flash_Impl::GetInterface12_2();
319 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_4_0) == 0) 321 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_4_0) == 0)
320 return ::ppapi::thunk::GetPPB_Flash_Clipboard_4_0_Thunk(); 322 return ::ppapi::thunk::GetPPB_Flash_Clipboard_4_0_Thunk();
321 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_0) == 0) 323 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_0) == 0)
322 return ::ppapi::thunk::GetPPB_Flash_Clipboard_3_0_Thunk(); 324 return ::ppapi::thunk::GetPPB_Flash_Clipboard_3_0_Thunk();
323 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY) == 0) 325 if (strcmp(name, PPB_FLASH_CLIPBOARD_INTERFACE_3_LEGACY) == 0)
324 return ::ppapi::thunk::GetPPB_Flash_Clipboard_3_0_Thunk(); 326 return ::ppapi::thunk::GetPPB_Flash_Clipboard_3_0_Thunk();
325 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0) 327 if (strcmp(name, PPB_FLASH_FILE_FILEREF_INTERFACE) == 0)
326 return PPB_Flash_File_FileRef_Impl::GetInterface(); 328 return PPB_Flash_File_FileRef_Impl::GetInterface();
327 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0) 329 if (strcmp(name, PPB_FLASH_FILE_MODULELOCAL_INTERFACE) == 0)
328 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); 330 return PPB_Flash_File_ModuleLocal_Impl::GetInterface();
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 616 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
615 if (retval != 0) { 617 if (retval != 0) {
616 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 618 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
617 return false; 619 return false;
618 } 620 }
619 return true; 621 return true;
620 } 622 }
621 623
622 } // namespace ppapi 624 } // namespace ppapi
623 } // namespace webkit 625 } // namespace webkit
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_flash_proxy.cc ('k') | webkit/plugins/ppapi/ppb_flash_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698