| 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 #include "chrome/browser/extensions/extension_gcm_app_handler.h" | 5 #include "chrome/browser/extensions/extension_gcm_app_handler.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/services/gcm/gcm_driver.h" | |
| 13 #include "chrome/browser/services/gcm/gcm_profile_service.h" | 12 #include "chrome/browser/services/gcm/gcm_profile_service.h" |
| 14 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | 13 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" |
| 14 #include "components/gcm_driver/gcm_driver.h" |
| 15 #include "content/public/browser/notification_details.h" | 15 #include "content/public/browser/notification_details.h" |
| 16 #include "content/public/browser/notification_source.h" | 16 #include "content/public/browser/notification_source.h" |
| 17 #include "extensions/browser/extension_registry.h" | 17 #include "extensions/browser/extension_registry.h" |
| 18 #include "extensions/browser/extension_system.h" | 18 #include "extensions/browser/extension_system.h" |
| 19 #include "extensions/common/extension.h" | 19 #include "extensions/common/extension.h" |
| 20 #include "extensions/common/permissions/permissions_data.h" | 20 #include "extensions/common/permissions/permissions_data.h" |
| 21 | 21 |
| 22 #if !defined(OS_ANDROID) | 22 #if !defined(OS_ANDROID) |
| 23 #include "chrome/browser/extensions/api/gcm/gcm_api.h" | 23 #include "chrome/browser/extensions/api/gcm/gcm_api.h" |
| 24 #endif | 24 #endif |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 gcm::GCMDriver* ExtensionGCMAppHandler::GetGCMDriver() const { | 130 gcm::GCMDriver* ExtensionGCMAppHandler::GetGCMDriver() const { |
| 131 return gcm::GCMProfileServiceFactory::GetForProfile(profile_)->driver(); | 131 return gcm::GCMProfileServiceFactory::GetForProfile(profile_)->driver(); |
| 132 } | 132 } |
| 133 | 133 |
| 134 void ExtensionGCMAppHandler::OnUnregisterCompleted( | 134 void ExtensionGCMAppHandler::OnUnregisterCompleted( |
| 135 const std::string& app_id, gcm::GCMClient::Result result) { | 135 const std::string& app_id, gcm::GCMClient::Result result) { |
| 136 // Nothing to do. | 136 // Nothing to do. |
| 137 } | 137 } |
| 138 | 138 |
| 139 } // namespace extensions | 139 } // namespace extensions |
| OLD | NEW |