| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ |
| 6 #define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ | 6 #define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 const PushMessagingAppIdentifier& app_identifier, | 159 const PushMessagingAppIdentifier& app_identifier, |
| 160 const content::PushMessagingService::RegisterCallback& callback, | 160 const content::PushMessagingService::RegisterCallback& callback, |
| 161 const std::string& subscription_id, | 161 const std::string& subscription_id, |
| 162 const std::string& p256dh, | 162 const std::string& p256dh, |
| 163 const std::string& auth_secret); | 163 const std::string& auth_secret); |
| 164 | 164 |
| 165 void DidRequestPermission( | 165 void DidRequestPermission( |
| 166 const PushMessagingAppIdentifier& app_identifier, | 166 const PushMessagingAppIdentifier& app_identifier, |
| 167 const content::PushSubscriptionOptions& options, | 167 const content::PushSubscriptionOptions& options, |
| 168 const content::PushMessagingService::RegisterCallback& callback, | 168 const content::PushMessagingService::RegisterCallback& callback, |
| 169 content::PermissionStatus permission_status); | 169 content::mojom::PermissionStatus permission_status); |
| 170 | 170 |
| 171 // GetEncryptionInfo method -------------------------------------------------- | 171 // GetEncryptionInfo method -------------------------------------------------- |
| 172 | 172 |
| 173 void DidGetEncryptionInfo( | 173 void DidGetEncryptionInfo( |
| 174 const PushMessagingService::EncryptionInfoCallback& callback, | 174 const PushMessagingService::EncryptionInfoCallback& callback, |
| 175 const std::string& p256dh, | 175 const std::string& p256dh, |
| 176 const std::string& auth_secret) const; | 176 const std::string& auth_secret) const; |
| 177 | 177 |
| 178 // Unsubscribe methods ------------------------------------------------------- | 178 // Unsubscribe methods ------------------------------------------------------- |
| 179 | 179 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 MessageDispatchedCallback message_dispatched_callback_for_testing_; | 235 MessageDispatchedCallback message_dispatched_callback_for_testing_; |
| 236 | 236 |
| 237 scoped_ptr<PushMessagingServiceObserver> push_messaging_service_observer_; | 237 scoped_ptr<PushMessagingServiceObserver> push_messaging_service_observer_; |
| 238 | 238 |
| 239 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; | 239 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; |
| 240 | 240 |
| 241 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); | 241 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); |
| 242 }; | 242 }; |
| 243 | 243 |
| 244 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ | 244 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ |
| OLD | NEW |