Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: chromeos/network/network_change_notifier_chromeos.h

Issue 240343004: chromeos: Update IdleActionImminent and SuspendDone handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROMEOS_NETWORK_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_
6 #define CHROMEOS_NETWORK_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ 6 #define CHROMEOS_NETWORK_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 18 matching lines...) Expand all
29 void Initialize(); 29 void Initialize();
30 30
31 // Stops observing changes from the network state handler. 31 // Stops observing changes from the network state handler.
32 void Shutdown(); 32 void Shutdown();
33 33
34 // NetworkChangeNotifier overrides. 34 // NetworkChangeNotifier overrides.
35 virtual net::NetworkChangeNotifier::ConnectionType 35 virtual net::NetworkChangeNotifier::ConnectionType
36 GetCurrentConnectionType() const OVERRIDE; 36 GetCurrentConnectionType() const OVERRIDE;
37 37
38 // PowerManagerClient::Observer overrides. 38 // PowerManagerClient::Observer overrides.
39 virtual void SystemResumed(const base::TimeDelta& sleep_duration) OVERRIDE; 39 virtual void SuspendDone(const base::TimeDelta& sleep_duration) OVERRIDE;
40 40
41 // NetworkStateHandlerObserver overrides. 41 // NetworkStateHandlerObserver overrides.
42 virtual void DefaultNetworkChanged( 42 virtual void DefaultNetworkChanged(
43 const chromeos::NetworkState* default_network) OVERRIDE; 43 const chromeos::NetworkState* default_network) OVERRIDE;
44 44
45 private: 45 private:
46 FRIEND_TEST_ALL_PREFIXES(NetworkChangeNotifierChromeosTest, 46 FRIEND_TEST_ALL_PREFIXES(NetworkChangeNotifierChromeosTest,
47 ConnectionTypeFromShill); 47 ConnectionTypeFromShill);
48 friend class NetworkChangeNotifierChromeosUpdateTest; 48 friend class NetworkChangeNotifierChromeosUpdateTest;
49 49
(...skipping 29 matching lines...) Expand all
79 std::string service_path_; 79 std::string service_path_;
80 80
81 scoped_ptr<DnsConfigService> dns_config_service_; 81 scoped_ptr<DnsConfigService> dns_config_service_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); 83 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos);
84 }; 84 };
85 85
86 } // namespace chromeos 86 } // namespace chromeos
87 87
88 #endif // CHROMEOS_NETWORK_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ 88 #endif // CHROMEOS_NETWORK_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698