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

Side by Side Diff: chrome/browser/chromeos/dom_ui/internet_options_handler.h

Issue 3084027: Clean up code by removing network traffic code in network library.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 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) 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_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/cros/network_library.h" 10 #include "chrome/browser/chromeos/cros/network_library.h"
(...skipping 12 matching lines...) Expand all
23 virtual ~InternetOptionsHandler(); 23 virtual ~InternetOptionsHandler();
24 24
25 // OptionsUIHandler implementation. 25 // OptionsUIHandler implementation.
26 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 26 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
27 27
28 // DOMMessageHandler implementation. 28 // DOMMessageHandler implementation.
29 virtual void RegisterMessages(); 29 virtual void RegisterMessages();
30 30
31 // NetworkLibrary::Observer implementation. 31 // NetworkLibrary::Observer implementation.
32 virtual void NetworkChanged(chromeos::NetworkLibrary* obj); 32 virtual void NetworkChanged(chromeos::NetworkLibrary* obj);
33 virtual void NetworkTraffic(chromeos::NetworkLibrary* cros,
34 int traffic_type) {}
35 33
36 private: 34 private:
37 // Open a modal popup dialog. 35 // Open a modal popup dialog.
38 void CreateModalPopup(views::WindowDelegate* view); 36 void CreateModalPopup(views::WindowDelegate* view);
39 // Open options dialog for network. 37 // Open options dialog for network.
40 // |value| will be [ network_type, service_path, command ] 38 // |value| will be [ network_type, service_path, command ]
41 // And command is one of 'options', 'connect', disconnect', or 'forget' 39 // And command is one of 'options', 'connect', disconnect', or 'forget'
42 void ButtonClickCallback(const Value* value); 40 void ButtonClickCallback(const Value* value);
43 41
44 // Creates the map of a network 42 // Creates the map of a network
45 ListValue* GetNetwork(const std::string& service_path, const SkBitmap& icon, 43 ListValue* GetNetwork(const std::string& service_path, const SkBitmap& icon,
46 const std::string& name, bool connecting, bool connected, 44 const std::string& name, bool connecting, bool connected,
47 int connection_type, bool remembered); 45 int connection_type, bool remembered);
48 46
49 // Creates the map of wired networks 47 // Creates the map of wired networks
50 ListValue* GetWiredList(); 48 ListValue* GetWiredList();
51 // Creates the map of wireless networks 49 // Creates the map of wireless networks
52 ListValue* GetWirelessList(); 50 ListValue* GetWirelessList();
53 // Creates the map of remembered networks 51 // Creates the map of remembered networks
54 ListValue* GetRememberedList(); 52 ListValue* GetRememberedList();
55 53
56 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); 54 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler);
57 }; 55 };
58 56
59 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ 57 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.cc ('k') | chrome/browser/chromeos/login/network_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698