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

Unified Diff: chrome/browser/chromeos/cros_network_library.h

Issue 339013: cros: doing dbus stuff on the file thread==disaster. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros_network_library.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros_network_library.h
===================================================================
--- chrome/browser/chromeos/cros_network_library.h (revision 29405)
+++ chrome/browser/chromeos/cros_network_library.h (working copy)
@@ -9,6 +9,7 @@
#include <vector>
#include "base/observer_list.h"
+#include "base/platform_thread.h"
#include "base/singleton.h"
#include "base/string16.h"
#include "third_party/cros/chromeos_network.h"
@@ -19,7 +20,8 @@
encryption(chromeos::NONE),
strength(0),
connecting(false),
- connected(false) {}
+ connected(false),
+ destroyed(false) {}
WifiNetwork(const std::string& ssid, bool encrypted,
chromeos::EncryptionType encryption, int strength,
bool connecting, bool connected)
@@ -28,7 +30,8 @@
encryption(encryption),
strength(strength),
connecting(connecting),
- connected(connected) {}
+ connected(connected),
+ destroyed(false) {}
// WifiNetworks are sorted by ssids.
bool operator< (const WifiNetwork& other) const {
@@ -41,6 +44,7 @@
int strength;
bool connecting;
bool connected;
+ bool destroyed;
};
typedef std::vector<WifiNetwork> WifiNetworkVector;
@@ -93,8 +97,7 @@
// This methods loads the initial list of networks on startup and starts the
// monitoring of network changes.
- // It should be called on a background thread.
- void InitOnBackgroundThread();
+ void Init();
// Update the network with the a list of wifi networks and ethernet status.
// This will notify all the Observers.
« 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