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

Issue 15505004: The chrome browser target should not depend on plugins. (Closed)

Created:
7 years, 7 months ago by ananta
Modified:
7 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201623

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 7

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 12

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -50 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/component_updater/pepper_flash_component_installer.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
A ppapi/thunk/interfaces_legacy.h View 1 2 3 4 5 6 7 1 chunk +51 lines, -0 lines 0 comments Download
M webkit/common/DEPS View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
A webkit/common/plugins/ppapi/ppapi_utils.h View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
A webkit/common/plugins/ppapi/ppapi_utils.cc View 1 2 3 4 5 6 7 1 chunk +132 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -46 lines 0 comments Download
M webkit/plugins/webkit_plugins.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
ananta
7 years, 7 months ago (2013-05-20 23:33:17 UTC) #1
jamesr
lgtm https://codereview.chromium.org/15505004/diff/1/webkit/common/plugins/ppapi/ppapi_utils.cc File webkit/common/plugins/ppapi/ppapi_utils.cc (right): https://codereview.chromium.org/15505004/diff/1/webkit/common/plugins/ppapi/ppapi_utils.cc#newcode24 webkit/common/plugins/ppapi/ppapi_utils.cc:24: if (strcmp(name, PPB_AUDIO_TRUSTED_INTERFACE_0_6) == 0) think you need ...
7 years, 7 months ago (2013-05-20 23:42:30 UTC) #2
ananta
https://codereview.chromium.org/15505004/diff/1/webkit/plugins/webkit_plugins.gypi File webkit/plugins/webkit_plugins.gypi (right): https://codereview.chromium.org/15505004/diff/1/webkit/plugins/webkit_plugins.gypi#newcode42 webkit/plugins/webkit_plugins.gypi:42: '../common/plugins/ppapi/ppapi_utils.cc', On 2013/05/20 23:42:30, jamesr wrote: > is the ...
7 years, 7 months ago (2013-05-20 23:49:20 UTC) #3
raymes1
https://codereview.chromium.org/15505004/diff/1/webkit/common/plugins/ppapi/ppapi_utils.cc File webkit/common/plugins/ppapi/ppapi_utils.cc (right): https://codereview.chromium.org/15505004/diff/1/webkit/common/plugins/ppapi/ppapi_utils.cc#newcode21 webkit/common/plugins/ppapi/ppapi_utils.cc:21: bool IsSupportedPepperInterface(const char* name) { I misunderstood slightly what ...
7 years, 7 months ago (2013-05-21 15:46:29 UTC) #4
ananta
https://codereview.chromium.org/15505004/diff/1/webkit/common/plugins/ppapi/ppapi_utils.cc File webkit/common/plugins/ppapi/ppapi_utils.cc (right): https://codereview.chromium.org/15505004/diff/1/webkit/common/plugins/ppapi/ppapi_utils.cc#newcode21 webkit/common/plugins/ppapi/ppapi_utils.cc:21: bool IsSupportedPepperInterface(const char* name) { On 2013/05/21 15:46:29, raymes1 ...
7 years, 7 months ago (2013-05-21 19:20:37 UTC) #5
yzshen1
https://codereview.chromium.org/15505004/diff/49001/webkit/common/plugins/ppapi/ppapi_utils.cc File webkit/common/plugins/ppapi/ppapi_utils.cc (right): https://codereview.chromium.org/15505004/diff/49001/webkit/common/plugins/ppapi/ppapi_utils.cc#newcode5 webkit/common/plugins/ppapi/ppapi_utils.cc:5: #include <cstring> nit: an empty line above line 5. ...
7 years, 7 months ago (2013-05-21 21:42:33 UTC) #6
ananta
https://codereview.chromium.org/15505004/diff/49001/webkit/common/plugins/ppapi/ppapi_utils.cc File webkit/common/plugins/ppapi/ppapi_utils.cc (right): https://codereview.chromium.org/15505004/diff/49001/webkit/common/plugins/ppapi/ppapi_utils.cc#newcode7 webkit/common/plugins/ppapi/ppapi_utils.cc:7: #include "base/bind.h" On 2013/05/21 21:42:33, yzshen1 wrote: > You ...
7 years, 7 months ago (2013-05-21 22:21:15 UTC) #7
ananta
On 2013/05/21 22:21:15, ananta wrote: > https://codereview.chromium.org/15505004/diff/49001/webkit/common/plugins/ppapi/ppapi_utils.cc > File webkit/common/plugins/ppapi/ppapi_utils.cc (right): > > https://codereview.chromium.org/15505004/diff/49001/webkit/common/plugins/ppapi/ppapi_utils.cc#newcode7 > ...
7 years, 7 months ago (2013-05-22 00:52:54 UTC) #8
yzshen1
LGTM with some nits. Thanks for making this change! https://codereview.chromium.org/15505004/diff/76001/ppapi/thunk/interfaces_legacy.h File ppapi/thunk/interfaces_legacy.h (right): https://codereview.chromium.org/15505004/diff/76001/ppapi/thunk/interfaces_legacy.h#newcode4 ppapi/thunk/interfaces_legacy.h:4: ...
7 years, 7 months ago (2013-05-22 05:15:37 UTC) #9
raymes
lgtm with yzshen's comments. Thanks for doing this.
7 years, 7 months ago (2013-05-22 14:49:06 UTC) #10
cpu_(ooo_6.6-7.5)
lgtm, please see if james has any further comments.
7 years, 7 months ago (2013-05-22 17:43:16 UTC) #11
ananta
https://codereview.chromium.org/15505004/diff/76001/ppapi/thunk/interfaces_legacy.h File ppapi/thunk/interfaces_legacy.h (right): https://codereview.chromium.org/15505004/diff/76001/ppapi/thunk/interfaces_legacy.h#newcode4 ppapi/thunk/interfaces_legacy.h:4: #ifndef PPAPI_THUNK_INTERFACES_LEGACY_H_ On 2013/05/22 05:15:37, yzshen1 wrote: > nit: ...
7 years, 7 months ago (2013-05-22 17:56:43 UTC) #12
jamesr
lgtm
7 years, 7 months ago (2013-05-22 18:11:33 UTC) #13
ananta
TBR'ing sky for chrome\browser owners
7 years, 7 months ago (2013-05-22 21:46:02 UTC) #14
ananta
7 years, 7 months ago (2013-05-22 22:38:41 UTC) #15
Message was sent while issue was closed.
Committed patchset #9 manually as r201623.

Powered by Google App Engine
This is Rietveld 408576698