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

Issue 2786673002: Separate ContentSettingsClient out from LocalFrameClient (Closed)

Created:
3 years, 8 months ago by kinuko
Modified:
3 years, 8 months ago
CC:
android-webview-reviews_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-frames_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, eae+blinkwatch, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, haraken, jam, jochen+watch_chromium.org, kinuko+watch, kinuko+fileapi, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, nhiroki, Peter Beverloo, rwlbuis, sof, nessy, Srirama, tzik, Yoav Weiss
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Separate ContentSettingsClient out from LocalFrameClient LocalFrameClient is too overloaded, which is making it hard to figure out frame dependency. This CL tries to split ContentSettingsClient part out of LocalFrameClient to clarify the dependency. In this way it becomes possible to provide/implement ContentSettingsClient without Frame. This change also moves WebContentSettingsClient from public/web to public/platform for easier layering, but if anyone disagrees I can revert the part. BUG=695279 TBR=jochen@chromium.org, boliu@chromium.org Review-Url: https://codereview.chromium.org/2786673002 Cr-Commit-Position: refs/heads/master@{#462020} Committed: https://chromium.googlesource.com/chromium/src/+/8bd5d6a15f00ab291c675c2e49b19275d263b6bc

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix #

Patch Set 4 : fix #

Total comments: 25

Patch Set 5 : fix #

Patch Set 6 : dchecks #

Total comments: 14

Patch Set 7 : fix #

Total comments: 1

Patch Set 8 : added class-level comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -647 lines) Patch
M android_webview/renderer/aw_content_settings_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/content_settings_observer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/shell/test_runner/mock_content_settings_client.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/dom/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/core/dom/ContextFeaturesClientImpl.h View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
A + third_party/WebKit/Source/core/dom/ContextFeaturesClientImpl.cpp View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 4 5 6 7 2 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/frame/ContentSettingsClient.h View 1 2 3 4 5 6 7 1 chunk +102 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/frame/ContentSettingsClient.cpp View 1 chunk +129 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrameClient.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/ImageDocument.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.h View 1 2 3 4 5 6 7 3 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.cpp View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.h View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 6 4 chunks +8 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/MixedContentChecker.cpp View 1 6 chunks +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webdatabase/DatabaseClient.h View 1 chunk +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp View 1 2 3 4 5 2 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
D third_party/WebKit/Source/web/ContextFeaturesClientImpl.h View 1 chunk +0 lines, -61 lines 0 comments Download
D third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp View 1 chunk +0 lines, -150 lines 0 comments Download
D third_party/WebKit/Source/web/DatabaseClientImpl.h View 1 chunk +0 lines, -61 lines 0 comments Download
D third_party/WebKit/Source/web/DatabaseClientImpl.cpp View 1 chunk +0 lines, -67 lines 0 comments Download
M third_party/WebKit/Source/web/DedicatedWorkerMessagingProxyProviderImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/EditorClientImpl.cpp View 1 2 2 chunks +5 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/IndexedDBClientImpl.cpp View 1 2 3 4 2 chunks +6 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/web/LocalFileSystemClient.cpp View 1 2 3 4 5 2 chunks +4 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/LocalFrameClientImpl.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/web/LocalFrameClientImpl.cpp View 1 2 3 4 5 6 7 3 chunks +4 lines, -72 lines 0 comments Download
M third_party/WebKit/Source/web/StorageClientImpl.cpp View 1 2 3 4 2 chunks +13 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 6 7 5 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 4 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
A + third_party/WebKit/public/platform/WebContentSettingsClient.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
D third_party/WebKit/public/web/WebContentSettingsClient.h View 1 chunk +0 lines, -110 lines 0 comments Download

Messages

Total messages: 69 (53 generated)
kinuko
This has become a little bigger change than I had expected (let me know if ...
3 years, 8 months ago (2017-03-31 16:13:12 UTC) #29
dcheng
https://codereview.chromium.org/2786673002/diff/80002/third_party/WebKit/Source/core/frame/ContentSettingsClient.h File third_party/WebKit/Source/core/frame/ContentSettingsClient.h (right): https://codereview.chromium.org/2786673002/diff/80002/third_party/WebKit/Source/core/frame/ContentSettingsClient.h#newcode24 third_party/WebKit/Source/core/frame/ContentSettingsClient.h:24: : public GarbageCollected<ContentSettingsClient> { FWIW, I'm not sure what ...
3 years, 8 months ago (2017-04-02 05:26:19 UTC) #36
kinuko
Updated. PTAL https://codereview.chromium.org/2786673002/diff/80002/third_party/WebKit/Source/core/frame/ContentSettingsClient.h File third_party/WebKit/Source/core/frame/ContentSettingsClient.h (right): https://codereview.chromium.org/2786673002/diff/80002/third_party/WebKit/Source/core/frame/ContentSettingsClient.h#newcode24 third_party/WebKit/Source/core/frame/ContentSettingsClient.h:24: : public GarbageCollected<ContentSettingsClient> { On 2017/04/02 05:26:19, ...
3 years, 8 months ago (2017-04-03 15:15:06 UTC) #47
dcheng
LGTM with two nits https://codereview.chromium.org/2786673002/diff/80002/third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp File third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp (right): https://codereview.chromium.org/2786673002/diff/80002/third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp#newcode68 third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp:68: if (document->frame()->contentSettingsClient()) { On 2017/04/03 ...
3 years, 8 months ago (2017-04-03 19:28:23 UTC) #50
kinuko
Thanks! Done. https://codereview.chromium.org/2786673002/diff/80002/third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp File third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp (right): https://codereview.chromium.org/2786673002/diff/80002/third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp#newcode68 third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp:68: if (document->frame()->contentSettingsClient()) { On 2017/04/03 19:28:23, dcheng ...
3 years, 8 months ago (2017-04-04 03:26:23 UTC) #51
kinuko
michaeln@ and/or haraken@: could you review changes in webdatabase Would do TBR for following changes ...
3 years, 8 months ago (2017-04-04 03:36:18 UTC) #55
haraken
https://codereview.chromium.org/2786673002/diff/170001/third_party/WebKit/Source/core/frame/ContentSettingsClient.cpp File third_party/WebKit/Source/core/frame/ContentSettingsClient.cpp (right): https://codereview.chromium.org/2786673002/diff/170001/third_party/WebKit/Source/core/frame/ContentSettingsClient.cpp#newcode64 third_party/WebKit/Source/core/frame/ContentSettingsClient.cpp:64: return enabledPerSettings; Are we intending to return what's passed ...
3 years, 8 months ago (2017-04-04 11:25:32 UTC) #56
kinuko
Thanks. https://codereview.chromium.org/2786673002/diff/170001/third_party/WebKit/Source/core/frame/ContentSettingsClient.cpp File third_party/WebKit/Source/core/frame/ContentSettingsClient.cpp (right): https://codereview.chromium.org/2786673002/diff/170001/third_party/WebKit/Source/core/frame/ContentSettingsClient.cpp#newcode64 third_party/WebKit/Source/core/frame/ContentSettingsClient.cpp:64: return enabledPerSettings; On 2017/04/04 11:25:32, haraken wrote: > ...
3 years, 8 months ago (2017-04-04 14:50:57 UTC) #57
boliu
android_webview rs lgtm
3 years, 8 months ago (2017-04-04 15:35:34 UTC) #58
michaeln
https://codereview.chromium.org/2786673002/diff/190001/third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp File third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp (right): https://codereview.chromium.org/2786673002/diff/190001/third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp#newcode68 third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp:68: DCHECK(document->frame()); lgtm... but the old code returned false in ...
3 years, 8 months ago (2017-04-04 23:45:08 UTC) #59
kinuko
On 2017/04/04 23:45:08, michaeln wrote: > https://codereview.chromium.org/2786673002/diff/190001/third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp > File third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp (right): > > https://codereview.chromium.org/2786673002/diff/190001/third_party/WebKit/Source/modules/webdatabase/DatabaseClient.cpp#newcode68 > ...
3 years, 8 months ago (2017-04-05 01:13:59 UTC) #60
haraken
LGTM as an incremental step to clean up ContentSettingsClient. https://codereview.chromium.org/2786673002/diff/170001/third_party/WebKit/Source/web/WebLocalFrameImpl.h File third_party/WebKit/Source/web/WebLocalFrameImpl.h (right): https://codereview.chromium.org/2786673002/diff/170001/third_party/WebKit/Source/web/WebLocalFrameImpl.h#newcode476 third_party/WebKit/Source/web/WebLocalFrameImpl.h:476: ...
3 years, 8 months ago (2017-04-05 02:31:08 UTC) #61
kinuko
Thanks!
3 years, 8 months ago (2017-04-05 07:09:34 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2786673002/210001
3 years, 8 months ago (2017-04-05 07:09:53 UTC) #65
jochen (gone - plz use gerrit)
chrome/renderer lgtm
3 years, 8 months ago (2017-04-05 08:34:29 UTC) #66
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 09:56:19 UTC) #69
Message was sent while issue was closed.
Committed patchset #8 (id:210001) as
https://chromium.googlesource.com/chromium/src/+/8bd5d6a15f00ab291c675c2e49b1...

Powered by Google App Engine
This is Rietveld 408576698