Extract SIGPIPE ignoring code to a common place.
[chromium-blink-merge.git] / chrome / common / extensions / api / experimental_power.json
blob8f3ac0bfad5b6932894be2118648078ebb9e518e
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.
5   {
6     "namespace": "experimental.power",
7     "types": [],
8     "functions": [
9       {
10         "name": "requestKeepAwake",
11         "type": "function",
12         "description": "Requests that the machine be kept awake. Requests can be canceled manually with releaseKeepAwake, and are automatically canceled when the machine is restarted, or when the extension is disabled or uninstalled. Calling this multiple times has the same effect as calling it once.",
13         "parameters": [
14           {
15             "name": "callback",
16             "type": "function",
17             "optional": true,
18             "parameters": [
19               {
20                 "name": "success",
21                 "type": "boolean",
22                 "description": "True if the request was successful, false otherwise."
23               }
24             ]
25           }
26         ]
27       },
28       {
29         "name": "releaseKeepAwake",
30         "type": "function",
31         "description": "Releases a keep awake request. Once there are no keep awake requests active on the system, normal power management will resume.",
32         "parameters": [
33           {
34             "name": "callback",
35             "type": "function",
36             "optional": true,
37             "parameters": [
38               {
39                 "name": "success",
40                 "type": "boolean",
41                 "description": "True if the release was successful, false otherwise."
42               }
43             ]
44           }
45         ]
46       }
47     ]
48   }