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

Unified Diff: chrome/browser/ui/webui/chromeos/network_config_message_handler.h

Issue 260083007: Replace chrome://network implementation with networkConfig API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chromeos/network_config_message_handler.h
diff --git a/chrome/browser/ui/webui/chromeos/network_config_message_handler.h b/chrome/browser/ui/webui/chromeos/network_config_message_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..cc74a030b061461205be70cbe7f5f2ec6a074b7f
--- /dev/null
+++ b/chrome/browser/ui/webui/chromeos/network_config_message_handler.h
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_NETWORK_CONFIG_MESSAGE_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_NETWORK_CONFIG_MESSAGE_HANDLER_H_
+
+#include "content/public/browser/web_ui_message_handler.h"
+
+namespace base {
+class ListValue;
+}
+
+namespace chromeos {
+
+// This class provides support for network configuration from WebUI components.
+// It implements network_config.js which is a drop-in replacement for the
+// networkingPrivate extention API. TODO(stevenjb): Implement the remaining
+// 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
+class NetworkConfigMessageHandler : public content::WebUIMessageHandler {
+ public:
+ NetworkConfigMessageHandler();
+ virtual ~NetworkConfigMessageHandler();
+
+ // WebUIMessageHandler implementation.
+ virtual void RegisterMessages() OVERRIDE;
+
+ private:
+ void GetVisibleNetworks(const base::ListValue* value) const;
+ void GetFavoriteNetworks(const base::ListValue* value) const;
+
+ DISALLOW_COPY_AND_ASSIGN(NetworkConfigMessageHandler);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_NETWORK_CONFIG_MESSAGE_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698