Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / remoting / webapp / app_remoting / js / license_manager.js
blobd29f9d123d5db4decc45728af56950ac68b707c7
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 /** @suppress {duplicate} */
6 var remoting = remoting || {};
8 (function() {
10 'use strict';
12 /**
13 * @interface
15 remoting.LicenseManager = function() {};
17 /**
18 * Called by App Streaming to obtain a fresh Subscription Token to pass to the
19 * Orchestrator to authorize access to the Vendor’s application.
20 * The returned Promise should emit the token serialized into a string, suitable
21 * for the App Streaming client to deliver to the VM.
23 * @param {string} oauthToken Identity Token identifying the user for which a
24 * Subscription token is being requested.
25 * @return {Promise<!string>}
27 remoting.LicenseManager.prototype.getSubscriptionToken = function(oauthToken){};
29 /**
30 * Called by App Streaming to obtain a fresh Access Token to pass to the
31 * application VM for use by the application to access services provided by the
32 * Vendor.
33 * The returned Promise should emit the token serialized into a string, suitable
34 * for the App Streaming client to deliver to the VM.
35 * NOTE: This interface may be revised to allow for supporting e.g. client-bound
36 * Access Tokens in future.
38 * @param {string} oauthToken Identity Token identifying the user for which an
39 * Access Token is being requested.
40 * @return {Promise<!string>}
42 remoting.LicenseManager.prototype.getAccessToken = function(oauthToken) {};
44 })();