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

Issue 2675763002: [ios clean] Consumer interface for WebContents (Closed)

Created:
3 years, 10 months ago by marq (ping after 24h)
Modified:
3 years, 10 months ago
Reviewers:
sdefresne, edchin
CC:
chromium-reviews, marq+scrutinize_chromium.org, lpromero+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This CL abstracts out WebContentsViewController's WebState dependency by creating a mediator and a consumer protocol. WebContentsConsumer is a "push" interface for a provider object (here the mediator) to inform a consumer (here the view controller) about changes it should reflect in its UI. Review-Url: https://codereview.chromium.org/2675763002 Cr-Commit-Position: refs/heads/master@{#448629} Committed: https://chromium.googlesource.com/chromium/src/+/92ee2d62dea54502e0f2ab2b0874620c4bed8c69

Patch Set 1 #

Patch Set 2 : Separate files. #

Total comments: 17

Patch Set 3 : Review feedback, added tests. #

Patch Set 4 : Rebase, minor fix. #

Total comments: 8

Patch Set 5 : Feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -60 lines) Patch
M ios/clean/chrome/browser/ui/web_contents/BUILD.gn View 1 2 3 chunks +32 lines, -2 lines 0 comments Download
A ios/clean/chrome/browser/ui/web_contents/web_contents_consumer.h View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.h View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
A ios/clean/chrome/browser/ui/web_contents/web_contents_mediator_unittest.mm View 1 2 1 chunk +111 lines, -0 lines 0 comments Download
M ios/clean/chrome/browser/ui/web_contents/web_contents_view_controller.h View 1 1 chunk +2 lines, -19 lines 0 comments Download
M ios/clean/chrome/browser/ui/web_contents/web_contents_view_controller.mm View 1 2 3 4 1 chunk +32 lines, -33 lines 0 comments Download
M ios/clean/chrome/browser/ui/web_contents/web_coordinator.mm View 1 3 chunks +20 lines, -6 lines 0 comments Download
M ios/clean/chrome/test/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 28 (10 generated)
marq (ping after 24h)
Separate files.
3 years, 10 months ago (2017-02-02 18:01:36 UTC) #1
marq (ping after 24h)
Ed -- First pass at a "push" view controller data source as we discussed.
3 years, 10 months ago (2017-02-02 18:10:19 UTC) #4
edchin
Overall, I love this approach. I have two mild concerns: 1) Is it necessary to ...
3 years, 10 months ago (2017-02-02 22:17:53 UTC) #5
marq (ping after 24h)
> 1) Is it necessary to introduce the new terminology: "Consumer"? Why does the > ...
3 years, 10 months ago (2017-02-03 09:48:10 UTC) #6
marq (ping after 24h)
Review feedback, added tests.
3 years, 10 months ago (2017-02-03 15:00:01 UTC) #7
edchin
https://codereview.chromium.org/2675763002/diff/20001/ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm File ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm (right): https://codereview.chromium.org/2675763002/diff/20001/ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm#newcode26 ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm:26: if (!self.webState) On 2017/02/03 09:48:10, marq wrote: > On ...
3 years, 10 months ago (2017-02-03 15:33:38 UTC) #8
edchin
LGTM. > 'Delegate' because (a) this isn't a delegation relationship, and (b) there are > ...
3 years, 10 months ago (2017-02-06 20:55:33 UTC) #9
marq (ping after 24h)
Rebase, minor fix.
3 years, 10 months ago (2017-02-07 14:24:11 UTC) #10
marq (ping after 24h)
Thanks for the review! https://codereview.chromium.org/2675763002/diff/20001/ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm File ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm (right): https://codereview.chromium.org/2675763002/diff/20001/ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm#newcode34 ios/clean/chrome/browser/ui/web_contents/web_contents_mediator.mm:34: _webState->GetNavigationManager()->LoadURLWithParams(params); On 2017/02/03 15:33:38, edchin ...
3 years, 10 months ago (2017-02-07 14:33:11 UTC) #11
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/2675763002/60001
3 years, 10 months ago (2017-02-07 14:33:30 UTC) #14
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
3 years, 10 months ago (2017-02-07 14:33:32 UTC) #16
marq (ping after 24h)
+sdefresne for committer review.
3 years, 10 months ago (2017-02-07 14:35:47 UTC) #18
sdefresne
lgtm with nits https://codereview.chromium.org/2675763002/diff/60001/ios/clean/chrome/browser/ui/web_contents/BUILD.gn File ios/clean/chrome/browser/ui/web_contents/BUILD.gn (right): https://codereview.chromium.org/2675763002/diff/60001/ios/clean/chrome/browser/ui/web_contents/BUILD.gn#newcode5 ios/clean/chrome/browser/ui/web_contents/BUILD.gn:5: source_set("web_contents") { (no action required) this ...
3 years, 10 months ago (2017-02-07 14:44:53 UTC) #19
marq (ping after 24h)
Feedback.
3 years, 10 months ago (2017-02-07 15:01:38 UTC) #20
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/2675763002/80001
3 years, 10 months ago (2017-02-07 15:02:04 UTC) #23
marq (ping after 24h)
Thanks for the review! https://codereview.chromium.org/2675763002/diff/60001/ios/clean/chrome/browser/ui/web_contents/BUILD.gn File ios/clean/chrome/browser/ui/web_contents/BUILD.gn (right): https://codereview.chromium.org/2675763002/diff/60001/ios/clean/chrome/browser/ui/web_contents/BUILD.gn#newcode5 ios/clean/chrome/browser/ui/web_contents/BUILD.gn:5: source_set("web_contents") { On 2017/02/07 14:44:53, ...
3 years, 10 months ago (2017-02-07 15:08:10 UTC) #24
sdefresne
lgtm
3 years, 10 months ago (2017-02-07 15:13:16 UTC) #25
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 15:56:03 UTC) #28
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/92ee2d62dea54502e0f2ab2b0874...

Powered by Google App Engine
This is Rietveld 408576698