Hook PushMessagingMessageFilter up to GCMDriver
commitde1fb60b919380d6ae0aa07cfae01300b82fef09
authorjohnme@chromium.org <johnme@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 12 Jun 2014 20:43:00 +0000 (12 20:43 +0000)
committerjohnme@chromium.org <johnme@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 12 Jun 2014 20:43:00 +0000 (12 20:43 +0000)
treed1a04023f8e0053c9efaf3c7443a6488e33b2ed2
parente31e8078d4824a1765d5b0e9ab58f72d15cf0de9
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

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276792 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