| Index: components/gcm_driver/gcm_driver_desktop.h
|
| diff --git a/components/gcm_driver/gcm_driver_desktop.h b/components/gcm_driver/gcm_driver_desktop.h
|
| index cdd0ac79a685c8064adf84eb63b25a56367ee674..c7568035d4152bb1c6a5a84162f95084fc57655a 100644
|
| --- a/components/gcm_driver/gcm_driver_desktop.h
|
| +++ b/components/gcm_driver/gcm_driver_desktop.h
|
| @@ -58,6 +58,11 @@ class GCMDriverDesktop : public GCMDriver,
|
| ~GCMDriverDesktop() override;
|
|
|
| // GCMDriver implementation:
|
| + void ValidateRegistration(
|
| + const std::string& app_id,
|
| + const std::vector<std::string>& sender_ids,
|
| + const std::string& registration_id,
|
| + const ValidateRegistrationCallback& callback) override;
|
| void Shutdown() override;
|
| void OnSignedIn() override;
|
| void OnSignedOut() override;
|
| @@ -111,6 +116,11 @@ class GCMDriverDesktop : public GCMDriver,
|
| const std::string& scope,
|
| const std::map<std::string, std::string>& options,
|
| const GetTokenCallback& callback) override;
|
| + void ValidateToken(const std::string& app_id,
|
| + const std::string& authorized_entity,
|
| + const std::string& scope,
|
| + const std::string& token,
|
| + const ValidateTokenCallback& callback) override;
|
| void DeleteToken(const std::string& app_id,
|
| const std::string& authorized_entity,
|
| const std::string& scope,
|
| @@ -130,6 +140,11 @@ class GCMDriverDesktop : public GCMDriver,
|
| bool operator()(const TokenTuple& a, const TokenTuple& b) const;
|
| };
|
|
|
| + void DoValidateRegistration(
|
| + std::unique_ptr<RegistrationInfo> registration_info,
|
| + const std::string& registration_id,
|
| + const ValidateRegistrationCallback& callback);
|
| +
|
| // Stops the GCM service. It can be restarted by calling EnsureStarted again.
|
| void Stop();
|
|
|
|
|