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

Side by Side Diff: chrome/common/networking_private_messages.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Multiply-included message file, so no include guard.
6
7 #include <string>
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "base/values.h"
12 #include "ipc/ipc_message_macros.h"
13 #include "ipc/ipc_platform_file.h"
14
15 #define IPC_MESSAGE_START NetworkingPrivateMsgStart
16
17 //------------------------------------------------------------------------------
18 // Utility process messages:
19 // These are messages from the browser to the utility process. They are handled
20 // by NetworkingPrivateHandler.
21
22 // Get properties of the network with given GUID.
23 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_GetProperties,
24 std::string /* Network GUID */)
25
26 // Set properties of the network with given GUID.
27 IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_SetProperties,
28 std::string, /* Network GUID */
29 base::DictionaryValue /* properties */)
30
31 // Start connect to the network with given GUID.
32 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_StartConnect,
33 std::string /* Network GUID */)
34
35 // Start disconnect from the network with given GUID.
36 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_StartDisconnect,
37 std::string /* Network GUID */)
38
39 // Get list of visible networks.
40 IPC_MESSAGE_CONTROL0(NetworkingPrivateMsg_GetVisibleNetworks)
41
42 // Request new scan of the network.
43 IPC_MESSAGE_CONTROL0(NetworkingPrivateMsg_RequestNetworkScan)
44
45 //------------------------------------------------------------------------------
46 // Utility process host messages:
47 // These are messages from the utility process to the browser. They are handled
48 // by NetworkingPrivateClient.
49
50 // Reply when the utility process is done getting network properties.
51 // |properties| are properties convertable to NetworkProperties API object.
52 IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_GetProperties_Succeeded,
53 std::string, /* network_guid */
54 base::DictionaryValue /* properties */)
55
56 // Reply when the utility process has failed getting network properties.
57 // |error_code| is a error code string.
58 IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_GetProperties_Failed,
59 std::string, /* error_code, if any */
60 base::DictionaryValue /* error_data, if any */)
61
62 // Reply when the utility process has started connect to network.
63 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_StartConnect_Succeeded,
64 std::string /* network_guid */)
65
66 // Reply when the utility process has failed to start connect to network.
67 // |error_code| is a error code string.
68 IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_StartConnect_Failed,
69 std::string, /* error_code, if any */
70 base::DictionaryValue /* error_data, if any */)
71
72 // Reply when the utility process has started disconnect from network.
73 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_StartDisconnect_Succeeded,
74 std::string /* network_guid */)
75
76 // Reply when the utility process has failed to start disconnect from network.
77 // |error_code| is a error code string.
78 IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_StartDisconnect_Failed,
79 std::string, /* error_code, if any */
80 base::DictionaryValue /* error_data, if any */)
81
82 // Reply when the utility process is done getting network properties.
83 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_SetProperties_Succeeded,
84 std::string /* network_guid */)
85
86 // Reply when the utility process has failed setting network properties.
87 // |error_code| is a error code string.
88 IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_SetProperties_Failed,
89 std::string, /* error_code, if any */
90 base::DictionaryValue /* error_data, if any */)
91
92 // List of visible networks of particular type.
93 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_GetVisibleNetworksSucceeded,
94 base::ListValue /* Network list */)
95
96 // Event generated when networks change is detected..
97 // |network_guids| is list of std::string objects containing network guids.
98 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_NetworksChanged_Event,
99 std::vector<std::string> /* list of network_guids */)
100
101 // Event generated when list of visible networks is changed.
102 // |network_guids| is list of std::string objects containing network guids.
103 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_NetworkListChanged_Event,
104 std::vector<std::string> /* list of network_guids */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698