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

Issue 936413003: Allow extensions of the ManifestParser outside of the content/ layer. (Closed)

Created:
5 years, 10 months ago by mlamouri (slow - plz ping)
Modified:
5 years, 7 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, darin-cc_chromium.org, gone, jam, mkwst+moarreviews-renderer_chromium.org, benwells
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow extensions of the ManifestParser outside of the content/ layer. This is solving part of the issues raised in: https://codereview.chromium.org/919293002/ BUG=457403

Patch Set 1 #

Total comments: 1

Patch Set 2 : WIP - changing chrome layer relationship #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+367 lines, -177 lines) Patch
M chrome/chrome_renderer.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download
A chrome/renderer/manifest/manifest_parser.h View 1 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/renderer/manifest/manifest_parser.cc View 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/renderer/manifest/manifest_parser_unittest.cc View 1 chunk +169 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 chunks +1 line, -1 line 1 comment Download
M content/public/renderer/content_renderer_client.h View 1 2 chunks +6 lines, -0 lines 1 comment Download
M content/public/renderer/content_renderer_client.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
D content/renderer/manifest/manifest_parser.h View 1 4 chunks +23 lines, -25 lines 1 comment Download
M content/renderer/manifest/manifest_parser.cc View 1 12 chunks +81 lines, -61 lines 0 comments Download
M content/renderer/manifest/manifest_parser_unittest.cc View 1 6 chunks +12 lines, -90 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
mlamouri (slow - plz ping)
Avi, this is only solving part of the problem you raised but I guess it's ...
5 years, 10 months ago (2015-02-19 18:36:38 UTC) #2
Avi (use Gerrit)
I briefly looked at what you're doing with the ManifestParser, and it's not along the ...
5 years, 10 months ago (2015-02-20 20:07:58 UTC) #3
mlamouri (slow - plz ping)
I did some update that follows your recommendations. The patch isn't entirely updated because there ...
5 years, 10 months ago (2015-02-23 14:50:58 UTC) #4
Avi (use Gerrit)
https://codereview.chromium.org/936413003/diff/20001/content/content_renderer.gypi File content/content_renderer.gypi (right): https://codereview.chromium.org/936413003/diff/20001/content/content_renderer.gypi#newcode56 content/content_renderer.gypi:56: 'public/renderer/manifest_parser.h', This file doesn't exist in this CL. https://codereview.chromium.org/936413003/diff/20001/content/public/renderer/content_renderer_client.h ...
5 years, 10 months ago (2015-02-23 17:30:25 UTC) #5
mlamouri (slow - plz ping)
Please, see my comment. I have on purpose not fully implement that CL.
5 years, 10 months ago (2015-02-23 17:38:34 UTC) #6
mlamouri (slow - plz ping)
+CC benwells@
5 years, 10 months ago (2015-02-24 12:30:17 UTC) #7
Avi (use Gerrit)
5 years, 10 months ago (2015-02-24 16:49:07 UTC) #8
Wow, I completely missed this comment. :( Apologies.

On 2015/02/23 14:50:58, Mounir Lamouri wrote:
> - the chrome/ layer parser will need to re-implement a lot of basic parsing
> methods like ParseString() or ParseUrl().

Can you export those as utility methods on the ManifestParser? The usual pattern
is the interface in public/ and impl in renderer/, but you could have all the
utility methods you need.

> - having the delegation be entirely stateless will make some things painful:
no
> way for the delegated parsing to make decision based on the rest of the
Manifest
> for example;

I don't know enough about manifests to comment here, and that's frustrating to
me because I want to give you suggestions and I don't know enough about them to
have any clever ideas. Is there some kind of common data structure that all
items in the manifest parse into, or is each item completely different?

Powered by Google App Engine
This is Rietveld 408576698