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

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

Issue 7344009: Move the time conversion code to the PPAPI shared_impl directory and use it in (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.h ('k') | webkit/plugins/ppapi/ppb_file_io_impl.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/command_line.h" 9 #include "base/command_line.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 #include "ppapi/c/private/ppb_instance_private.h" 66 #include "ppapi/c/private/ppb_instance_private.h"
67 #include "ppapi/c/private/ppb_pdf.h" 67 #include "ppapi/c/private/ppb_pdf.h"
68 #include "ppapi/c/private/ppb_proxy_private.h" 68 #include "ppapi/c/private/ppb_proxy_private.h"
69 #include "ppapi/c/private/ppb_uma_private.h" 69 #include "ppapi/c/private/ppb_uma_private.h"
70 #include "ppapi/c/trusted/ppb_audio_trusted.h" 70 #include "ppapi/c/trusted/ppb_audio_trusted.h"
71 #include "ppapi/c/trusted/ppb_broker_trusted.h" 71 #include "ppapi/c/trusted/ppb_broker_trusted.h"
72 #include "ppapi/c/trusted/ppb_buffer_trusted.h" 72 #include "ppapi/c/trusted/ppb_buffer_trusted.h"
73 #include "ppapi/c/trusted/ppb_file_io_trusted.h" 73 #include "ppapi/c/trusted/ppb_file_io_trusted.h"
74 #include "ppapi/c/trusted/ppb_image_data_trusted.h" 74 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
75 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" 75 #include "ppapi/c/trusted/ppb_url_loader_trusted.h"
76 #include "ppapi/shared_impl/time_conversion.h"
76 #include "ppapi/thunk/enter.h" 77 #include "ppapi/thunk/enter.h"
77 #include "ppapi/thunk/thunk.h" 78 #include "ppapi/thunk/thunk.h"
78 #include "webkit/plugins/ppapi/callbacks.h" 79 #include "webkit/plugins/ppapi/callbacks.h"
79 #include "webkit/plugins/ppapi/common.h" 80 #include "webkit/plugins/ppapi/common.h"
80 #include "webkit/plugins/ppapi/ppapi_interface_factory.h" 81 #include "webkit/plugins/ppapi/ppapi_interface_factory.h"
81 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" 82 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
82 #include "webkit/plugins/ppapi/ppb_console_impl.h" 83 #include "webkit/plugins/ppapi/ppb_console_impl.h"
83 #include "webkit/plugins/ppapi/ppb_crypto_impl.h" 84 #include "webkit/plugins/ppapi/ppb_crypto_impl.h"
84 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h" 85 #include "webkit/plugins/ppapi/ppb_directory_reader_impl.h"
85 #include "webkit/plugins/ppapi/ppb_flash_clipboard_impl.h" 86 #include "webkit/plugins/ppapi/ppb_flash_clipboard_impl.h"
(...skipping 13 matching lines...) Expand all
99 #include "webkit/plugins/ppapi/ppb_uma_private_impl.h" 100 #include "webkit/plugins/ppapi/ppb_uma_private_impl.h"
100 #include "webkit/plugins/ppapi/ppb_url_util_impl.h" 101 #include "webkit/plugins/ppapi/ppb_url_util_impl.h"
101 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" 102 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h"
102 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h" 103 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h"
103 #include "webkit/plugins/ppapi/resource_tracker.h" 104 #include "webkit/plugins/ppapi/resource_tracker.h"
104 #include "webkit/plugins/ppapi/var.h" 105 #include "webkit/plugins/ppapi/var.h"
105 #include "webkit/plugins/ppapi/webkit_forwarding_impl.h" 106 #include "webkit/plugins/ppapi/webkit_forwarding_impl.h"
106 107
107 using ppapi::thunk::EnterResource; 108 using ppapi::thunk::EnterResource;
108 using ppapi::thunk::PPB_Graphics2D_API; 109 using ppapi::thunk::PPB_Graphics2D_API;
110 using ppapi::TimeTicksToPPTimeTicks;
111 using ppapi::TimeToPPTime;
109 112
110 namespace webkit { 113 namespace webkit {
111 namespace ppapi { 114 namespace ppapi {
112 115
113 namespace { 116 namespace {
114 117
115 // Maintains all currently loaded plugin libs for validating PP_Module 118 // Maintains all currently loaded plugin libs for validating PP_Module
116 // identifiers. 119 // identifiers.
117 typedef std::set<PluginModule*> PluginModuleSet; 120 typedef std::set<PluginModule*> PluginModuleSet;
118 121
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 return PPB_Flash_File_ModuleLocal_Impl::GetInterface(); 278 return PPB_Flash_File_ModuleLocal_Impl::GetInterface();
276 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0) 279 if (strcmp(name, PPB_FLASH_MENU_INTERFACE) == 0)
277 return ::ppapi::thunk::GetPPB_Flash_Menu_Thunk(); 280 return ::ppapi::thunk::GetPPB_Flash_Menu_Thunk();
278 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE) == 0) 281 if (strcmp(name, PPB_FLASH_TCPSOCKET_INTERFACE) == 0)
279 return ::ppapi::thunk::GetPPB_Flash_TCPSocket_Thunk(); 282 return ::ppapi::thunk::GetPPB_Flash_TCPSocket_Thunk();
280 if (strcmp(name, PPB_FONT_DEV_INTERFACE) == 0) 283 if (strcmp(name, PPB_FONT_DEV_INTERFACE) == 0)
281 return ::ppapi::thunk::GetPPB_Font_Thunk(); 284 return ::ppapi::thunk::GetPPB_Font_Thunk();
282 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0) 285 if (strcmp(name, PPB_FULLSCREEN_DEV_INTERFACE) == 0)
283 return ::ppapi::thunk::GetPPB_Fullscreen_Thunk(); 286 return ::ppapi::thunk::GetPPB_Fullscreen_Thunk();
284 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE) == 0) 287 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE) == 0)
285 return PPB_Graphics2D_Impl::GetInterface(); 288 return ::ppapi::thunk::GetPPB_Graphics2D_Thunk();
286 if (strcmp(name, PPB_IMAGEDATA_INTERFACE) == 0) 289 if (strcmp(name, PPB_IMAGEDATA_INTERFACE) == 0)
287 return ::ppapi::thunk::GetPPB_ImageData_Thunk(); 290 return ::ppapi::thunk::GetPPB_ImageData_Thunk();
288 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0) 291 if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0)
289 return ::ppapi::thunk::GetPPB_ImageDataTrusted_Thunk(); 292 return ::ppapi::thunk::GetPPB_ImageDataTrusted_Thunk();
290 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE) == 0) 293 if (strcmp(name, PPB_INPUT_EVENT_INTERFACE) == 0)
291 return ::ppapi::thunk::GetPPB_InputEvent_Thunk(); 294 return ::ppapi::thunk::GetPPB_InputEvent_Thunk();
292 if (strcmp(name, PPB_INSTANCE_INTERFACE_0_4) == 0) 295 if (strcmp(name, PPB_INSTANCE_INTERFACE_0_4) == 0)
293 return ::ppapi::thunk::GetPPB_Instance_0_4_Thunk(); 296 return ::ppapi::thunk::GetPPB_Instance_0_4_Thunk();
294 if (strcmp(name, PPB_INSTANCE_INTERFACE_0_5) == 0) 297 if (strcmp(name, PPB_INSTANCE_INTERFACE_0_5) == 0)
295 return ::ppapi::thunk::GetPPB_Instance_0_5_Thunk(); 298 return ::ppapi::thunk::GetPPB_Instance_0_5_Thunk();
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 615 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
613 if (retval != 0) { 616 if (retval != 0) {
614 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 617 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
615 return false; 618 return false;
616 } 619 }
617 return true; 620 return true;
618 } 621 }
619 622
620 } // namespace ppapi 623 } // namespace ppapi
621 } // namespace webkit 624 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.h ('k') | webkit/plugins/ppapi/ppb_file_io_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698