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

Side by Side Diff: chrome/browser/chromeos/net/network_change_notifier_chromeos.h

Issue 9147026: API for connection type (Ethernet/WIFI/WWAN ...) in NetworkChangeNotifier. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed a typo Created 8 years, 7 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
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 CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 25 matching lines...) Expand all
36 36
37 private: 37 private:
38 friend class OnlineStatusReportThreadTask; 38 friend class OnlineStatusReportThreadTask;
39 39
40 // PowerManagerClient::Observer overrides. 40 // PowerManagerClient::Observer overrides.
41 virtual void PowerChanged(const PowerSupplyStatus& status) OVERRIDE; 41 virtual void PowerChanged(const PowerSupplyStatus& status) OVERRIDE;
42 42
43 virtual void SystemResumed() OVERRIDE; 43 virtual void SystemResumed() OVERRIDE;
44 44
45 // NetworkChangeNotifier overrides. 45 // NetworkChangeNotifier overrides.
46 virtual bool IsCurrentlyOffline() const OVERRIDE; 46 virtual net::NetworkChangeNotifier::ConnectionType
47 GetCurrentConnectionType() const OVERRIDE;
47 48
48 // NetworkManagerObserver overrides: 49 // NetworkManagerObserver overrides:
49 virtual void OnNetworkManagerChanged(chromeos::NetworkLibrary* obj) OVERRIDE; 50 virtual void OnNetworkManagerChanged(chromeos::NetworkLibrary* obj) OVERRIDE;
50 51
51 // NetworkObserver overrides: 52 // NetworkObserver overrides:
52 virtual void OnNetworkChanged(chromeos::NetworkLibrary* cros, 53 virtual void OnNetworkChanged(chromeos::NetworkLibrary* cros,
53 const chromeos::Network* network) OVERRIDE; 54 const chromeos::Network* network) OVERRIDE;
54 55
55 // Initiate online status change reporting. 56 // Initiate online status change reporting.
56 void ReportOnlineStateChange(bool is_online); 57 void ReportOnlineStateChange(bool is_online);
(...skipping 24 matching lines...) Expand all
81 // The last reported online state. 82 // The last reported online state.
82 bool is_online_; 83 bool is_online_;
83 base::WeakPtrFactory<NetworkChangeNotifierChromeos> weak_factory_; 84 base::WeakPtrFactory<NetworkChangeNotifierChromeos> weak_factory_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos); 86 DISALLOW_COPY_AND_ASSIGN(NetworkChangeNotifierChromeos);
86 }; 87 };
87 88
88 } // namespace chromeos 89 } // namespace chromeos
89 90
90 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_ 91 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_CHANGE_NOTIFIER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/chromeos/net/network_change_notifier_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698