Support getting and deleting token for Instance ID.
commit7a0c9b6d322d0a501fc114d3854df944fc059f0f
authorjianli <jianli@chromium.org>
Tue, 26 May 2015 23:24:47 +0000 (26 16:24 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 26 May 2015 23:25:26 +0000 (26 23:25 +0000)
treeab8af00aaa656b0288ae748f007baa3dfb0c370f
parent45ab39af3cc293e150158bf06515a47319db9f79
Support getting and deleting token for Instance ID.

GCM's registration and unregistration request have been refactored to
support token requests for Instance ID.

BUG=477084
TEST=new tests

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

Cr-Commit-Position: refs/heads/master@{#331475}
59 files changed:
chrome/browser/extensions/api/instance_id/instance_id_api.cc
chrome/browser/extensions/api/instance_id/instance_id_api.h
chrome/test/data/extensions/api_test/instance_id/delete_token/delete_token.js
chrome/test/data/extensions/api_test/instance_id/get_token/get_token.js
components/gcm_driver.gypi
components/gcm_driver/BUILD.gn
components/gcm_driver/fake_gcm_client.cc
components/gcm_driver/fake_gcm_client.h
components/gcm_driver/fake_gcm_driver.cc
components/gcm_driver/fake_gcm_driver.h
components/gcm_driver/gcm_client.h
components/gcm_driver/gcm_client_impl.cc
components/gcm_driver/gcm_client_impl.h
components/gcm_driver/gcm_client_impl_unittest.cc
components/gcm_driver/gcm_driver.cc
components/gcm_driver/gcm_driver.h
components/gcm_driver/gcm_driver_android.cc
components/gcm_driver/gcm_driver_android.h
components/gcm_driver/gcm_driver_desktop.cc
components/gcm_driver/gcm_driver_desktop.h
components/gcm_driver/gcm_stats_recorder_impl.cc
components/gcm_driver/gcm_stats_recorder_impl.h
components/gcm_driver/gcm_stats_recorder_impl_unittest.cc
components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.cc
components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.h
components/gcm_driver/instance_id/instance_id.h
components/gcm_driver/instance_id/instance_id_driver_unittest.cc
components/gcm_driver/instance_id/instance_id_impl.cc
components/gcm_driver/instance_id/instance_id_impl.h
components/gcm_driver/registration_info.cc [new file with mode: 0644]
components/gcm_driver/registration_info.h [new file with mode: 0644]
google_apis/gcm/BUILD.gn
google_apis/gcm/base/gcm_util.cc [new file with mode: 0644]
google_apis/gcm/base/gcm_util.h [new file with mode: 0644]
google_apis/gcm/engine/gcm_registration_request_handler.cc [new file with mode: 0644]
google_apis/gcm/engine/gcm_registration_request_handler.h [new file with mode: 0644]
google_apis/gcm/engine/gcm_store.h
google_apis/gcm/engine/gcm_store_impl.cc
google_apis/gcm/engine/gcm_store_impl.h
google_apis/gcm/engine/gcm_store_impl_unittest.cc
google_apis/gcm/engine/gcm_unregistration_request_handler.cc [new file with mode: 0644]
google_apis/gcm/engine/gcm_unregistration_request_handler.h [new file with mode: 0644]
google_apis/gcm/engine/gservices_settings_unittest.cc
google_apis/gcm/engine/instance_id_delete_token_request_handler.cc [new file with mode: 0644]
google_apis/gcm/engine/instance_id_delete_token_request_handler.h [new file with mode: 0644]
google_apis/gcm/engine/instance_id_get_token_request_handler.cc [new file with mode: 0644]
google_apis/gcm/engine/instance_id_get_token_request_handler.h [new file with mode: 0644]
google_apis/gcm/engine/registration_info.cc [deleted file]
google_apis/gcm/engine/registration_info.h [deleted file]
google_apis/gcm/engine/registration_request.cc
google_apis/gcm/engine/registration_request.h
google_apis/gcm/engine/registration_request_unittest.cc
google_apis/gcm/engine/unregistration_request.cc
google_apis/gcm/engine/unregistration_request.h
google_apis/gcm/engine/unregistration_request_unittest.cc
google_apis/gcm/gcm.gyp
google_apis/gcm/monitoring/fake_gcm_stats_recorder.cc
google_apis/gcm/monitoring/fake_gcm_stats_recorder.h
google_apis/gcm/monitoring/gcm_stats_recorder.h