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 "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "chrome/browser/chrome_notification_types.h" | 12 #include "chrome/browser/chrome_notification_types.h" |
13 #include "chrome/browser/extensions/api/gcm/gcm_api.h" | 13 #include "chrome/browser/extensions/api/gcm/gcm_api.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | 15 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" |
16 #include "chrome/browser/services/gcm/instance_id/instance_id_profile_service.h" | 16 #include "chrome/browser/services/gcm/instance_id/instance_id_profile_service.h" |
17 #include "chrome/browser/services/gcm/instance_id/instance_id_profile_service_fa
ctory.h" | 17 #include "chrome/browser/services/gcm/instance_id/instance_id_profile_service_fa
ctory.h" |
18 #include "components/gcm_driver/gcm_driver.h" | 18 #include "components/gcm_driver/gcm_driver.h" |
19 #include "components/gcm_driver/gcm_profile_service.h" | 19 #include "components/gcm_driver/gcm_profile_service.h" |
20 #include "components/gcm_driver/instance_id/instance_id_driver.h" | 20 #include "components/gcm_driver/instance_id/instance_id_driver.h" |
21 #include "extensions/browser/extension_registry.h" | 21 #include "extensions/browser/extension_registry.h" |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 void ExtensionGCMAppHandler::AddAppHandler(const std::string& app_id) { | 194 void ExtensionGCMAppHandler::AddAppHandler(const std::string& app_id) { |
195 GetGCMDriver()->AddAppHandler(app_id, this); | 195 GetGCMDriver()->AddAppHandler(app_id, this); |
196 } | 196 } |
197 | 197 |
198 void ExtensionGCMAppHandler::RemoveAppHandler(const std::string& app_id) { | 198 void ExtensionGCMAppHandler::RemoveAppHandler(const std::string& app_id) { |
199 GetGCMDriver()->RemoveAppHandler(app_id); | 199 GetGCMDriver()->RemoveAppHandler(app_id); |
200 } | 200 } |
201 | 201 |
202 } // namespace extensions | 202 } // namespace extensions |
OLD | NEW |