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

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: Add new files 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
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 c0b03daba88b17fbc856e8cb3c815001808468f5..921a49747e6deb8275231099a4f83fd4f2261201 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;
@@ -82,9 +82,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);

Powered by Google App Engine
This is Rietveld 408576698