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

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

Issue 131403004: [Retry] 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 if (custom_interface) 308 if (custom_interface)
309 return custom_interface; 309 return custom_interface;
310 310
311 // TODO(brettw) put these in a hash map for better performance. 311 // TODO(brettw) put these in a hash map for better performance.
312 #define UNPROXIED_IFACE(iface_str, iface_struct) \ 312 #define UNPROXIED_IFACE(iface_str, iface_struct) \
313 if (strcmp(name, iface_str) == 0) \ 313 if (strcmp(name, iface_str) == 0) \
314 return ppapi::thunk::Get##iface_struct##_Thunk(); 314 return ppapi::thunk::Get##iface_struct##_Thunk();
315 #define PROXIED_IFACE(iface_str, iface_struct) \ 315 #define PROXIED_IFACE(iface_str, iface_struct) \
316 UNPROXIED_IFACE(iface_str, iface_struct) 316 UNPROXIED_IFACE(iface_str, iface_struct)
317 317
318 #include "ppapi/thunk/interfaces_ppb_private.h"
319 #include "ppapi/thunk/interfaces_ppb_private_flash.h"
320 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h"
321 #include "ppapi/thunk/interfaces_ppb_public_dev.h"
322 #include "ppapi/thunk/interfaces_ppb_public_dev_channel.h"
318 #include "ppapi/thunk/interfaces_ppb_public_stable.h" 323 #include "ppapi/thunk/interfaces_ppb_public_stable.h"
319 #include "ppapi/thunk/interfaces_ppb_public_dev.h"
320 #include "ppapi/thunk/interfaces_ppb_private.h"
321 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h"
322 #include "ppapi/thunk/interfaces_ppb_private_flash.h"
323 324
324 #undef UNPROXIED_API 325 #undef UNPROXIED_API
325 #undef PROXIED_IFACE 326 #undef PROXIED_IFACE
326 327
327 #define LEGACY_IFACE(iface_str, function_name) \ 328 #define LEGACY_IFACE(iface_str, function_name) \
328 if (strcmp(name, iface_str) == 0) \ 329 if (strcmp(name, iface_str) == 0) \
329 return function_name; 330 return function_name;
330 331
331 #include "ppapi/thunk/interfaces_legacy.h" 332 #include "ppapi/thunk/interfaces_legacy.h"
332 333
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 channel_handle, 738 channel_handle,
738 peer_pid, 739 peer_pid,
739 plugin_child_id, 740 plugin_child_id,
740 false)) // is_external = false 741 false)) // is_external = false
741 return scoped_refptr<PluginModule>(); 742 return scoped_refptr<PluginModule>();
742 743
743 return module; 744 return module;
744 } 745 }
745 746
746 } // namespace content 747 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698