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

Side by Side Diff: chrome/browser/chromeos/cros_network_library.h

Issue 269029: Update cros network library code to work with the latest cros API that sends ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros_network_library.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_CROS_NETWORK_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 private: 67 private:
68 friend struct DefaultSingletonTraits<CrosNetworkLibrary>; 68 friend struct DefaultSingletonTraits<CrosNetworkLibrary>;
69 69
70 CrosNetworkLibrary(); 70 CrosNetworkLibrary();
71 ~CrosNetworkLibrary() {} 71 ~CrosNetworkLibrary() {}
72 72
73 // This method is called when there's a change in network status. 73 // This method is called when there's a change in network status.
74 // This will notify all the Observers. 74 // This will notify all the Observers.
75 static void NetworkStatusChangedHandler(void* object, 75 static void NetworkStatusChangedHandler(void* object,
76 const chromeos::ServiceInfo& service); 76 const chromeos::ServiceStatus& service_status);
77 77
78 // Parse a ServiceInfo objects and update our status. 78 // Parse a ServiceInfo objects and update our status.
79 void ParseNetworkServiceInfo(const chromeos::ServiceInfo& service); 79 void ParseNetworkServiceInfo(const chromeos::ServiceInfo& service);
80 80
81 // Initialize the network status on startup. 81 // Initialize the network status on startup.
82 void InitNetworkStatus(); 82 void InitNetworkStatus();
83 83
84 ObserverList<Observer> observers_; 84 ObserverList<Observer> observers_;
85 85
86 // Whether or not we are connected to the ethernet line. 86 // Whether or not we are connected to the ethernet line.
87 bool ethernet_connected_; 87 bool ethernet_connected_;
88 88
89 // The current connected (or connecting) wireless ssid. Empty if none. 89 // The current connected (or connecting) wireless ssid. Empty if none.
90 std::string wifi_ssid_; 90 std::string wifi_ssid_;
91 91
92 // Whether or not we are connecting right now. 92 // Whether or not we are connecting right now.
93 bool wifi_connecting_; 93 bool wifi_connecting_;
94 94
95 // The strength of the currently connected ssid. 95 // The strength of the currently connected ssid.
96 int wifi_strength_; 96 int wifi_strength_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(CrosNetworkLibrary); 98 DISALLOW_COPY_AND_ASSIGN(CrosNetworkLibrary);
99 }; 99 };
100 100
101 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 101 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros_network_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698