| 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_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ |
| 6 #define CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ | 6 #define CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "components/gcm_driver/gcm_app_handler.h" | 10 #include "components/gcm_driver/gcm_app_handler.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 virtual ~PushMessagingServiceImpl(); | 37 virtual ~PushMessagingServiceImpl(); |
| 38 | 38 |
| 39 // GCMAppHandler implementation. | 39 // GCMAppHandler implementation. |
| 40 virtual void ShutdownHandler() OVERRIDE; | 40 virtual void ShutdownHandler() OVERRIDE; |
| 41 virtual void OnMessage(const std::string& app_id, | 41 virtual void OnMessage(const std::string& app_id, |
| 42 const GCMClient::IncomingMessage& message) OVERRIDE; | 42 const GCMClient::IncomingMessage& message) OVERRIDE; |
| 43 virtual void OnMessagesDeleted(const std::string& app_id) OVERRIDE; | 43 virtual void OnMessagesDeleted(const std::string& app_id) OVERRIDE; |
| 44 virtual void OnSendError( | 44 virtual void OnSendError( |
| 45 const std::string& app_id, | 45 const std::string& app_id, |
| 46 const GCMClient::SendErrorDetails& send_error_details) OVERRIDE; | 46 const GCMClient::SendErrorDetails& send_error_details) OVERRIDE; |
| 47 virtual void OnSendAcknowledged(const std::string& app_id, |
| 48 const std::string& message_id) OVERRIDE; |
| 47 virtual bool CanHandle(const std::string& app_id) const OVERRIDE; | 49 virtual bool CanHandle(const std::string& app_id) const OVERRIDE; |
| 48 | 50 |
| 49 // content::PushMessagingService implementation: | 51 // content::PushMessagingService implementation: |
| 50 virtual void Register( | 52 virtual void Register( |
| 51 const GURL& origin, | 53 const GURL& origin, |
| 52 int64 service_worker_registration_id, | 54 int64 service_worker_registration_id, |
| 53 const std::string& sender_id, | 55 const std::string& sender_id, |
| 54 int renderer_id, | 56 int renderer_id, |
| 55 int render_frame_id, | 57 int render_frame_id, |
| 56 bool user_gesture, | 58 bool user_gesture, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 78 Profile* profile_; // It owns our owner. | 80 Profile* profile_; // It owns our owner. |
| 79 | 81 |
| 80 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; | 82 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; |
| 81 | 83 |
| 82 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); | 84 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); |
| 83 }; | 85 }; |
| 84 | 86 |
| 85 } // namespace gcm | 87 } // namespace gcm |
| 86 | 88 |
| 87 #endif // CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ | 89 #endif // CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ |
| OLD | NEW |