| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 /** @suppress {duplicate} */ | |
| 6 var remoting = remoting || {}; | |
| 7 | |
| 8 (function() { | |
| 9 | |
| 10 "use strict"; | |
| 11 | |
| 12 /** | |
| 13 * A simple implementation of AppRemotingAuth using the user's GAIA token. | |
| 14 * | |
| 15 * @implements{remoting.LicenseManager} | |
| 16 * @constructor | |
| 17 */ | |
| 18 remoting.GaiaLicenseManager = function() {}; | |
| 19 | |
| 20 /** | |
| 21 * @param {string} oauthToken | |
| 22 * @return {Promise<!string>} | |
| 23 */ | |
| 24 remoting.GaiaLicenseManager.prototype.getSubscriptionToken = | |
| 25 function(oauthToken) { | |
| 26 return Promise.resolve(oauthToken); | |
| 27 }; | |
| 28 | |
| 29 /** | |
| 30 * @param {string} oauthToken | |
| 31 * @return {Promise<!string>} | |
| 32 */ | |
| 33 remoting.GaiaLicenseManager.prototype.getAccessToken = function(oauthToken) { | |
| 34 return Promise.resolve(""); | |
| 35 }; | |
| 36 | |
| 37 })(); | |
| 38 | |
| OLD | NEW |