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..d7878f1c82b2a29deaf90811e59db482470cb08a 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 availible or on error. |
mednik
2015/04/28 00:35:40
Typo: available
Vitaly Buka (NO REVIEWS)
2015/04/28 01:13:21
Done.
|
+ // |status| : The status of operation (success or type of error). |
+ // |deviceInfo| : Content of /privet/info response. |
mednik
2015/04/28 00:35:40
Do you need to include the pairingTypes in here? O
Vitaly Buka (NO REVIEWS)
2015/04/28 00:37:52
it's inside of deviceInfo
|
+ // 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, |