| 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..7198883b6200ac81978fdbff7d26d876ef5d8878
|
| --- /dev/null
|
| +++ b/chrome/common/networking_private_messages.h
|
| @@ -0,0 +1,104 @@
|
| +// 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.
|
| +
|
| +// 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.
|
| +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 */)
|
|
|