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

Issue 7029031: Content settings extension API (Closed)

Created:
9 years, 7 months ago by Bernhard Bauer
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Erik does not do reviews, Paweł Hajdan Jr., Aaron Boodman, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, jochen (gone - plz use gerrit), USE chromium.org ACCOUNT, markusheintz_
Visibility:
Public.

Description

Content settings extension API BUG=71067 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88526

Patch Set 1 #

Patch Set 2 : check incognito permissions #

Patch Set 3 : sync #

Patch Set 4 : sync #

Patch Set 5 : remove stuff #

Patch Set 6 : fix? #

Patch Set 7 : fix? #

Patch Set 8 : fix; sync #

Patch Set 9 : sync #

Patch Set 10 : merge #

Patch Set 11 : fix #

Patch Set 12 : fix #

Patch Set 13 : fix #

Patch Set 14 : fix #

Patch Set 15 : fix #

Patch Set 16 : fix #

Patch Set 17 : fix!!!oneoneeleven #

Patch Set 18 : fix #

Patch Set 19 : sync #

Patch Set 20 : fix #

Patch Set 21 : fix test #

Patch Set 22 : fix tests; udpate docs and samepl #

Patch Set 23 : sync #

Patch Set 24 : update sample extension #

Patch Set 25 : fix #

Total comments: 47

Patch Set 26 : review #

Patch Set 27 : fix #

Total comments: 6

Patch Set 28 : review & sync #

Patch Set 29 : fix #

Patch Set 30 : nit #

Total comments: 7

Patch Set 31 : sync & review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1974 lines, -2156 lines) Patch
M chrome/browser/content_settings/host_content_settings_map.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 3 chunks +30 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_content_settings_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_content_settings_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 1 chunk +243 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_content_settings_api_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_content_settings_api_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_content_settings_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +54 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_preference_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 14 chunks +38 lines, -60 lines 0 comments Download
A chrome/browser/extensions/extension_preference_api_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_preference_api_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_preference_helpers.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_preference_helpers.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +239 lines, -18 lines 0 comments Download
A chrome/common/extensions/docs/examples/api/contentSettings.zip View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Binary file 0 comments Download
A chrome/common/extensions/docs/examples/api/contentSettings/contentSettings.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Binary file 0 comments Download
A chrome/common/extensions/docs/examples/api/contentSettings/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/examples/api/contentSettings/popup.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +101 lines, -0 lines 0 comments Download
chrome/common/extensions/docs/examples/api/preferences/enableReferrer.zip View 1 2 3 4 5 6 7 8 9 0 chunks +-1 lines, --1 lines 0 comments Download
chrome/common/extensions/docs/examples/api/tabs/screenshot.zip View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 0 chunks +-1 lines, --1 lines 0 comments Download
chrome/common/extensions/docs/examples/extensions/benchmark.zip View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/common/extensions/docs/experimental.html View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
A + chrome/common/extensions/docs/experimental.contentSettings.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 101 chunks +891 lines, -1967 lines 0 comments Download
M chrome/common/extensions/docs/extension.html View 1 2 3 4 5 6 7 8 3 chunks +1 line, -66 lines 0 comments Download
M chrome/common/extensions/docs/samples.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +48 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 3 chunks +28 lines, -2 lines 0 comments Download
M chrome/renderer/resources/event_bindings.js View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/resources/extension_apitest.js View 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/renderer/resources/extension_process_bindings.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 5 chunks +69 lines, -27 lines 0 comments Download
M chrome/renderer/resources/renderer_extension_bindings.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/content_settings/standard/test.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +62 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/stubs/content_script.js View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Bernhard Bauer
Please review. Note that we don't allow persistent incognito content settings yet, as that will ...
9 years, 6 months ago (2011-06-03 23:38:27 UTC) #1
battre
http://codereview.chromium.org/7029031/diff/31001/chrome/browser/content_settings/host_content_settings_map.h File chrome/browser/content_settings/host_content_settings_map.h (right): http://codereview.chromium.org/7029031/diff/31001/chrome/browser/content_settings/host_content_settings_map.h#newcode152 chrome/browser/content_settings/host_content_settings_map.h:152: ContentSetting setting); Nit: Given the name of the function, ...
9 years, 6 months ago (2011-06-06 23:45:12 UTC) #2
Bernhard Bauer
http://codereview.chromium.org/7029031/diff/31001/chrome/browser/content_settings/host_content_settings_map.h File chrome/browser/content_settings/host_content_settings_map.h (right): http://codereview.chromium.org/7029031/diff/31001/chrome/browser/content_settings/host_content_settings_map.h#newcode152 chrome/browser/content_settings/host_content_settings_map.h:152: ContentSetting setting); On 2011/06/06 23:45:13, battre wrote: > Nit: ...
9 years, 6 months ago (2011-06-07 13:48:13 UTC) #3
battre
LGTM http://codereview.chromium.org/7029031/diff/34032/chrome/browser/extensions/extension_content_settings_api.cc File chrome/browser/extensions/extension_content_settings_api.cc (right): http://codereview.chromium.org/7029031/diff/34032/chrome/browser/extensions/extension_content_settings_api.cc#newcode192 chrome/browser/extensions/extension_content_settings_api.cc:192: } nit: newline http://codereview.chromium.org/7029031/diff/34032/chrome/browser/extensions/extension_content_settings_api.cc#newcode202 chrome/browser/extensions/extension_content_settings_api.cc:202: extension_prefs_scope::Scope scope = ...
9 years, 6 months ago (2011-06-07 18:16:14 UTC) #4
Bernhard Bauer
http://codereview.chromium.org/7029031/diff/34032/chrome/browser/extensions/extension_content_settings_api.cc File chrome/browser/extensions/extension_content_settings_api.cc (right): http://codereview.chromium.org/7029031/diff/34032/chrome/browser/extensions/extension_content_settings_api.cc#newcode192 chrome/browser/extensions/extension_content_settings_api.cc:192: } On 2011/06/07 18:16:14, battre wrote: > nit: newline ...
9 years, 6 months ago (2011-06-08 14:20:15 UTC) #5
Bernhard Bauer
+mpcomplete, erikkay for API changes (note that this still uses the content settings pattern format ...
9 years, 6 months ago (2011-06-08 14:26:13 UTC) #6
Matt Perry
api.json LGTM http://codereview.chromium.org/7029031/diff/40038/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/7029031/diff/40038/chrome/common/extensions/api/extension_api.json#newcode5844 chrome/common/extensions/api/extension_api.json:5844: "global": { Grouping these settings this way ...
9 years, 6 months ago (2011-06-08 19:30:18 UTC) #7
Bernhard Bauer
http://codereview.chromium.org/7029031/diff/40038/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/7029031/diff/40038/chrome/common/extensions/api/extension_api.json#newcode5844 chrome/common/extensions/api/extension_api.json:5844: "global": { On 2011/06/08 19:30:18, Matt Perry wrote: > ...
9 years, 6 months ago (2011-06-09 13:57:48 UTC) #8
Matt Perry
http://codereview.chromium.org/7029031/diff/40038/chrome/common/extensions/api/extension_api.json File chrome/common/extensions/api/extension_api.json (right): http://codereview.chromium.org/7029031/diff/40038/chrome/common/extensions/api/extension_api.json#newcode5844 chrome/common/extensions/api/extension_api.json:5844: "global": { On 2011/06/09 13:57:49, Bernhard Bauer wrote: > ...
9 years, 6 months ago (2011-06-09 20:57:53 UTC) #9
Bernhard Bauer
On Thursday, June 9, 2011, <mpcomplete@chromium.org> wrote: > > http://codereview.chromium.org/7029031/diff/40038/chrome/common/extensions/api/extension_api.json > File chrome/common/extensions/api/extension_api.json (right): > ...
9 years, 6 months ago (2011-06-11 16:16:19 UTC) #10
Matt Perry
9 years, 6 months ago (2011-06-13 17:49:22 UTC) #11
On 2011/06/11 16:16:19, Bernhard Bauer wrote:
> On Thursday, June 9, 2011,  <mailto:mpcomplete@chromium.org> wrote:
> >
> >
>
http://codereview.chromium.org/7029031/diff/40038/chrome/common/extensions/ap...
> > File chrome/common/extensions/api/extension_api.json (right):
> >
> >
>
http://codereview.chromium.org/7029031/diff/40038/chrome/common/extensions/ap...
> > chrome/common/extensions/api/extension_api.json:5844: "global": {
> > On 2011/06/09 13:57:49, Bernhard Bauer wrote:
> >
> > On 2011/06/08 19:30:18, Matt Perry wrote:
> >> Grouping these settings this way feels weird to me. Any reason not
> >
> > to just
> >
> > have
> >> the 3 properties below at the top level?
> >
> >
> >
> > I think that having them at the top level would be more confusing, as
> >
> > they have
> >
> > slightly different interfaces (conceptually, they're somewhat like
> >
> > global
> >
> > content settings, hence the name).
> >
> >
> > I'm not convinced that having a different interface warrants them being
> > in a different namespace. We have different interfaces for all functions
> > in every other module. What makes this module different?
> 
> Sure, we can have them top-level. I just wanted to stick to what we
> discussed in the extension API review for the initial version.

Oh OK, I don't remember covering that in the API review. If we agreed on it in
the meeting, then let's leave it as is.

Powered by Google App Engine
This is Rietveld 408576698