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

Issue 2638413006: Add ContentSuggestionsMediator (Closed)

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

Description

Add ContentSuggestionsMediator This CL adds a Mediator level in ContentSuggestions. The mediator classes are used to create a interface between the data source in C++ and the UI in Objective-C. This CL only creates the classes to see the interactions from an architectural point. Most of the methods are no-op for now. BUG=679369 Review-Url: https://codereview.chromium.org/2638413006 Cr-Commit-Position: refs/heads/master@{#447511} Committed: https://chromium.googlesource.com/chromium/src/+/0ac7f3e7f45b25cf8b3283a7df27bf68b3a72157

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 1

Patch Set 3 : Fix #

Total comments: 49

Patch Set 4 : Address comments #

Patch Set 5 : Typo #

Total comments: 2

Patch Set 6 : Format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+422 lines, -6 lines) Patch
M ios/chrome/browser/content_suggestions/BUILD.gn View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M ios/chrome/browser/content_suggestions/content_suggestions_coordinator.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M ios/chrome/browser/content_suggestions/content_suggestions_coordinator.mm View 1 2 3 2 chunks +13 lines, -3 lines 0 comments Download
A ios/chrome/browser/content_suggestions/content_suggestions_mediator.h View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
A ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm View 1 2 3 4 5 1 chunk +113 lines, -0 lines 0 comments Download
A ios/chrome/browser/content_suggestions/content_suggestions_service_bridge_observer.h View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
A ios/chrome/browser/content_suggestions/content_suggestions_service_bridge_observer.mm View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
M ios/chrome/browser/suggestions/image_fetcher_impl.mm View 1 1 chunk +0 lines, -1 line 0 comments Download
M ios/chrome/browser/ui/browser_view_controller.mm View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/BUILD.gn View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/content_suggestions/content_suggestion.h View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/content_suggestions/content_suggestion.mm View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm View 1 2 3 4 chunks +29 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/content_suggestions/content_suggestions_data_sink.h View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/content_suggestions/content_suggestions_data_source.h View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm View 1 1 chunk +10 lines, -1 line 0 comments Download
M ios/showcase/suggestions/sc_suggestions_coordinator.mm View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (5 generated)
gambard
PTAL. https://codereview.chromium.org/2638413006/diff/20001/ios/chrome/browser/suggestions/image_fetcher_impl.mm File ios/chrome/browser/suggestions/image_fetcher_impl.mm (left): https://codereview.chromium.org/2638413006/diff/20001/ios/chrome/browser/suggestions/image_fetcher_impl.mm#oldcode43 ios/chrome/browser/suggestions/image_fetcher_impl.mm:43: NOTREACHED(); This is being fixed in another CL.
3 years, 10 months ago (2017-01-25 12:53:49 UTC) #3
lpromero
I like this global picture we talked about where the UI code basically describes the ...
3 years, 10 months ago (2017-01-26 10:10:21 UTC) #4
marq (ping after 24h)
https://codereview.chromium.org/2638413006/diff/40001/ios/chrome/browser/content_suggestions/content_suggestions_coordinator.mm File ios/chrome/browser/content_suggestions/content_suggestions_coordinator.mm (right): https://codereview.chromium.org/2638413006/diff/40001/ios/chrome/browser/content_suggestions/content_suggestions_coordinator.mm#newcode41 ios/chrome/browser/content_suggestions/content_suggestions_coordinator.mm:41: initWithContentService:IOSChromeContentSuggestionsServiceFactory:: On 2017/01/26 10:10:20, lpromero (ooo til Feb9) wrote: ...
3 years, 10 months ago (2017-01-27 12:44:56 UTC) #5
gambard
Thanks, PTAL. https://codereview.chromium.org/2638413006/diff/40001/ios/chrome/browser/content_suggestions/content_suggestions_coordinator.h File ios/chrome/browser/content_suggestions/content_suggestions_coordinator.h (right): https://codereview.chromium.org/2638413006/diff/40001/ios/chrome/browser/content_suggestions/content_suggestions_coordinator.h#newcode18 ios/chrome/browser/content_suggestions/content_suggestions_coordinator.h:18: // BrowserState uesd to create the ContentSuggestionFactory. ...
3 years, 10 months ago (2017-01-30 15:19:18 UTC) #6
marq (ping after 24h)
https://codereview.chromium.org/2638413006/diff/80001/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm File ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm (right): https://codereview.chromium.org/2638413006/diff/80001/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm#newcode73 ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm:73: - (void)contentSuggestionsService: Some sort of formatting chaos has happened.
3 years, 10 months ago (2017-02-01 09:55:40 UTC) #7
gambard
Thanks, PTAL. https://codereview.chromium.org/2638413006/diff/80001/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm File ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm (right): https://codereview.chromium.org/2638413006/diff/80001/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm#newcode73 ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm:73: - (void)contentSuggestionsService: On 2017/02/01 09:55:40, marq wrote: ...
3 years, 10 months ago (2017-02-01 13:38:07 UTC) #8
marq (ping after 24h)
lgtm
3 years, 10 months ago (2017-02-01 13:45:33 UTC) #9
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/2638413006/100001
3 years, 10 months ago (2017-02-01 13:46:04 UTC) #11
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 14:53:53 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/0ac7f3e7f45b25cf8b3283a7df27...

Powered by Google App Engine
This is Rietveld 408576698