| 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 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 const gcm::IncomingMessage& message) override; | 65 const gcm::IncomingMessage& message) override; |
| 66 void OnMessagesDeleted(const std::string& app_id) override; | 66 void OnMessagesDeleted(const std::string& app_id) override; |
| 67 void OnSendError( | 67 void OnSendError( |
| 68 const std::string& app_id, | 68 const std::string& app_id, |
| 69 const gcm::GCMClient::SendErrorDetails& send_error_details) override; | 69 const gcm::GCMClient::SendErrorDetails& send_error_details) override; |
| 70 void OnSendAcknowledged(const std::string& app_id, | 70 void OnSendAcknowledged(const std::string& app_id, |
| 71 const std::string& message_id) override; | 71 const std::string& message_id) override; |
| 72 bool CanHandle(const std::string& app_id) const override; | 72 bool CanHandle(const std::string& app_id) const override; |
| 73 | 73 |
| 74 // content::PushMessagingService implementation: | 74 // content::PushMessagingService implementation: |
| 75 GURL GetPushEndpoint() override; | 75 GURL GetEndpoint(bool standard_protocol) const override; |
| 76 void SubscribeFromDocument( | 76 void SubscribeFromDocument( |
| 77 const GURL& requesting_origin, | 77 const GURL& requesting_origin, |
| 78 int64_t service_worker_registration_id, | 78 int64_t service_worker_registration_id, |
| 79 int renderer_id, | 79 int renderer_id, |
| 80 int render_frame_id, | 80 int render_frame_id, |
| 81 const content::PushSubscriptionOptions& options, | 81 const content::PushSubscriptionOptions& options, |
| 82 const content::PushMessagingService::RegisterCallback& callback) override; | 82 const content::PushMessagingService::RegisterCallback& callback) override; |
| 83 void SubscribeFromWorker( | 83 void SubscribeFromWorker( |
| 84 const GURL& requesting_origin, | 84 const GURL& requesting_origin, |
| 85 int64_t service_worker_registration_id, | 85 int64_t service_worker_registration_id, |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 243 |
| 244 std::unique_ptr<PushMessagingServiceObserver> | 244 std::unique_ptr<PushMessagingServiceObserver> |
| 245 push_messaging_service_observer_; | 245 push_messaging_service_observer_; |
| 246 | 246 |
| 247 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; | 247 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; |
| 248 | 248 |
| 249 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); | 249 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); |
| 250 }; | 250 }; |
| 251 | 251 |
| 252 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ | 252 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ |
| OLD | NEW |