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

Side by Side Diff: content/renderer/pepper/plugin_module.cc

Issue 113363004: PPAPI: Add new PPB_FileRef.MakeDirectory to support exclusive operation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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
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 "content/renderer/pepper/plugin_module.h" 5 #include "content/renderer/pepper/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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 if (custom_interface) 306 if (custom_interface)
307 return custom_interface; 307 return custom_interface;
308 308
309 // TODO(brettw) put these in a hash map for better performance. 309 // TODO(brettw) put these in a hash map for better performance.
310 #define UNPROXIED_IFACE(iface_str, iface_struct) \ 310 #define UNPROXIED_IFACE(iface_str, iface_struct) \
311 if (strcmp(name, iface_str) == 0) \ 311 if (strcmp(name, iface_str) == 0) \
312 return ppapi::thunk::Get##iface_struct##_Thunk(); 312 return ppapi::thunk::Get##iface_struct##_Thunk();
313 #define PROXIED_IFACE(iface_str, iface_struct) \ 313 #define PROXIED_IFACE(iface_str, iface_struct) \
314 UNPROXIED_IFACE(iface_str, iface_struct) 314 UNPROXIED_IFACE(iface_str, iface_struct)
315 315
316 #include "ppapi/thunk/interfaces_ppb_private.h"
317 #include "ppapi/thunk/interfaces_ppb_private_flash.h"
318 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h"
319 #include "ppapi/thunk/interfaces_ppb_public_dev.h"
320 #include "ppapi/thunk/interfaces_ppb_public_dev_channel.h"
316 #include "ppapi/thunk/interfaces_ppb_public_stable.h" 321 #include "ppapi/thunk/interfaces_ppb_public_stable.h"
317 #include "ppapi/thunk/interfaces_ppb_public_dev.h"
318 #include "ppapi/thunk/interfaces_ppb_private.h"
319 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h"
320 #include "ppapi/thunk/interfaces_ppb_private_flash.h"
321 322
322 #undef UNPROXIED_API 323 #undef UNPROXIED_API
323 #undef PROXIED_IFACE 324 #undef PROXIED_IFACE
324 325
325 #define LEGACY_IFACE(iface_str, function_name) \ 326 #define LEGACY_IFACE(iface_str, function_name) \
326 if (strcmp(name, iface_str) == 0) \ 327 if (strcmp(name, iface_str) == 0) \
327 return function_name; 328 return function_name;
328 329
329 #include "ppapi/thunk/interfaces_legacy.h" 330 #include "ppapi/thunk/interfaces_legacy.h"
330 331
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 channel_handle, 736 channel_handle,
736 peer_pid, 737 peer_pid,
737 plugin_child_id, 738 plugin_child_id,
738 false)) // is_external = false 739 false)) // is_external = false
739 return scoped_refptr<PluginModule>(); 740 return scoped_refptr<PluginModule>();
740 741
741 return module; 742 return module;
742 } 743 }
743 744
744 } // namespace content 745 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc ('k') | ppapi/api/ppb_file_ref.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698