Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Unified Diff: chrome/common/extensions/api/gcd_private.idl

Issue 1106183006: Added gcdPrivate.getDeviceInfo function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_establish
Patch Set: Mon Apr 27 22:56:49 PDT 2015 Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698