|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
|
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 #include "domstubs.idl" |
|
6 #include "nsITCPSocketParent.idl" |
|
7 |
|
8 interface nsIDOMTCPServerSocket; |
|
9 |
|
10 /** |
|
11 * Interface required to allow the TCP server-socket object in the parent process |
|
12 * to talk to the parent IPC actor. |
|
13 * It is used in the server socket implementation on the parent side. |
|
14 */ |
|
15 [scriptable, uuid(161ffc9f-54d3-4f21-a536-4166003d0e1d)] |
|
16 interface nsITCPServerSocketParent : nsISupports |
|
17 { |
|
18 /** |
|
19 * Trigger a callback in the content process when the socket accepts any request. |
|
20 * |
|
21 * @param socket |
|
22 * The socket generated in accepting any open request on the parent side. |
|
23 */ |
|
24 void sendCallbackAccept(in nsITCPSocketParent socket); |
|
25 |
|
26 /** |
|
27 * Trigger a callback in the content process when an error occurs. |
|
28 * |
|
29 * @param message |
|
30 * The error message. |
|
31 * @param filename |
|
32 * The file name in which the error occured. |
|
33 * @param lineNumber |
|
34 * The line number in which the error occured. |
|
35 * @param columnNumber |
|
36 * The column number in which the error occured. |
|
37 */ |
|
38 void sendCallbackError(in DOMString message, |
|
39 in DOMString filename, |
|
40 in uint32_t lineNumber, |
|
41 in uint32_t columnNumber); |
|
42 }; |