OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ |
| 6 #define CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "content/public/browser/push_messaging_service.h" |
| 10 #include "google_apis/gcm/gcm_client.h" |
| 11 |
| 12 namespace gcm { |
| 13 |
| 14 class GCMProfileService; |
| 15 |
| 16 class PushMessagingServiceImpl : public content::PushMessagingService { |
| 17 public: |
| 18 explicit PushMessagingServiceImpl(GCMProfileService* gcm_profile_service); |
| 19 virtual ~PushMessagingServiceImpl(); |
| 20 |
| 21 virtual void Register( |
| 22 const std::string& app_id, |
| 23 const std::string& sender_id, |
| 24 const content::PushMessagingService::RegisterCallback& callback) OVERRIDE; |
| 25 |
| 26 void DidRegister( |
| 27 const content::PushMessagingService::RegisterCallback& callback, |
| 28 const std::string& registration_id, |
| 29 GCMClient::Result result); |
| 30 |
| 31 private: |
| 32 GCMProfileService* gcm_profile_service_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); |
| 35 }; |
| 36 |
| 37 } // namespace gcm |
| 38 |
| 39 #endif // CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ |
OLD | NEW |