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

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

Issue 4169001: Rewritten parts of NetworkLibrary to work around memory corruption that prev... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_NETWORK_MESSAGE_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 10 matching lines...) Expand all
21 namespace chromeos { 21 namespace chromeos {
22 22
23 // The network message observer displays a system notification for network 23 // The network message observer displays a system notification for network
24 // messages. 24 // messages.
25 25
26 class NetworkMessageObserver : public NetworkLibrary::Observer { 26 class NetworkMessageObserver : public NetworkLibrary::Observer {
27 public: 27 public:
28 explicit NetworkMessageObserver(Profile* profile); 28 explicit NetworkMessageObserver(Profile* profile);
29 virtual ~NetworkMessageObserver(); 29 virtual ~NetworkMessageObserver();
30 30
31 typedef std::map<std::string, WifiNetwork> ServicePathWifiMap; 31 typedef std::map<std::string, WifiNetwork*> ServicePathWifiMap;
32 typedef std::map<std::string, CellularNetwork> ServicePathCellularMap; 32 typedef std::map<std::string, CellularNetwork*> ServicePathCellularMap;
33 private: 33 private:
34 virtual void CreateModalPopup(views::WindowDelegate* view); 34 virtual void CreateModalPopup(views::WindowDelegate* view);
35 virtual void MobileSetup(const ListValue* args); 35 virtual void MobileSetup(const ListValue* args);
36 36
37 // NetworkLibrary::Observer implementation. 37 // NetworkLibrary::Observer implementation.
38 virtual void NetworkChanged(NetworkLibrary* obj); 38 virtual void NetworkChanged(NetworkLibrary* obj);
39 virtual void CellularDataPlanChanged(NetworkLibrary* obj); 39 virtual void CellularDataPlanChanged(NetworkLibrary* obj);
40 40
41 bool initialized_; 41 bool initialized_;
42 // Wifi networks by service path. 42 // Wifi networks by service path.
(...skipping 13 matching lines...) Expand all
56 // Notification for showing no data warning 56 // Notification for showing no data warning
57 SystemNotification notification_no_data_; 57 SystemNotification notification_no_data_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(NetworkMessageObserver); 59 DISALLOW_COPY_AND_ASSIGN(NetworkMessageObserver);
60 }; 60 };
61 61
62 } // namespace chromeos 62 } // namespace chromeos
63 63
64 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_ 64 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_MESSAGE_OBSERVER_H_
65 65
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/network_list.cc ('k') | chrome/browser/chromeos/network_message_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698