diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-22 22:38:39 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-22 22:38:39 +0000 |
commit | 585c9dd77856582dd3bbdf773ae9b63b51f8c200 (patch) | |
tree | ffcc6dbdaf73f7866558315e4ceb234d270b4667 /ppapi/thunk | |
parent | 63c8cb0e1d055530f8c29250c68553175f2b1287 (diff) | |
download | chromium_src-585c9dd77856582dd3bbdf773ae9b63b51f8c200.zip chromium_src-585c9dd77856582dd3bbdf773ae9b63b51f8c200.tar.gz chromium_src-585c9dd77856582dd3bbdf773ae9b63b51f8c200.tar.bz2 |
The chrome browser target should not depend on plugins.
This in turn brings with it a dependency on webkit_glue which in turn brings in webkit.
We should only depend on plugins_common in the browser.
The pepper component updater for flash is the only component in the browser which depends
on webkit\plugins\ppapi. This is to check if the interface name passed in is supported by the browser.
I added a function IsSupportedPepperInterface to the newly added ppapi_utils.cc/.h file which lives in
webkit/common/plugins/ppapi
Added a macro LEGACY_IFACE to the newly added ppapi/thunk/interfaces_legacy.h file. This macro consolidates
the list of interfaces being checked for on the browser. It is used in plugin_module.cc and ppapi_utils.cc
BUG=237249
TBR=cpu@chromium.org, jamesr@chromium.org, raymes@chromium.org, yzshen@chromium.org
Review URL: https://codereview.chromium.org/15505004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201623 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk')
-rw-r--r-- | ppapi/thunk/interfaces_legacy.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/ppapi/thunk/interfaces_legacy.h b/ppapi/thunk/interfaces_legacy.h new file mode 100644 index 0000000..9d03bbe --- /dev/null +++ b/ppapi/thunk/interfaces_legacy.h @@ -0,0 +1,51 @@ +// Copyright (c) 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +#ifndef LEGACY_IFACE +#define LEGACY_IFACE(iface_str, function_name) +#endif + +LEGACY_IFACE(PPB_AUDIO_TRUSTED_INTERFACE_0_6, + ::ppapi::thunk::GetPPB_AudioTrusted_0_6_Thunk()) +LEGACY_IFACE(PPB_BUFFER_TRUSTED_INTERFACE_0_1, + ::ppapi::thunk::GetPPB_BufferTrusted_0_1_Thunk()) +LEGACY_IFACE(PPB_GRAPHICS_3D_TRUSTED_INTERFACE_1_0, + ::ppapi::thunk::GetPPB_Graphics3DTrusted_1_0_Thunk()) +LEGACY_IFACE(PPB_IMAGEDATA_TRUSTED_INTERFACE_0_4, + ::ppapi::thunk::GetPPB_ImageDataTrusted_0_4_Thunk()) +LEGACY_IFACE(PPB_INPUT_EVENT_INTERFACE_1_0, + ::ppapi::thunk::GetPPB_InputEvent_1_0_Thunk()) +LEGACY_IFACE(PPB_INSTANCE_PRIVATE_INTERFACE_0_1, + ::ppapi::thunk::GetPPB_Instance_Private_0_1_Thunk()) +LEGACY_IFACE(PPB_CORE_INTERFACE_1_0, &core_interface) +LEGACY_IFACE(PPB_GPUBLACKLIST_PRIVATE_INTERFACE, + PPB_GpuBlacklist_Private_Impl::GetInterface()) +LEGACY_IFACE(PPB_OPENGLES2_INTERFACE, + ::ppapi::PPB_OpenGLES2_Shared::GetInterface()) +LEGACY_IFACE(PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE, + ::ppapi::PPB_OpenGLES2_Shared::GetInstancedArraysInterface()) +LEGACY_IFACE(PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE, + ::ppapi::PPB_OpenGLES2_Shared::GetFramebufferBlitInterface()) +LEGACY_IFACE( + PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE, + ::ppapi::PPB_OpenGLES2_Shared::GetFramebufferMultisampleInterface()) +LEGACY_IFACE(PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE, + ::ppapi::PPB_OpenGLES2_Shared::GetChromiumEnableFeatureInterface()) +LEGACY_IFACE(PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE, + ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface()) +LEGACY_IFACE(PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0, + ::ppapi::PPB_OpenGLES2_Shared::GetChromiumMapSubInterface()) +LEGACY_IFACE(PPB_OPENGLES2_QUERY_INTERFACE, + ::ppapi::PPB_OpenGLES2_Shared::GetQueryInterface()) +LEGACY_IFACE(PPB_PROXY_PRIVATE_INTERFACE, PPB_Proxy_Impl::GetInterface()) +LEGACY_IFACE(PPB_UMA_PRIVATE_INTERFACE, PPB_UMA_Private_Impl::GetInterface()) +LEGACY_IFACE(PPB_VAR_DEPRECATED_INTERFACE, + PPB_Var_Deprecated_Impl::GetVarDeprecatedInterface()) +LEGACY_IFACE(PPB_VAR_INTERFACE_1_0, + ::ppapi::PPB_Var_Shared::GetVarInterface1_0()) +LEGACY_IFACE(PPB_VAR_INTERFACE_1_1, + ::ppapi::PPB_Var_Shared::GetVarInterface1_1()) +LEGACY_IFACE(PPB_VAR_ARRAY_BUFFER_INTERFACE_1_0, + ::ppapi::PPB_Var_Shared::GetVarArrayBufferInterface1_0()) + + |