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

Unified Diff: components/gcm_driver/fake_gcm_client.h

Issue 1137463003: Support getting and deleting token for Instance ID. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch to land Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/gcm_driver/BUILD.gn ('k') | components/gcm_driver/fake_gcm_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/fake_gcm_client.h
diff --git a/components/gcm_driver/fake_gcm_client.h b/components/gcm_driver/fake_gcm_client.h
index 155c34232e076c303cd5d14283a1ad82e724f4dc..73fa6b9f93ef96b318f3f8a457c47f47ad9dbc70 100644
--- a/components/gcm_driver/fake_gcm_client.h
+++ b/components/gcm_driver/fake_gcm_client.h
@@ -41,9 +41,9 @@ class FakeGCMClient : public GCMClient {
Delegate* delegate) override;
void Start(StartMode start_mode) override;
void Stop() override;
- void Register(const std::string& app_id,
- const std::vector<std::string>& sender_ids) override;
- void Unregister(const std::string& app_id) override;
+ void Register(const linked_ptr<RegistrationInfo>& registration_info) override;
+ void Unregister(
+ const linked_ptr<RegistrationInfo>& registration_info) override;
void Send(const std::string& app_id,
const std::string& receiver_id,
const OutgoingMessage& message) override;
@@ -57,9 +57,12 @@ class FakeGCMClient : public GCMClient {
void SetLastTokenFetchTime(const base::Time& time) override;
void UpdateHeartbeatTimer(scoped_ptr<base::Timer> timer) override;
void AddInstanceIDData(const std::string& app_id,
- const std::string& instance_id_data) override;
+ const std::string& instance_id,
+ const std::string& extra_data) override;
void RemoveInstanceIDData(const std::string& app_id) override;
- std::string GetInstanceIDData(const std::string& app_id) override;
+ void GetInstanceIDData(const std::string& app_id,
+ std::string* instance_id,
+ std::string* extra_data) override;
void AddHeartbeatInterval(const std::string& scope, int interval_ms) override;
void RemoveHeartbeatInterval(const std::string& scope) override;
@@ -84,9 +87,11 @@ class FakeGCMClient : public GCMClient {
// Called on IO thread.
void DoStart();
void Started();
- void RegisterFinished(const std::string& app_id,
- const std::string& registrion_id);
- void UnregisterFinished(const std::string& app_id);
+ void RegisterFinished(
+ const linked_ptr<RegistrationInfo>& registration_info,
+ const std::string& registrion_id);
+ void UnregisterFinished(
+ const linked_ptr<RegistrationInfo>& registration_info);
void SendFinished(const std::string& app_id, const OutgoingMessage& message);
void MessageReceived(const std::string& app_id,
const IncomingMessage& message);
« no previous file with comments | « components/gcm_driver/BUILD.gn ('k') | components/gcm_driver/fake_gcm_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698