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..160abd6a95f38b5199945007a838c3cdd59b589a |
| --- /dev/null |
| +++ b/chrome/common/networking_private_messages.h |
| @@ -0,0 +1,101 @@ |
| +// 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_ForTest, |
| + base::DictionaryValue /* parameters */) |
| + |
| +// Get properties of the network with given GUID. |
| +IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_GetProperties, |
| + int, /* message_id */ |
| + std::string /* Network GUID */) |
| + |
| +// Set properties of the network with given GUID. |
| +IPC_MESSAGE_CONTROL3(NetworkingPrivateMsg_SetProperties, |
| + int, /* message_id */ |
| + std::string, /* Network GUID */ |
| + base::DictionaryValue /* properties */) |
| + |
| +// Start connect to the network with given GUID. |
| +IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_StartConnect, |
| + int, /* message_id */ |
| + std::string /* Network GUID */) |
| + |
| +// Start disconnect from the network with given GUID. |
| +IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_StartDisconnect, |
| + int, /* message_id */ |
| + std::string /* Network GUID */) |
| + |
| +// Get list of visible networks. |
| +IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_GetVisibleNetworks, |
| + int /* message_id */) |
| + |
| +// 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 API call has returned an error. |
| +// |error_code| is a error code string. |
| +IPC_MESSAGE_CONTROL3(NetworkingPrivateMsg_API_Error, |
| + int, /* message_id */ |
| + std::string, /* error_code, if any */ |
| + base::DictionaryValue /* error_data, if any */) |
| + |
| +// Reply when the utility process is done getting network properties. |
| +// |properties| are properties convertible to NetworkProperties API object. |
| +IPC_MESSAGE_CONTROL3(NetworkingPrivateMsg_GetProperties_Succeeded, |
| + int, /* message_id */ |
| + std::string, /* network_guid */ |
| + base::DictionaryValue /* properties */) |
| + |
| +// Reply when the utility process has started connect to network. |
| +IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_StartConnect_Succeeded, |
| + int, /* message_id */ |
| + std::string /* network_guid */) |
|
cbentzel
2013/10/15 10:49:10
Nit: inconsistent between Network GUID and network
mef
2013/10/15 19:47:18
Done.
|
| + |
| +// Reply when the utility process has started disconnect from network. |
| +IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_StartDisconnect_Succeeded, |
| + int, /* message_id */ |
| + std::string /* network_guid */) |
| + |
| +// Reply when the utility process is done getting network properties. |
| +IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_SetProperties_Succeeded, |
| + int, /* message_id */ |
| + std::string /* network_guid */) |
| + |
| +// List of visible networks of particular type. |
| +IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_GetVisibleNetworksSucceeded, |
| + int, /* message_id */ |
| + 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 */) |