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

Issue 324913004: Skeleton GCMAppHandler for Push API (Closed)

Created:
6 years, 6 months ago by johnme
Modified:
6 years, 6 months ago
Reviewers:
Visibility:
Public.

Description

Skeleton GCMAppHandler for Push API TODOs mark parts of this which need to be hooked up to Service Workers. Depends on https://codereview.chromium.org/317823007/ BUG=350378

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed some of fgorski's comments #

Patch Set 3 : Add wildcard app handler at startup if necessary, rather than lazily #

Patch Set 4 : Fix compile #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -33 lines) Patch
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/services/gcm/gcm_profile_service.cc View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_service_impl.h View 1 2 3 2 chunks +34 lines, -2 lines 0 comments Download
M chrome/browser/services/gcm/push_messaging_service_impl.cc View 1 2 3 1 chunk +127 lines, -6 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMListener.java View 1 2 5 chunks +8 lines, -8 lines 0 comments Download
M components/gcm_driver/gcm_app_handler.h View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_driver.h View 1 2 4 chunks +14 lines, -3 lines 1 comment Download
M components/gcm_driver/gcm_driver.cc View 1 2 3 2 chunks +19 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_driver_desktop.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/gcm_driver/gcm_driver_desktop.cc View 1 2 2 chunks +20 lines, -2 lines 0 comments Download
M content/browser/push_messaging_message_filter.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
johnme
6 years, 6 months ago (2014-06-10 14:47:05 UTC) #1
fgorski
https://codereview.chromium.org/324913004/diff/1/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (left): https://codereview.chromium.org/324913004/diff/1/chrome/browser/services/gcm/gcm_profile_service.cc#oldcode52 chrome/browser/services/gcm/gcm_profile_service.cc:52: } I think I prefer having 2 distinct method. ...
6 years, 6 months ago (2014-06-10 17:09:28 UTC) #2
johnme
Addressed some of Filip's comments https://codereview.chromium.org/324913004/diff/1/chrome/browser/services/gcm/gcm_profile_service.cc File chrome/browser/services/gcm/gcm_profile_service.cc (left): https://codereview.chromium.org/324913004/diff/1/chrome/browser/services/gcm/gcm_profile_service.cc#oldcode52 chrome/browser/services/gcm/gcm_profile_service.cc:52: } On 2014/06/10 17:09:27, ...
6 years, 6 months ago (2014-06-10 20:33:48 UTC) #3
jianli
https://codereview.chromium.org/324913004/diff/60001/components/gcm_driver/gcm_driver.h File components/gcm_driver/gcm_driver.h (right): https://codereview.chromium.org/324913004/diff/60001/components/gcm_driver/gcm_driver.h#newcode81 components/gcm_driver/gcm_driver.h:81: virtual void AddWildcardAppHandler(GCMWildcardAppHandler* handler); Having 2 versions of adding ...
6 years, 6 months ago (2014-06-13 22:51:47 UTC) #4
Michael van Ouwerkerk
6 years, 6 months ago (2014-06-18 18:32:17 UTC) #5
On 2014/06/13 22:51:47, jianli wrote:
>
https://codereview.chromium.org/324913004/diff/60001/components/gcm_driver/gc...
> File components/gcm_driver/gcm_driver.h (right):
> 
>
https://codereview.chromium.org/324913004/diff/60001/components/gcm_driver/gc...
> components/gcm_driver/gcm_driver.h:81: virtual void
> AddWildcardAppHandler(GCMWildcardAppHandler* handler);
> Having 2 versions of adding app handlers seems to be confusing because people
> might not know which one to pick. It is also hard to maintain. How about just
> using the existing version for the wildcard purpose? We can call
> AddAppHandler("push:", handler) to add a handler that is going to handle the
> messages for all app IDs prefixed with "push:".

I've landed this as r278087.

Powered by Google App Engine
This is Rietveld 408576698