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