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

Unified Diff: chrome/utility/networking_private_handler.h

Issue 22295002: Base infrastructure for Networking Private API on Windows and Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compilation error. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/utility/networking_private_handler.h
diff --git a/chrome/utility/networking_private_handler.h b/chrome/utility/networking_private_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..2fa5f51d5ca5937aba691832b06e8f2df9e40e05
--- /dev/null
+++ b/chrome/utility/networking_private_handler.h
@@ -0,0 +1,76 @@
+// Copyright (c) 2013 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_UTILITY_NETWORKING_PRIVATE_HANDLER_H_
+#define CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
+#include "chrome/utility/utility_message_handler.h"
+#include "chrome/utility/wifi/wifi_service.h"
+
+namespace base {
+class DictionaryValue;
+class Thread;
+}
+
+namespace chrome {
+
+// Dispatches IPCs for out of process profile import.
+class NetworkingPrivateHandler : public UtilityMessageHandler {
+ public:
+ NetworkingPrivateHandler();
+ virtual ~NetworkingPrivateHandler();
+
+ // IPC::Listener:
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ static bool Send(IPC::Message* message);
+
+ private:
+ void OnGetPropertiesStart(const std::string& network_guid);
+ void OnGetPropertiesSucceeded(
+ const std::string& network_guid,
+ const WiFiService::NetworkProperties& properties);
+ void OnGetPropertiesFailed(const std::string& error_name,
+ scoped_ptr<base::DictionaryValue> error_data);
+
+ void OnSetPropertiesStart(const std::string& network_guid,
+ const base::DictionaryValue& properties);
+ void OnSetPropertiesSucceeded(const std::string& network_guid);
+ void OnSetPropertiesFailed(const std::string& error_name,
+ scoped_ptr<base::DictionaryValue> error_data);
+
+ void OnStartConnectStart(const std::string& network_guid);
+ void OnStartConnectSucceeded(const std::string& network_guid);
+ void OnStartConnectFailed(const std::string& error_name,
+ scoped_ptr<base::DictionaryValue> error_data);
+
+ void OnStartDisconnectStart(const std::string& network_guid);
+ void OnStartDisconnectSucceeded(const std::string& network_guid);
+ void OnStartDisconnectFailed(const std::string& error_name,
+ scoped_ptr<base::DictionaryValue> error_data);
+
+ void OnRequestNetworkScan();
+ void OnNetworkScanSucceeded(const WiFiService::NetworkList& network_list);
+ void OnNetworkScanFailed(const std::string& error_name,
+ scoped_ptr<base::DictionaryValue> error_data);
+
+ void OnGetVisibleNetworks();
+ void OnGetVisibleNetworksSucceeded(
+ const WiFiService::NetworkList& network_list);
+ void OnGetVisibleNetworksFailed(const std::string& error_name,
+ scoped_ptr<base::DictionaryValue> error_data);
+
+ // Platform-specific WiFi service.
+ scoped_ptr<WiFiService> wifi_service_;
+};
+
+} // namespace chrome
+
+#endif // CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698