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

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: Reset DHCP after WiFi Connect to speed up the connection after factory reset. Created 7 years, 3 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 // Use WiFiServiceMock instead of WiFiService implementation in browser_tests.
23 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_UseWiFiServiceMock,
24 base::DictionaryValue /* parameters */)
25
26 // Get properties of the network with given GUID.
27 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_GetProperties,
28 std::string /* Network GUID */)
29
30 // Set properties of the network with given GUID.
31 IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_SetProperties,
32 std::string, /* Network GUID */
33 base::DictionaryValue /* properties */)
34
35 // Start connect to the network with given GUID.
36 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_StartConnect,
37 std::string /* Network GUID */)
38
39 // Start disconnect from the network with given GUID.
40 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_StartDisconnect,
41 std::string /* Network GUID */)
42
43 // Get list of visible networks.
44 IPC_MESSAGE_CONTROL0(NetworkingPrivateMsg_GetVisibleNetworks)
45
46 // Request new scan of the network.
47 IPC_MESSAGE_CONTROL0(NetworkingPrivateMsg_RequestNetworkScan)
48
49 //------------------------------------------------------------------------------
50 // Utility process host messages:
51 // These are messages from the utility process to the browser. They are handled
52 // by NetworkingPrivateClient.
53
54 // Reply when the utility process is done getting network properties.
55 // |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.
56 IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_GetProperties_Succeeded,
57 std::string, /* network_guid */
58 base::DictionaryValue /* properties */)
59
60 // Reply when the utility process has failed getting network properties.
61 // |error_code| is a error code string.
62 IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_GetProperties_Failed,
63 std::string, /* error_code, if any */
64 base::DictionaryValue /* error_data, if any */)
65
66 // Reply when the utility process has started connect to network.
67 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_StartConnect_Succeeded,
68 std::string /* network_guid */)
69
70 // Reply when the utility process has failed to start connect to network.
71 // |error_code| is a error code string.
72 IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_StartConnect_Failed,
73 std::string, /* error_code, if any */
74 base::DictionaryValue /* error_data, if any */)
75
76 // Reply when the utility process has started disconnect from network.
77 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_StartDisconnect_Succeeded,
78 std::string /* network_guid */)
79
80 // Reply when the utility process has failed to start disconnect from network.
81 // |error_code| is a error code string.
82 IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_StartDisconnect_Failed,
83 std::string, /* error_code, if any */
84 base::DictionaryValue /* error_data, if any */)
85
86 // Reply when the utility process is done getting network properties.
87 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_SetProperties_Succeeded,
88 std::string /* network_guid */)
89
90 // Reply when the utility process has failed setting network properties.
91 // |error_code| is a error code string.
92 IPC_MESSAGE_CONTROL2(NetworkingPrivateMsg_SetProperties_Failed,
93 std::string, /* error_code, if any */
94 base::DictionaryValue /* error_data, if any */)
95
96 // List of visible networks of particular type.
97 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_GetVisibleNetworksSucceeded,
98 base::ListValue /* Network list */)
99
100 // Event generated when networks change is detected..
101 // |network_guids| is list of std::string objects containing network guids.
102 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_NetworksChanged_Event,
103 std::vector<std::string> /* list of network_guids */)
104
105 // Event generated when list of visible networks is changed.
106 // |network_guids| is list of std::string objects containing network guids.
107 IPC_MESSAGE_CONTROL1(NetworkingPrivateMsg_NetworkListChanged_Event,
108 std::vector<std::string> /* list of network_guids */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698