Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_NETWORK_CONFIG_MESSAGE_HANDLER_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_NETWORK_CONFIG_MESSAGE_HANDLER_H_ | |
| 7 | |
| 8 #include "content/public/browser/web_ui_message_handler.h" | |
| 9 | |
| 10 namespace base { | |
| 11 class ListValue; | |
| 12 } | |
| 13 | |
| 14 namespace chromeos { | |
| 15 | |
| 16 // This class provides support for network configuration from WebUI components. | |
| 17 // It implements network_config.js which is a drop-in replacement for the | |
| 18 // networkingPrivate extention API. TODO(stevenjb): Implement the remaining | |
| 19 // networkingPrivate methods as needed. | |
|
armansito
2014/04/29 21:26:45
what's the reason for having a class that emulates
stevenjb
2014/04/29 21:44:03
The long term goal is to move all Settings to one
armansito
2014/04/29 22:54:47
I see. So the idea is for the two hooks (the netwo
| |
| 20 class NetworkConfigMessageHandler : public content::WebUIMessageHandler { | |
| 21 public: | |
| 22 NetworkConfigMessageHandler(); | |
| 23 virtual ~NetworkConfigMessageHandler(); | |
| 24 | |
| 25 // WebUIMessageHandler implementation. | |
| 26 virtual void RegisterMessages() OVERRIDE; | |
| 27 | |
| 28 private: | |
| 29 void GetVisibleNetworks(const base::ListValue* value) const; | |
| 30 void GetFavoriteNetworks(const base::ListValue* value) const; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(NetworkConfigMessageHandler); | |
| 33 }; | |
| 34 | |
| 35 } // namespace chromeos | |
| 36 | |
| 37 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_NETWORK_CONFIG_MESSAGE_HANDLER_H_ | |
| OLD | NEW |