Chromium Code Reviews| Index: chrome/browser/push_messaging/push_messaging_service_impl.h |
| diff --git a/chrome/browser/push_messaging/push_messaging_service_impl.h b/chrome/browser/push_messaging/push_messaging_service_impl.h |
| index 333497c2725b5e76160cd1ab956befc55ba6c42d..93b4a5ecca4a4ce8e8a84011740fc656c93e4356 100644 |
| --- a/chrome/browser/push_messaging/push_messaging_service_impl.h |
| +++ b/chrome/browser/push_messaging/push_messaging_service_impl.h |
| @@ -143,6 +143,12 @@ class PushMessagingServiceImpl : public content::PushMessagingService, |
| const std::string& subscription_id, |
| gcm::GCMClient::Result result); |
| + void DidSubscribeWithPublicEncryptionKey( |
| + const PushMessagingAppIdentifier& app_identifier, |
| + const content::PushMessagingService::RegisterCallback& callback, |
| + const std::string& subscription_id, |
| + const std::vector<uint8_t>& public_key); |
| + |
| void DidRequestPermission( |
| const PushMessagingAppIdentifier& app_identifier, |
| const std::string& sender_id, |
| @@ -159,6 +165,12 @@ class PushMessagingServiceImpl : public content::PushMessagingService, |
| const content::PushMessagingService::UnregisterCallback&, |
| gcm::GCMClient::Result result); |
| + // GetPublicEncryptionKey method --------------------------------------------- |
| + |
| + void DidGetPublicEncryptionKey( |
| + const PushMessagingService::PublicKeyCallback& callback, |
| + const std::vector<uint8_t>& public_key) const; |
| + |
| // OnContentSettingChanged methods ------------------------------------------- |
| void UnsubscribeBecausePermissionRevoked( |
| @@ -173,6 +185,9 @@ class PushMessagingServiceImpl : public content::PushMessagingService, |
| // Checks if a given origin is allowed to use Push. |
| bool IsPermissionSet(const GURL& origin); |
| + // Returns whether incoming messages should support payloads. |
| + bool EnableMessagePayloads() const; |
|
jianli
2015/07/17 20:55:21
EnableMessagePayloads sounds more like an action.
Peter Beverloo
2015/07/20 17:55:53
Done.
|
| + |
| gcm::GCMDriver* GetGCMDriver() const; |
| Profile* profile_; |