| 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 <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/sys_info.h" | 12 #include "base/sys_info.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
| 15 #include "chrome/browser/chromeos/net/wake_on_wifi_connection_observer.h" | 15 #include "chrome/browser/chromeos/net/wake_on_wifi_connection_observer.h" |
| 16 #include "chrome/browser/gcm/gcm_profile_service_factory.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | |
| 18 #include "chromeos/chromeos_switches.h" | 18 #include "chromeos/chromeos_switches.h" |
| 19 #include "chromeos/login/login_state.h" | 19 #include "chromeos/login/login_state.h" |
| 20 #include "chromeos/network/device_state.h" | 20 #include "chromeos/network/device_state.h" |
| 21 #include "chromeos/network/network_device_handler.h" | 21 #include "chromeos/network/network_device_handler.h" |
| 22 #include "chromeos/network/network_handler.h" | 22 #include "chromeos/network/network_handler.h" |
| 23 #include "chromeos/network/network_state_handler.h" | 23 #include "chromeos/network/network_state_handler.h" |
| 24 #include "chromeos/network/network_type_pattern.h" | 24 #include "chromeos/network/network_type_pattern.h" |
| 25 #include "components/gcm_driver/gcm_driver.h" | 25 #include "components/gcm_driver/gcm_driver.h" |
| 26 #include "components/gcm_driver/gcm_profile_service.h" | 26 #include "components/gcm_driver/gcm_profile_service.h" |
| 27 #include "content/public/browser/browser_thread.h" | 27 #include "content/public/browser/browser_thread.h" |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 ->driver() | 266 ->driver() |
| 267 ->WakeFromSuspendForHeartbeat( | 267 ->WakeFromSuspendForHeartbeat( |
| 268 IsWakeOnPacketEnabled(current_feature_)); | 268 IsWakeOnPacketEnabled(current_feature_)); |
| 269 } | 269 } |
| 270 | 270 |
| 271 void WakeOnWifiManager::OnProfileDestroyed(Profile* profile) { | 271 void WakeOnWifiManager::OnProfileDestroyed(Profile* profile) { |
| 272 connection_observers_.erase(profile); | 272 connection_observers_.erase(profile); |
| 273 } | 273 } |
| 274 | 274 |
| 275 } // namespace chromeos | 275 } // namespace chromeos |
| OLD | NEW |