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