| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Use the <code>chrome.gcdPrivate</code> API to discover GCD APIs and register | 5 // Use the <code>chrome.gcdPrivate</code> API to discover GCD APIs and register |
| 6 // them. | 6 // them. |
| 7 [use_movable_types=true] namespace gcdPrivate { | 7 namespace gcdPrivate { |
| 8 | 8 |
| 9 enum Status { | 9 enum Status { |
| 10 // Success. | 10 // Success. |
| 11 success, | 11 success, |
| 12 | 12 |
| 13 // populateWifiPassword was true and the password has not been prefetched. | 13 // populateWifiPassword was true and the password has not been prefetched. |
| 14 wifiPasswordError, | 14 wifiPasswordError, |
| 15 | 15 |
| 16 // populateWifiPassword was true and the message cannot be parsed as a setup | 16 // populateWifiPassword was true and the message cannot be parsed as a setup |
| 17 // message. | 17 // message. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 static void sendMessage(long sessionId, | 109 static void sendMessage(long sessionId, |
| 110 DOMString api, | 110 DOMString api, |
| 111 object input, | 111 object input, |
| 112 SendMessageCallback callback); | 112 SendMessageCallback callback); |
| 113 | 113 |
| 114 // Terminate the session with the device. | 114 // Terminate the session with the device. |
| 115 // |sessionId| : The ID of the session created with |establishSession|. | 115 // |sessionId| : The ID of the session created with |establishSession|. |
| 116 static void terminateSession(long sessionId); | 116 static void terminateSession(long sessionId); |
| 117 }; | 117 }; |
| 118 }; | 118 }; |
| OLD | NEW |