| 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/chromeos/net/wake_on_wifi_manager.h" | 5 #include "chrome/browser/chromeos/net/wake_on_wifi_manager.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/sys_info.h" | 14 #include "base/sys_info.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "chrome/browser/chrome_notification_types.h" | 16 #include "chrome/browser/chrome_notification_types.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/services/gcm/gcm_profile_service.h" | |
| 19 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | 18 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" |
| 20 #include "chromeos/chromeos_switches.h" | 19 #include "chromeos/chromeos_switches.h" |
| 21 #include "chromeos/login/login_state.h" | 20 #include "chromeos/login/login_state.h" |
| 22 #include "chromeos/network/device_state.h" | 21 #include "chromeos/network/device_state.h" |
| 23 #include "chromeos/network/network_device_handler.h" | 22 #include "chromeos/network/network_device_handler.h" |
| 24 #include "chromeos/network/network_handler.h" | 23 #include "chromeos/network/network_handler.h" |
| 25 #include "chromeos/network/network_state_handler.h" | 24 #include "chromeos/network/network_state_handler.h" |
| 26 #include "chromeos/network/network_type_pattern.h" | 25 #include "chromeos/network/network_type_pattern.h" |
| 27 #include "components/gcm_driver/gcm_connection_observer.h" | 26 #include "components/gcm_driver/gcm_connection_observer.h" |
| 28 #include "components/gcm_driver/gcm_driver.h" | 27 #include "components/gcm_driver/gcm_driver.h" |
| 28 #include "components/gcm_driver/gcm_profile_service.h" |
| 29 #include "content/public/browser/browser_thread.h" | 29 #include "content/public/browser/browser_thread.h" |
| 30 #include "content/public/browser/notification_service.h" | 30 #include "content/public/browser/notification_service.h" |
| 31 #include "content/public/browser/notification_source.h" | 31 #include "content/public/browser/notification_source.h" |
| 32 #include "net/base/ip_endpoint.h" | 32 #include "net/base/ip_endpoint.h" |
| 33 #include "third_party/cros_system_api/dbus/service_constants.h" | 33 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 34 | 34 |
| 35 namespace chromeos { | 35 namespace chromeos { |
| 36 | 36 |
| 37 namespace { | 37 namespace { |
| 38 | 38 |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 ->WakeFromSuspendForHeartbeat( | 343 ->WakeFromSuspendForHeartbeat( |
| 344 IsWakeOnPacketEnabled(current_feature_)); | 344 IsWakeOnPacketEnabled(current_feature_)); |
| 345 } | 345 } |
| 346 } | 346 } |
| 347 | 347 |
| 348 void WakeOnWifiManager::OnProfileDestroyed(Profile* profile) { | 348 void WakeOnWifiManager::OnProfileDestroyed(Profile* profile) { |
| 349 connection_observers_.erase(profile); | 349 connection_observers_.erase(profile); |
| 350 } | 350 } |
| 351 | 351 |
| 352 } // namespace chromeos | 352 } // namespace chromeos |
| OLD | NEW |