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

Issue 2843018: Add in support for internal pepper plugins into the PepperPluginRegistry and pepper::PluginModule. (Closed)

Created:
10 years, 6 months ago by awong
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Alpha Left Google, Sergey Ulanov, dmac, darin-cc_chromium.org, garykac, jam, awong
Base URL:
git://codf21.jail.google.com/chromium.git
Visibility:
Public.

Description

Add in support for internal pepper plugins into the PepperPluginRegistry and pepper::PluginModule. Used Chromoting's plugin as the first attempt at using this interface. BUG=none TEST=compiles Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50667 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50976

Patch Set 1 #

Patch Set 2 : style fixes #

Total comments: 25

Patch Set 3 : Compiling with an ugly fork. #

Patch Set 4 : rebased #

Patch Set 5 : Fork ppapi::Module to get us going. Will refactor later. #

Patch Set 6 : Rebased for realz #

Patch Set 7 : small style fixes. #

Total comments: 3

Patch Set 8 : fixed gary's comments and made conditionally compile. #

Patch Set 9 : Fix a broken conditional, and some style issues. #

Patch Set 10 : disable webserver on windows #

Total comments: 6

Patch Set 11 : Style issues fixes. #

Total comments: 1

Patch Set 12 : one more with feeling... #

Patch Set 13 : remove webkit dep since we broke chrome/common dep. #

Patch Set 14 : Add new entrypoint to match ToT ppapi #

Unified diffs Side-by-side diffs Delta from patch set Stats (+514 lines, -108 lines) Patch
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pepper_plugin_registry.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -1 line 0 comments Download
M chrome/common/pepper_plugin_registry.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +65 lines, -1 line 0 comments Download
M remoting/client/plugin/chromoting_plugin.h View 3 4 5 6 7 4 chunks +11 lines, -5 lines 0 comments Download
M remoting/client/plugin/chromoting_plugin.cc View 3 4 5 6 7 8 9 10 11 3 chunks +16 lines, -8 lines 0 comments Download
A remoting/client/plugin/pepper_entrypoints.h View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
A remoting/client/plugin/pepper_entrypoints.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +239 lines, -0 lines 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +43 lines, -47 lines 0 comments Download
M webkit/glue/plugins/pepper_plugin_module.h View 1 2 3 4 5 6 7 8 3 chunks +33 lines, -8 lines 0 comments Download
M webkit/glue/plugins/pepper_plugin_module.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +71 lines, -38 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
awong
Darin, you're listed for the pepper changes. Gary, you're on here for the Chromoting portion. ...
10 years, 6 months ago (2010-06-22 03:16:37 UTC) #1
darin (slow to review)
http://codereview.chromium.org/2843018/diff/2001/3003 File chrome/common/pepper_plugin_registry.cc (right): http://codereview.chromium.org/2843018/diff/2001/3003#newcode82 chrome/common/pepper_plugin_registry.cc:82: "pepper-application/x-chromoting-plugin"); i don't see the value in the pepper- ...
10 years, 6 months ago (2010-06-22 16:02:14 UTC) #2
awong
PTAL Addressed comments and did some other updates. Biggest change this time is I stopped ...
10 years, 6 months ago (2010-06-23 19:28:04 UTC) #3
garykac
LGTM http://codereview.chromium.org/2843018/diff/24001/25005 File remoting/client/plugin/chromoting_plugin.cc (right): http://codereview.chromium.org/2843018/diff/24001/25005#newcode26 remoting/client/plugin/chromoting_plugin.cc:26: const char* ChromotingPlugin::kMimeType = "application/chromoting::Chromoting"; pepper-application/x-chromoting http://codereview.chromium.org/2843018/diff/24001/25006 File ...
10 years, 6 months ago (2010-06-23 20:41:17 UTC) #4
awong
Gary's comments fixed. Also fixed a pretty big bug in the conditional (forget a !). ...
10 years, 6 months ago (2010-06-23 22:59:24 UTC) #5
darin (slow to review)
LGTM http://codereview.chromium.org/2843018/diff/29002/32003 File chrome/common/pepper_plugin_registry.cc (right): http://codereview.chromium.org/2843018/diff/29002/32003#newcode66 chrome/common/pepper_plugin_registry.cc:66: // Currently, to centralize the internal plugin registration ...
10 years, 6 months ago (2010-06-23 23:16:04 UTC) #6
awong
Fixed, and committing. Thanks! http://codereview.chromium.org/2843018/diff/29002/32003 File chrome/common/pepper_plugin_registry.cc (right): http://codereview.chromium.org/2843018/diff/29002/32003#newcode66 chrome/common/pepper_plugin_registry.cc:66: // Currently, to centralize the ...
10 years, 6 months ago (2010-06-23 23:32:22 UTC) #7
jam
http://codereview.chromium.org/2843018/diff/37001/25014 File chrome/common/pepper_plugin_registry.cc (right): http://codereview.chromium.org/2843018/diff/37001/25014#newcode85 chrome/common/pepper_plugin_registry.cc:85: info.entry_points.shutdown_module = remoting::PPP_ShutdownModule; are these internal plugins shown in ...
10 years, 6 months ago (2010-06-23 23:44:31 UTC) #8
darin (slow to review)
On Wed, Jun 23, 2010 at 4:44 PM, <jam@chromium.org> wrote: > > http://codereview.chromium.org/2843018/diff/37001/25014 > > ...
10 years, 6 months ago (2010-06-24 00:16:58 UTC) #9
awong
Re-opening. Adding a dependency from chrome/common -> remoting causes a circular dependency in gyp which ...
10 years, 6 months ago (2010-06-24 18:11:27 UTC) #10
darin (slow to review)
It seems incorrect for remoting/ to depend on chrome/common/ assuming that chrome/ depends on remoting/. ...
10 years, 6 months ago (2010-06-24 18:13:10 UTC) #11
Sergey Ulanov
We use JsonPrefStore from src/chrome/common. It needs to moved to src/base, and then we can ...
10 years, 6 months ago (2010-06-24 18:29:52 UTC) #12
darin (slow to review)
Please also add an include_rules entry to your DEPS file so that check_deps will complain ...
10 years, 6 months ago (2010-06-24 18:38:31 UTC) #13
darin (slow to review)
JsonPrefStore seems to depend on quite a few other things in chrome/common/. I haven't studied ...
10 years, 6 months ago (2010-06-24 18:40:30 UTC) #14
Sergey Ulanov
10 years, 6 months ago (2010-06-25 00:47:00 UTC) #15
I fixed remoting code so that it doesn't depend on JsonPrefStore and uses
base/json instead: http://codereview.chromium.org/2819026/show

On Thu, Jun 24, 2010 at 11:40 AM, Darin Fisher <darin@chromium.org> wrote:

> JsonPrefStore seems to depend on quite a few other things in
> chrome/common/.  I haven't studied those enough to determine if they should
> really be moved into base/.  This would probably make a good post to
> chromium-dev as there may be others with strong opinions about where this
> code should live.
>
> -Darin
>
>
> On Thu, Jun 24, 2010 at 11:38 AM, Darin Fisher <darin@chromium.org> wrote:
>
>> Please also add an include_rules entry to your DEPS file so that
>> check_deps will complain if anyone adds these bad dependencies again.
>>
>> -Darin
>>
>>
>> On Thu, Jun 24, 2010 at 11:29 AM, Sergey Ulanov <sergeyu@chromium.org>wrote:
>>
>>> We use JsonPrefStore from src/chrome/common. It needs to moved to
>>> src/base, and then we can remove chrome/common dependency.
>>>
>>>
>>> On Thu, Jun 24, 2010 at 11:12 AM, Darin Fisher <darin@chromium.org>wrote:
>>>
>>>> It seems incorrect for remoting/ to depend on chrome/common/ assuming
>>>> that chrome/ depends on remoting/.
>>>>
>>>> -Darin
>>>>
>>>>
>>>> On Thu, Jun 24, 2010 at 11:11 AM, <ajwong@chromium.org> wrote:
>>>>
>>>>> Re-opening.
>>>>>
>>>>> Adding a dependency from chrome/common -> remoting causes a circular
>>>>> dependency
>>>>> in gyp which breaks mac.
>>>>>
>>>>> I'm going to try and track down why we're depending on chrome/common
>>>>> from
>>>>> remoting.  But distasteful as it might be, maybe it'd be better to just
>>>>> duplicate the registration code inside of both BrowserMain and
>>>>> RendererMain.  Or
>>>>> go with the statically initialized linked list of internal plugins
>>>>> mentioned
>>>>> earlier...
>>>>>
>>>>> -Albert
>>>>>
>>>>>
>>>>> On 2010/06/24 00:16:58, darin wrote:
>>>>>
>>>>>  On Wed, Jun 23, 2010 at 4:44 PM, <mailto:jam@chromium.org> wrote:
>>>>>>
>>>>>
>>>>>  >
>>>>>> > http://codereview.chromium.org/2843018/diff/37001/25014
>>>>>> >
>>>>>> > File chrome/common/pepper_plugin_registry.cc (right):
>>>>>> >
>>>>>> > http://codereview.chromium.org/2843018/diff/37001/25014#newcode85
>>>>>> > chrome/common/pepper_plugin_registry.cc:85:
>>>>>> > info.entry_points.shutdown_module = remoting::PPP_ShutdownModule;
>>>>>> > are these internal plugins shown in about:plugins?  If not, they
>>>>>> should
>>>>>> > be :)  If they are, then how are we getting the plugin name and
>>>>>> > description?
>>>>>> >
>>>>>> >
>>>>>> Yeah, I hooked up about:plugins support previously.  There is not a
>>>>>> great
>>>>>> amount of data shown in about:plugins.
>>>>>>
>>>>>
>>>>>  See PluginService::RegisterPepperPlugins() in plugin_service.cc
>>>>>>
>>>>>
>>>>>  -Darin
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  >
>>>>>> > http://codereview.chromium.org/2843018/show
>>>>>> >
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> http://codereview.chromium.org/2843018/show
>>>>>
>>>>
>>>>
>>>
>>
>

Powered by Google App Engine
This is Rietveld 408576698