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

Unified Diff: remoting/webapp/app_remoting/js/license_manager.js

Issue 1163023002: [AppRemoting] Implements LicenseManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: remoting/webapp/app_remoting/js/license_manager.js
diff --git a/remoting/webapp/app_remoting/js/license_manager.js b/remoting/webapp/app_remoting/js/license_manager.js
new file mode 100644
index 0000000000000000000000000000000000000000..d29f9d123d5db4decc45728af56950ac68b707c7
--- /dev/null
+++ b/remoting/webapp/app_remoting/js/license_manager.js
@@ -0,0 +1,47 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/** @suppress {duplicate} */
+var remoting = remoting || {};
+
+(function() {
+
+'use strict';
+
+/**
+ * @interface
+ */
+remoting.LicenseManager = function() {};
kelvinp 2015/06/02 21:18:08 I renamed AppRemotingAuth to LicenseManager as I t
+
+/**
+ * Called by App Streaming to obtain a fresh Subscription Token to pass to the
+ * Orchestrator to authorize access to the Vendor’s application.
+ * The returned Promise should emit the token serialized into a string, suitable
+ * for the App Streaming client to deliver to the VM.
+ *
+ * @param {string} oauthToken Identity Token identifying the user for which a
+ * Subscription token is being requested.
+ * @return {Promise<!string>}
+ */
+remoting.LicenseManager.prototype.getSubscriptionToken = function(oauthToken){};
+
+/**
+ * Called by App Streaming to obtain a fresh Access Token to pass to the
+ * application VM for use by the application to access services provided by the
+ * Vendor.
+ * The returned Promise should emit the token serialized into a string, suitable
+ * for the App Streaming client to deliver to the VM.
+ * NOTE: This interface may be revised to allow for supporting e.g. client-bound
+ * Access Tokens in future.
+ *
+ * @param {string} oauthToken Identity Token identifying the user for which an
+ * Access Token is being requested.
+ * @return {Promise<!string>}
+ */
+remoting.LicenseManager.prototype.getAccessToken = function(oauthToken) {};
+
+})();
+
+
+

Powered by Google App Engine
This is Rietveld 408576698