Hook PushMessagingMessageFilter up to GCMDriver
commitc5c89d0418fa2386b3b5da8232252ba4770dc06c
authorjohnme@chromium.org <johnme@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 13 Jun 2014 14:43:37 +0000 (13 14:43 +0000)
committerjohnme@chromium.org <johnme@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 13 Jun 2014 14:43:37 +0000 (13 14:43 +0000)
tree3573784623cd44075061dbf0d51e41e8890f1091
parent8bb3e51628226abcc38a66b2a50adbdbefe5152f
Hook PushMessagingMessageFilter up to GCMDriver

Add plumbing for registration from push service-agnostic content layer
to GCMDriver in chrome layer.

To achieve this, GCMProfileService owns an implementation of a new
PushMessagingService class, which can be used from the content layer.

Based on mvanouwerkerk's prototype in https://codereview.chromium.org/186023002, but significantly refactored.

BUG=350384
TBR=benm@chromium.org

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276792

Review URL: https://codereview.chromium.org/317823007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277016 0039d316-1c4b-4281-b951-d872f2087c98
25 files changed:
android_webview/browser/aw_browser_context.cc
android_webview/browser/aw_browser_context.h
chrome/browser/profiles/off_the_record_profile_impl.cc
chrome/browser/profiles/off_the_record_profile_impl.h
chrome/browser/profiles/profile_impl.cc
chrome/browser/profiles/profile_impl.h
chrome/browser/services/gcm/gcm_profile_service.cc
chrome/browser/services/gcm/gcm_profile_service.h
chrome/browser/services/gcm/push_messaging_service_impl.cc [new file with mode: 0644]
chrome/browser/services/gcm/push_messaging_service_impl.h [new file with mode: 0644]
chrome/browser/ui/app_list/test/fake_profile.cc
chrome/browser/ui/app_list/test/fake_profile.h
chrome/chrome_browser.gypi
chrome/test/base/testing_profile.cc
chrome/test/base/testing_profile.h
content/browser/download/download_manager_impl_unittest.cc
content/browser/push_messaging_message_filter.cc
content/browser/push_messaging_message_filter.h
content/browser/renderer_host/render_process_host_impl.cc
content/public/browser/browser_context.h
content/public/browser/push_messaging_service.h [new file with mode: 0644]
content/public/test/test_browser_context.cc
content/public/test/test_browser_context.h
content/shell/browser/shell_browser_context.cc
content/shell/browser/shell_browser_context.h