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

Issue 2231983002: Expose Physical Web data (Closed)

Created:
4 years, 4 months ago by hayesjordan
Modified:
4 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose Physical Web data The goal is to create an API for pushing changes of Physical Web data, such as new URLs found, so that other parties can react to the change without constantly pulling the data. To do this we are providing an API that allows others to register a listener for push updates when data changes. BUG=636490 Committed: https://crrev.com/1098aecd3818cf9eef26cfa77aed4ae51f6621c6 Cr-Commit-Position: refs/heads/master@{#413948}

Patch Set 1 #

Total comments: 4

Patch Set 2 : cco3 comment fixes #

Total comments: 2

Patch Set 3 : Address mattreynolds comments #

Patch Set 4 : Address mattreynolds comments #

Total comments: 2

Patch Set 5 : Address cco3 comments #

Total comments: 4

Patch Set 6 : Address mattreynolds comments #

Total comments: 14

Patch Set 7 : Address Olivier's comments #

Patch Set 8 : Squash changes and sync #

Patch Set 9 : Fix build errors #

Total comments: 2

Patch Set 10 : Address mattreynolds comments #

Total comments: 1

Patch Set 11 : Reordered forward declarations #

Total comments: 2

Patch Set 12 : Address Mark's comments #

Patch Set 13 : Fix build failure #

Patch Set 14 : Fix build errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -0 lines) Patch
M components/omnibox/browser/physical_web_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M components/physical_web/data_source/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M components/physical_web/data_source/physical_web_data_source.h View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
A components/physical_web/data_source/physical_web_listener.h View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download
M ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -0 lines 0 comments Download
M ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 61 (21 generated)
hayesjordan
4 years, 4 months ago (2016-08-12 17:19:38 UTC) #2
hayesjordan
4 years, 4 months ago (2016-08-12 17:20:30 UTC) #4
cco3
https://codereview.chromium.org/2231983002/diff/1/components/physical_web/data_source/physical_web_listener.h File components/physical_web/data_source/physical_web_listener.h (right): https://codereview.chromium.org/2231983002/diff/1/components/physical_web/data_source/physical_web_listener.h#newcode12 components/physical_web/data_source/physical_web_listener.h:12: // On update will be called when the physical ...
4 years, 4 months ago (2016-08-12 17:23:47 UTC) #5
hayesjordan
https://codereview.chromium.org/2231983002/diff/1/components/physical_web/data_source/physical_web_listener.h File components/physical_web/data_source/physical_web_listener.h (right): https://codereview.chromium.org/2231983002/diff/1/components/physical_web/data_source/physical_web_listener.h#newcode12 components/physical_web/data_source/physical_web_listener.h:12: // On update will be called when the physical ...
4 years, 4 months ago (2016-08-12 19:05:37 UTC) #6
cco3
Matt, does this look good to you or do you want a more granular listener?
4 years, 4 months ago (2016-08-12 19:08:55 UTC) #7
mattreynolds
Let's split OnUpdate into OnFound, OnLost, and OnDistanceChanged to mirror Nearby's API. https://codereview.chromium.org/2231983002/diff/20001/components/physical_web/data_source/physical_web_data_source.h File components/physical_web/data_source/physical_web_data_source.h ...
4 years, 4 months ago (2016-08-12 23:07:30 UTC) #8
hayesjordan
https://codereview.chromium.org/2231983002/diff/20001/components/physical_web/data_source/physical_web_data_source.h File components/physical_web/data_source/physical_web_data_source.h (right): https://codereview.chromium.org/2231983002/diff/20001/components/physical_web/data_source/physical_web_data_source.h#newcode42 components/physical_web/data_source/physical_web_data_source.h:42: virtual void RegisterListener(PhysicalWebListener physical_web_listner) = 0; On 2016/08/12 23:07:30, ...
4 years, 4 months ago (2016-08-15 14:38:08 UTC) #9
cco3
https://codereview.chromium.org/2231983002/diff/60001/components/physical_web/data_source/physical_web_listener.h File components/physical_web/data_source/physical_web_listener.h (right): https://codereview.chromium.org/2231983002/diff/60001/components/physical_web/data_source/physical_web_listener.h#newcode15 components/physical_web/data_source/physical_web_listener.h:15: virtual void OnFound(string& url) = 0; const (same below)
4 years, 4 months ago (2016-08-15 19:12:24 UTC) #10
hayesjordan
https://codereview.chromium.org/2231983002/diff/60001/components/physical_web/data_source/physical_web_listener.h File components/physical_web/data_source/physical_web_listener.h (right): https://codereview.chromium.org/2231983002/diff/60001/components/physical_web/data_source/physical_web_listener.h#newcode15 components/physical_web/data_source/physical_web_listener.h:15: virtual void OnFound(string& url) = 0; On 2016/08/15 19:12:24, ...
4 years, 4 months ago (2016-08-16 16:59:57 UTC) #11
mattreynolds
https://codereview.chromium.org/2231983002/diff/80001/components/physical_web/data_source/physical_web_data_source.h File components/physical_web/data_source/physical_web_data_source.h (right): https://codereview.chromium.org/2231983002/diff/80001/components/physical_web/data_source/physical_web_data_source.h#newcode42 components/physical_web/data_source/physical_web_data_source.h:42: virtual void RegisterListener(PhysicalWebListener physical_web_listener) = 0; Pass the listener ...
4 years, 4 months ago (2016-08-16 17:35:46 UTC) #12
hayesjordan
https://codereview.chromium.org/2231983002/diff/80001/components/physical_web/data_source/physical_web_data_source.h File components/physical_web/data_source/physical_web_data_source.h (right): https://codereview.chromium.org/2231983002/diff/80001/components/physical_web/data_source/physical_web_data_source.h#newcode42 components/physical_web/data_source/physical_web_data_source.h:42: virtual void RegisterListener(PhysicalWebListener physical_web_listener) = 0; On 2016/08/16 17:35:46, ...
4 years, 4 months ago (2016-08-16 17:40:31 UTC) #13
mattreynolds
lgtm
4 years, 4 months ago (2016-08-16 17:45:37 UTC) #14
hayesjordan
Vitalii, this the API for getting push notifications for changes in the Physical Web data.
4 years, 4 months ago (2016-08-16 20:45:50 UTC) #17
vitaliii
On 2016/08/16 20:45:50, hayesjordan wrote: > Vitalii, this the API for getting push notifications for ...
4 years, 4 months ago (2016-08-17 14:28:41 UTC) #18
cco3
On 2016/08/17 14:28:41, vitaliii wrote: > On 2016/08/16 20:45:50, hayesjordan wrote: > > Vitalii, this ...
4 years, 4 months ago (2016-08-17 17:22:20 UTC) #19
cco3
Hi Olivier, would you be able to take a look at this change?
4 years, 4 months ago (2016-08-17 17:22:49 UTC) #20
vitaliii
On 2016/08/17 17:22:20, cco3 wrote: > The idea is that this will let you know ...
4 years, 4 months ago (2016-08-18 06:32:13 UTC) #21
Olivier
https://codereview.chromium.org/2231983002/diff/100001/components/physical_web/data_source/physical_web_data_source.h File components/physical_web/data_source/physical_web_data_source.h (right): https://codereview.chromium.org/2231983002/diff/100001/components/physical_web/data_source/physical_web_data_source.h#newcode10 components/physical_web/data_source/physical_web_data_source.h:10: #include physical_web_listener.h All include path must be full path ...
4 years, 4 months ago (2016-08-22 07:45:09 UTC) #22
cco3
https://codereview.chromium.org/2231983002/diff/100001/components/physical_web/data_source/physical_web_listener.h File components/physical_web/data_source/physical_web_listener.h (right): https://codereview.chromium.org/2231983002/diff/100001/components/physical_web/data_source/physical_web_listener.h#newcode11 components/physical_web/data_source/physical_web_listener.h:11: class PhysicalWebListener { On 2016/08/22 07:45:09, Olivier Robin wrote: ...
4 years, 3 months ago (2016-08-22 17:02:44 UTC) #23
hayesjordan
https://codereview.chromium.org/2231983002/diff/100001/components/physical_web/data_source/physical_web_data_source.h File components/physical_web/data_source/physical_web_data_source.h (right): https://codereview.chromium.org/2231983002/diff/100001/components/physical_web/data_source/physical_web_data_source.h#newcode10 components/physical_web/data_source/physical_web_data_source.h:10: #include physical_web_listener.h On 2016/08/22 07:45:09, Olivier Robin wrote: > ...
4 years, 3 months ago (2016-08-22 17:06:22 UTC) #24
Olivier
lgtm
4 years, 3 months ago (2016-08-23 08:51:41 UTC) #25
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/2231983002/120001
4 years, 3 months ago (2016-08-23 16:45:30 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/56820)
4 years, 3 months ago (2016-08-23 16:55:38 UTC) #30
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/2231983002/140001
4 years, 3 months ago (2016-08-23 17:17:16 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/56838)
4 years, 3 months ago (2016-08-23 17:28:11 UTC) #35
hayesjordan
Matt could you take a look at the updates?
4 years, 3 months ago (2016-08-23 18:55:45 UTC) #36
mattreynolds
https://codereview.chromium.org/2231983002/diff/160001/ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h File ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h (right): https://codereview.chromium.org/2231983002/diff/160001/ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h#newcode17 ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h:17: @class PhysicalWebListener; This forward declaration should just be "class ...
4 years, 3 months ago (2016-08-23 19:33:43 UTC) #37
hayesjordan
https://codereview.chromium.org/2231983002/diff/160001/ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h File ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h (right): https://codereview.chromium.org/2231983002/diff/160001/ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h#newcode17 ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h:17: @class PhysicalWebListener; On 2016/08/23 19:33:42, mattreynolds wrote: > This ...
4 years, 3 months ago (2016-08-23 19:36:20 UTC) #38
mattreynolds
lgtm https://codereview.chromium.org/2231983002/diff/180001/ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h File ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h (right): https://codereview.chromium.org/2231983002/diff/180001/ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h#newcode17 ios/chrome/common/physical_web/ios_chrome_physical_web_data_source.h:17: class PhysicalWebListener; Let's move this up with the ...
4 years, 3 months ago (2016-08-23 21:38:11 UTC) #39
hayesjordan
mpearson@chromium.org: Please review changes in physical_web_provider_unittest.cc
4 years, 3 months ago (2016-08-23 21:39:49 UTC) #41
Mark P
https://codereview.chromium.org/2231983002/diff/200001/components/omnibox/browser/physical_web_provider_unittest.cc File components/omnibox/browser/physical_web_provider_unittest.cc (right): https://codereview.chromium.org/2231983002/diff/200001/components/omnibox/browser/physical_web_provider_unittest.cc#newcode45 components/omnibox/browser/physical_web_provider_unittest.cc:45: void RegisterListener(PhysicalWebListener* physical_web_listener) {} Shouldn't you have the override ...
4 years, 3 months ago (2016-08-23 21:47:48 UTC) #42
hayesjordan
https://codereview.chromium.org/2231983002/diff/200001/components/omnibox/browser/physical_web_provider_unittest.cc File components/omnibox/browser/physical_web_provider_unittest.cc (right): https://codereview.chromium.org/2231983002/diff/200001/components/omnibox/browser/physical_web_provider_unittest.cc#newcode45 components/omnibox/browser/physical_web_provider_unittest.cc:45: void RegisterListener(PhysicalWebListener* physical_web_listener) {} On 2016/08/23 21:47:48, Mark P ...
4 years, 3 months ago (2016-08-23 22:01:45 UTC) #43
Mark P
components/omnibox/browser/physical_web_provider_unittest.cc lgtm
4 years, 3 months ago (2016-08-23 22:03:27 UTC) #44
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/2231983002/220001
4 years, 3 months ago (2016-08-23 22:09:13 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/57140)
4 years, 3 months ago (2016-08-23 22:20:54 UTC) #49
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/2231983002/240001
4 years, 3 months ago (2016-08-23 22:36:12 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/57102) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-08-23 22:48:41 UTC) #54
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/2231983002/260001
4 years, 3 months ago (2016-08-23 23:25:41 UTC) #57
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 3 months ago (2016-08-24 02:33:40 UTC) #59
commit-bot: I haz the power
4 years, 3 months ago (2016-08-24 02:36:39 UTC) #61
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/1098aecd3818cf9eef26cfa77aed4ae51f6621c6
Cr-Commit-Position: refs/heads/master@{#413948}

Powered by Google App Engine
This is Rietveld 408576698