Chromium Code Reviews| Index: chrome/common/networking_private_messages.h |
| diff --git a/chrome/common/networking_private_messages.h b/chrome/common/networking_private_messages.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..31c32334dacf64fdd6e1cd1c79c7ef067ce02903 |
| --- /dev/null |
| +++ b/chrome/common/networking_private_messages.h |
| @@ -0,0 +1,108 @@ |
| +// Copyright (c) 2012 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. |
| + |
| +// Multiply-included message file, so no include guard. |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +#include "base/basictypes.h" |
| +#include "base/values.h" |
| +#include "ipc/ipc_message_macros.h" |
| +#include "ipc/ipc_platform_file.h" |
| + |
| +#define IPC_MESSAGE_START NetworkingPrivateMsgStart |
| + |
| +//------------------------------------------------------------------------------ |
| +// Utility process messages: |
| +// These are messages from the browser to the utility process. They are handled |
| +// by NetworkingPrivateHandler. |
| + |
| +// Use WiFiServiceMock instead of WiFiService implementation in browser_tests. |
| +IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_UseWiFiServiceMock, |
| + base::DictionaryValue /* parameters */) |
| + |
| +// Get properties of the network with given GUID. |
| +IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_GetProperties, |
| + std::string /* Network GUID */) |
| + |
| +// Set properties of the network with given GUID. |
| +IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_SetProperties, |
| + std::string, /* Network GUID */ |
| + base::DictionaryValue /* properties */) |
| + |
| +// Start connect to the network with given GUID. |
| +IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_StartConnect, |
| + std::string /* Network GUID */) |
| + |
| +// Start disconnect from the network with given GUID. |
| +IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_StartDisconnect, |
| + std::string /* Network GUID */) |
| + |
| +// Get list of visible networks. |
| +IPC_MESSAGE_CONTROL0(NetworkingPrivateMsg_GetVisibleNetworks) |
| + |
| +// Request new scan of the network. |
| +IPC_MESSAGE_CONTROL0(NetworkingPrivateMsg_RequestNetworkScan) |
| + |
| +//------------------------------------------------------------------------------ |
| +// Utility process host messages: |
| +// These are messages from the utility process to the browser. They are handled |
| +// by NetworkingPrivateClient. |
| + |
| +// Reply when the utility process is done getting network properties. |
| +// |properties| are properties convertable to NetworkProperties API object. |
|
Jorge Lucangeli Obes
2013/09/11 17:30:02
Nit: "convertible"
mef
2013/09/11 20:55:08
Done.
|
| +IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_GetProperties_Succeeded, |
| + std::string, /* network_guid */ |
| + base::DictionaryValue /* properties */) |
| + |
| +// Reply when the utility process has failed getting network properties. |
| +// |error_code| is a error code string. |
| +IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_GetProperties_Failed, |
| + std::string, /* error_code, if any */ |
| + base::DictionaryValue /* error_data, if any */) |
| + |
| +// Reply when the utility process has started connect to network. |
| +IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_StartConnect_Succeeded, |
| + std::string /* network_guid */) |
| + |
| +// Reply when the utility process has failed to start connect to network. |
| +// |error_code| is a error code string. |
| +IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_StartConnect_Failed, |
| + std::string, /* error_code, if any */ |
| + base::DictionaryValue /* error_data, if any */) |
| + |
| +// Reply when the utility process has started disconnect from network. |
| +IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_StartDisconnect_Succeeded, |
| + std::string /* network_guid */) |
| + |
| +// Reply when the utility process has failed to start disconnect from network. |
| +// |error_code| is a error code string. |
| +IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_StartDisconnect_Failed, |
| + std::string, /* error_code, if any */ |
| + base::DictionaryValue /* error_data, if any */) |
| + |
| +// Reply when the utility process is done getting network properties. |
| +IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_SetProperties_Succeeded, |
| + std::string /* network_guid */) |
| + |
| +// Reply when the utility process has failed setting network properties. |
| +// |error_code| is a error code string. |
| +IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_SetProperties_Failed, |
| + std::string, /* error_code, if any */ |
| + base::DictionaryValue /* error_data, if any */) |
| + |
| +// List of visible networks of particular type. |
| +IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_GetVisibleNetworksSucceeded, |
| + base::ListValue /* Network list */) |
| + |
| +// Event generated when networks change is detected.. |
| +// |network_guids| is list of std::string objects containing network guids. |
| +IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_NetworksChanged_Event, |
| + std::vector<std::string> /* list of network_guids */) |
| + |
| +// Event generated when list of visible networks is changed. |
| +// |network_guids| is list of std::string objects containing network guids. |
| +IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_NetworkListChanged_Event, |
| + std::vector<std::string> /* list of network_guids */) |