Index: chrome/common/extensions/api/gcd_private.idl |
diff --git a/chrome/common/extensions/api/gcd_private.idl b/chrome/common/extensions/api/gcd_private.idl |
index 9f275f3724b58ab7fddd94a259ddb4356d22a4e7..ac5481f0ed8486ac3d116e6ce9f39da2bfd92d46 100644 |
--- a/chrome/common/extensions/api/gcd_private.idl |
+++ b/chrome/common/extensions/api/gcd_private.idl |
@@ -86,6 +86,13 @@ namespace gcdPrivate { |
// Generic callback for session calls, with status only. |
callback SessionCallback = void(Status status); |
+ // Called when the device info is available or on error. |
+ // |status| : The status of operation (success or type of error). |
+ // |deviceInfo| : Content of /privet/info response. |
+ // https://developers.google.com/cloud-devices/v1/reference/local-api/info |
+ callback GetDeviceInfoCallback = void(Status status, |
+ object deviceInfo); |
+ |
// Called when device starts to establish a secure session. |
// If |status| is |success| app should call |startPairing|. |
// |sessionId| : The session ID (identifies the session for future calls). |
@@ -129,6 +136,11 @@ namespace gcdPrivate { |
// Get the list of SSIDs with prefetched callbacks. |
static void getPrefetchedWifiNameList(SSIDListCallback callback); |
+ // Returns local device information. |
+ // |serviceName| : The mDns service name of the device. |
+ static void getDeviceInfo(DOMString serviceName, |
+ GetDeviceInfoCallback callback); |
+ |
// Create new pairing. |
// |serviceName| : The mDns service name of the device. |
static void createSession(DOMString serviceName, |
@@ -145,7 +157,7 @@ namespace gcdPrivate { |
// Confirm pairing code. Should be called after |startPairing|. |
// |sessionId| : The ID of the session created with |establishSession|. |
- // |code| : The string generated by pairing process and availible to the |
+ // |code| : The string generated by pairing process and available to the |
// user. |
static void confirmCode(long sessionId, |
DOMString code, |