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

Side by Side Diff: webkit/glue/plugins/pepper_plugin_module.cc

Issue 4747001: Move URLLoader, URLRequestInfo, and URLResponseInfo out of the dev directory... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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/tests/test_url_loader.cc ('k') | webkit/glue/plugins/pepper_url_loader.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/glue/plugins/pepper_plugin_module.h" 5 #include "webkit/glue/plugins/pepper_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"
11 #include "base/message_loop_proxy.h" 11 #include "base/message_loop_proxy.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/scoped_ptr.h" 13 #include "base/scoped_ptr.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "ppapi/c/dev/ppb_buffer_dev.h" 15 #include "ppapi/c/dev/ppb_buffer_dev.h"
16 #include "ppapi/c/dev/ppb_char_set_dev.h" 16 #include "ppapi/c/dev/ppb_char_set_dev.h"
17 #include "ppapi/c/dev/ppb_cursor_control_dev.h" 17 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
18 #include "ppapi/c/dev/ppb_directory_reader_dev.h" 18 #include "ppapi/c/dev/ppb_directory_reader_dev.h"
19 #include "ppapi/c/dev/ppb_file_io_dev.h" 19 #include "ppapi/c/dev/ppb_file_io_dev.h"
20 #include "ppapi/c/dev/ppb_file_io_trusted_dev.h" 20 #include "ppapi/c/dev/ppb_file_io_trusted_dev.h"
21 #include "ppapi/c/dev/ppb_file_system_dev.h" 21 #include "ppapi/c/dev/ppb_file_system_dev.h"
22 #include "ppapi/c/dev/ppb_find_dev.h" 22 #include "ppapi/c/dev/ppb_find_dev.h"
23 #include "ppapi/c/dev/ppb_font_dev.h" 23 #include "ppapi/c/dev/ppb_font_dev.h"
24 #include "ppapi/c/dev/ppb_fullscreen_dev.h" 24 #include "ppapi/c/dev/ppb_fullscreen_dev.h"
25 #include "ppapi/c/dev/ppb_graphics_3d_dev.h" 25 #include "ppapi/c/dev/ppb_graphics_3d_dev.h"
26 #include "ppapi/c/dev/ppb_opengles_dev.h" 26 #include "ppapi/c/dev/ppb_opengles_dev.h"
27 #include "ppapi/c/dev/ppb_scrollbar_dev.h" 27 #include "ppapi/c/dev/ppb_scrollbar_dev.h"
28 #include "ppapi/c/dev/ppb_testing_dev.h" 28 #include "ppapi/c/dev/ppb_testing_dev.h"
29 #include "ppapi/c/dev/ppb_transport_dev.h" 29 #include "ppapi/c/dev/ppb_transport_dev.h"
30 #include "ppapi/c/dev/ppb_url_loader_dev.h"
31 #include "ppapi/c/dev/ppb_url_loader_trusted_dev.h"
32 #include "ppapi/c/dev/ppb_url_request_info_dev.h"
33 #include "ppapi/c/dev/ppb_url_response_info_dev.h"
34 #include "ppapi/c/dev/ppb_url_util_dev.h" 30 #include "ppapi/c/dev/ppb_url_util_dev.h"
35 #include "ppapi/c/dev/ppb_var_deprecated.h" 31 #include "ppapi/c/dev/ppb_var_deprecated.h"
36 #include "ppapi/c/dev/ppb_video_decoder_dev.h" 32 #include "ppapi/c/dev/ppb_video_decoder_dev.h"
37 #include "ppapi/c/dev/ppb_widget_dev.h" 33 #include "ppapi/c/dev/ppb_widget_dev.h"
38 #include "ppapi/c/dev/ppb_zoom_dev.h" 34 #include "ppapi/c/dev/ppb_zoom_dev.h"
39 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
40 #include "ppapi/c/pp_module.h" 35 #include "ppapi/c/pp_module.h"
41 #include "ppapi/c/pp_resource.h" 36 #include "ppapi/c/pp_resource.h"
42 #include "ppapi/c/pp_var.h" 37 #include "ppapi/c/pp_var.h"
43 #include "ppapi/c/ppb_class.h" 38 #include "ppapi/c/ppb_class.h"
44 #include "ppapi/c/ppb_core.h" 39 #include "ppapi/c/ppb_core.h"
45 #include "ppapi/c/ppb_graphics_2d.h" 40 #include "ppapi/c/ppb_graphics_2d.h"
46 #include "ppapi/c/ppb_image_data.h" 41 #include "ppapi/c/ppb_image_data.h"
47 #include "ppapi/c/ppb_instance.h" 42 #include "ppapi/c/ppb_instance.h"
43 #include "ppapi/c/ppb_url_loader.h"
44 #include "ppapi/c/ppb_url_request_info.h"
45 #include "ppapi/c/ppb_url_response_info.h"
48 #include "ppapi/c/ppb_var.h" 46 #include "ppapi/c/ppb_var.h"
49 #include "ppapi/c/ppp.h" 47 #include "ppapi/c/ppp.h"
50 #include "ppapi/c/ppp_instance.h" 48 #include "ppapi/c/ppp_instance.h"
49 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
50 #include "ppapi/c/trusted/ppb_url_loader_trusted.h"
51 #include "ppapi/proxy/host_dispatcher.h" 51 #include "ppapi/proxy/host_dispatcher.h"
52 #include "ppapi/proxy/ppapi_messages.h" 52 #include "ppapi/proxy/ppapi_messages.h"
53 #include "webkit/glue/plugins/pepper_audio.h" 53 #include "webkit/glue/plugins/pepper_audio.h"
54 #include "webkit/glue/plugins/pepper_buffer.h" 54 #include "webkit/glue/plugins/pepper_buffer.h"
55 #include "webkit/glue/plugins/pepper_common.h" 55 #include "webkit/glue/plugins/pepper_common.h"
56 #include "webkit/glue/plugins/pepper_char_set.h" 56 #include "webkit/glue/plugins/pepper_char_set.h"
57 #include "webkit/glue/plugins/pepper_class.h" 57 #include "webkit/glue/plugins/pepper_class.h"
58 #include "webkit/glue/plugins/pepper_cursor_control.h" 58 #include "webkit/glue/plugins/pepper_cursor_control.h"
59 #include "webkit/glue/plugins/pepper_directory_reader.h" 59 #include "webkit/glue/plugins/pepper_directory_reader.h"
60 #include "webkit/glue/plugins/pepper_file_chooser.h" 60 #include "webkit/glue/plugins/pepper_file_chooser.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE) == 0) 226 if (strcmp(name, PPB_GRAPHICS_2D_INTERFACE) == 0)
227 return Graphics2D::GetInterface(); 227 return Graphics2D::GetInterface();
228 #ifdef ENABLE_GPU 228 #ifdef ENABLE_GPU
229 if (strcmp(name, PPB_GRAPHICS_3D_DEV_INTERFACE) == 0) 229 if (strcmp(name, PPB_GRAPHICS_3D_DEV_INTERFACE) == 0)
230 return Graphics3D::GetInterface(); 230 return Graphics3D::GetInterface();
231 if (strcmp(name, PPB_OPENGLES_DEV_INTERFACE) == 0) 231 if (strcmp(name, PPB_OPENGLES_DEV_INTERFACE) == 0)
232 return Graphics3D::GetOpenGLESInterface(); 232 return Graphics3D::GetOpenGLESInterface();
233 #endif // ENABLE_GPU 233 #endif // ENABLE_GPU
234 if (strcmp(name, PPB_TRANSPORT_DEV_INTERFACE) == 0) 234 if (strcmp(name, PPB_TRANSPORT_DEV_INTERFACE) == 0)
235 return Transport::GetInterface(); 235 return Transport::GetInterface();
236 if (strcmp(name, PPB_URLLOADER_DEV_INTERFACE) == 0) 236 if (strcmp(name, PPB_URLLOADER_INTERFACE) == 0)
237 return URLLoader::GetInterface(); 237 return URLLoader::GetInterface();
238 if (strcmp(name, PPB_URLLOADERTRUSTED_DEV_INTERFACE) == 0) 238 if (strcmp(name, PPB_URLLOADERTRUSTED_INTERFACE) == 0)
239 return URLLoader::GetTrustedInterface(); 239 return URLLoader::GetTrustedInterface();
240 if (strcmp(name, PPB_URLREQUESTINFO_DEV_INTERFACE) == 0) 240 if (strcmp(name, PPB_URLREQUESTINFO_INTERFACE) == 0)
241 return URLRequestInfo::GetInterface(); 241 return URLRequestInfo::GetInterface();
242 if (strcmp(name, PPB_URLRESPONSEINFO_DEV_INTERFACE) == 0) 242 if (strcmp(name, PPB_URLRESPONSEINFO_INTERFACE) == 0)
243 return URLResponseInfo::GetInterface(); 243 return URLResponseInfo::GetInterface();
244 if (strcmp(name, PPB_BUFFER_DEV_INTERFACE) == 0) 244 if (strcmp(name, PPB_BUFFER_DEV_INTERFACE) == 0)
245 return Buffer::GetInterface(); 245 return Buffer::GetInterface();
246 if (strcmp(name, PPB_FILEREF_DEV_INTERFACE) == 0) 246 if (strcmp(name, PPB_FILEREF_DEV_INTERFACE) == 0)
247 return FileRef::GetInterface(); 247 return FileRef::GetInterface();
248 if (strcmp(name, PPB_FILEIO_DEV_INTERFACE) == 0) 248 if (strcmp(name, PPB_FILEIO_DEV_INTERFACE) == 0)
249 return FileIO::GetInterface(); 249 return FileIO::GetInterface();
250 if (strcmp(name, PPB_FILEIOTRUSTED_DEV_INTERFACE) == 0) 250 if (strcmp(name, PPB_FILEIOTRUSTED_DEV_INTERFACE) == 0)
251 return FileIO::GetTrustedInterface(); 251 return FileIO::GetTrustedInterface();
252 if (strcmp(name, PPB_FILESYSTEM_DEV_INTERFACE) == 0) 252 if (strcmp(name, PPB_FILESYSTEM_DEV_INTERFACE) == 0)
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 live_plugin_objects_.insert(plugin_object); 544 live_plugin_objects_.insert(plugin_object);
545 } 545 }
546 546
547 void PluginModule::RemovePluginObject(PluginObject* plugin_object) { 547 void PluginModule::RemovePluginObject(PluginObject* plugin_object) {
548 // Don't actually verify that the object is in the set since during module 548 // Don't actually verify that the object is in the set since during module
549 // deletion we'll be in the process of freeing them. 549 // deletion we'll be in the process of freeing them.
550 live_plugin_objects_.erase(plugin_object); 550 live_plugin_objects_.erase(plugin_object);
551 } 551 }
552 552
553 } // namespace pepper 553 } // namespace pepper
OLDNEW
« no previous file with comments | « ppapi/tests/test_url_loader.cc ('k') | webkit/glue/plugins/pepper_url_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698