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

Side by Side Diff: chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h

Issue 10212003: Cleanup of network code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk. Created 8 years, 8 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) 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_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // content::NotificationObserver implementation. 52 // content::NotificationObserver implementation.
53 virtual void Observe(int type, 53 virtual void Observe(int type,
54 const content::NotificationSource& source, 54 const content::NotificationSource& source,
55 const content::NotificationDetails& details) OVERRIDE; 55 const content::NotificationDetails& details) OVERRIDE;
56 56
57 private: 57 private:
58 // Opens a modal popup dialog. 58 // Opens a modal popup dialog.
59 void CreateModalPopup(views::WidgetDelegate* view); 59 void CreateModalPopup(views::WidgetDelegate* view);
60 gfx::NativeWindow GetNativeWindow() const; 60 gfx::NativeWindow GetNativeWindow() const;
61 61
62 // Passes data needed to show details overlay for network. 62 // Passes data needed to show the details overlay for a network.
63 // |args| will be [ network_type, service_path, command ] 63 // |args| will be [ network_type, service_path, command ]
64 // And command is one of 'options', 'connect', disconnect', 'activate' or 64 // And command is one of 'options', 'connect', disconnect', 'activate' or
65 // 'forget' 65 // 'forget'
66 // Handle{Wifi,Cellular}ButtonClick handles button click on a wireless 66 void NetworkCommandCallback(const base::ListValue* args);
67 // network item and a cellular network item respectively. 67
68 void ButtonClickCallback(const base::ListValue* args); 68 // Handle{Wifi,Cellular,VPN}ButtonClick handles button click on a wireless,
69 // cellular or VPN network item, respectively.
69 void HandleWifiButtonClick(const std::string& service_path, 70 void HandleWifiButtonClick(const std::string& service_path,
70 const std::string& command); 71 const std::string& command);
71 void HandleCellularButtonClick(const std::string& service_path, 72 void HandleCellularButtonClick(const std::string& service_path,
72 const std::string& command); 73 const std::string& command);
73 void HandleVPNButtonClick(const std::string& service_path, 74 void HandleVPNButtonClick(const std::string& service_path,
74 const std::string& command); 75 const std::string& command);
75 76
76 // Initiates cellular plan data refresh. The results from libcros will be 77 // Initiates cellular plan data refresh. The results from libcros will be
77 // passed through CellularDataPlanChanged() callback method. 78 // passed through CellularDataPlanChanged() callback method.
78 // |args| will be [ service_path ] 79 // |args| will be [ service_path ]
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 chromeos::NetworkLibrary* cros_; 154 chromeos::NetworkLibrary* cros_;
154 155
155 content::NotificationRegistrar registrar_; 156 content::NotificationRegistrar registrar_;
156 157
157 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); 158 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler);
158 }; 159 };
159 160
160 } // namespace options2 161 } // namespace options2
161 162
162 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H _ 163 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_INTERNET_OPTIONS_HANDLER2_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698