This file is indexed.

/usr/share/idl/thunderbird/nsISystemMessagesInternal.idl is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "domstubs.idl"

interface nsIURI;
interface nsIDOMWindow;
interface nsIMessageSender;

// Implemented by the contract id @mozilla.org/system-message-internal;1

[scriptable, uuid(54c8e274-decb-4258-9a24-4ebfcbf3d00a)]
interface nsISystemMessagesInternal : nsISupports
{
  /*
   * Allow any internal user to send a message of a given type to a given page
   * of an app. The message will be sent to all the registered pages of the app
   * when |pageURI| is not specified.
   * @param type        The type of the message to be sent.
   * @param message     The message payload.
   * @param pageURI     The URI of the page that will be opened. Nullable.
   * @param manifestURI The webapp's manifest URI.
   * @param extra       Extra opaque information that will be passed around in the observer
   *                    notification to open the page.
   * returns a Promise
   */
  nsISupports sendMessage(in DOMString type, in jsval message,
                          in nsIURI pageURI, in nsIURI manifestURI,
                          [optional] in jsval extra);

  /*
   * Allow any internal user to broadcast a message of a given type.
   * The application that registers the message will be launched.
   * @param type        The type of the message to be sent.
   * @param message     The message payload.
   * @param extra       Extra opaque information that will be passed around in the observer
   *                    notification to open the page.
   */
  void broadcastMessage(in DOMString type, in jsval message, [optional] in jsval extra);

  /*
   * Registration of a page that wants to be notified of a message type.
   * @param type          The message type.
   * @param pageURI       The URI of the page that will be opened.
   * @param manifestURI   The webapp's manifest URI.
   */
  void registerPage(in DOMString type, in nsIURI pageURI, in nsIURI manifestURI);

  /*
   * Refresh the system message cache in a content process.
   * @param manifestURI The webapp's manifest URI.
   */
  void refreshCache(in nsIMessageSender childMM, in nsIURI manifestURI);
};

[scriptable, uuid(002f0e82-91f0-41de-ad43-569a2b9d12df)]
interface nsISystemMessagesWrapper: nsISupports
{
  /*
   * Wrap a message and gives back any kind of object.
   * @param message  The json blob to wrap.
   */
  jsval wrapMessage(in jsval message, in nsIDOMWindow window);
};

/*
 * Implements an interface to allow specific message types to
 * configure some behaviors
 */
[scriptable, uuid(31b78730-21c6-11e4-8c21-0800200c9a66)]
interface nsISystemMessagesConfigurator: nsISupports
{
  /*
   * Will be true if this type of system messages assumes/requires
   * that the app will be brought to the front always.
   */
  readonly attribute boolean mustShowRunningApp;

  /*
   * A broadcast filter for a specific message type.
   *
   * @return Promise which resolves with |true| or |false| to indicate if
   *         we want to dispatch this message.
   */
  jsval shouldDispatch(in DOMString manifestURL, in DOMString pageURL,
                       in DOMString type, in jsval message, [optional] in jsval extra);
};