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

Side by Side Diff: remoting/webapp/client_plugin.js

Issue 12905012: Webapp changes to support third party authentication (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add token URL validation, refactor Created 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** @suppress {duplicate} */ 5 /** @suppress {duplicate} */
6 var remoting = remoting || {}; 6 var remoting = remoting || {};
7 7
8 /** 8 /**
9 * Interface used for ClientPlugin objects. 9 * Interface used for ClientPlugin objects.
10 * @interface 10 * @interface
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 */ 56 */
57 remoting.ClientPlugin.Feature = { 57 remoting.ClientPlugin.Feature = {
58 INJECT_KEY_EVENT: 'injectKeyEvent', 58 INJECT_KEY_EVENT: 'injectKeyEvent',
59 NOTIFY_CLIENT_DIMENSIONS: 'notifyClientDimensions', 59 NOTIFY_CLIENT_DIMENSIONS: 'notifyClientDimensions',
60 NOTIFY_CLIENT_RESOLUTION: 'notifyClientResolution', 60 NOTIFY_CLIENT_RESOLUTION: 'notifyClientResolution',
61 ASYNC_PIN: 'asyncPin', 61 ASYNC_PIN: 'asyncPin',
62 PAUSE_VIDEO: 'pauseVideo', 62 PAUSE_VIDEO: 'pauseVideo',
63 PAUSE_AUDIO: 'pauseAudio', 63 PAUSE_AUDIO: 'pauseAudio',
64 REMAP_KEY: 'remapKey', 64 REMAP_KEY: 'remapKey',
65 SEND_CLIPBOARD_ITEM: 'sendClipboardItem', 65 SEND_CLIPBOARD_ITEM: 'sendClipboardItem',
66 THIRD_PARTY_AUTH: 'thirdPartyAuth',
66 TRAP_KEY: 'trapKey' 67 TRAP_KEY: 'trapKey'
67 }; 68 };
68 69
69 /** 70 /**
70 * @param {remoting.ClientPlugin.Feature} feature The feature to test for. 71 * @param {remoting.ClientPlugin.Feature} feature The feature to test for.
71 * @return {boolean} True if the plugin supports the named feature. 72 * @return {boolean} True if the plugin supports the named feature.
72 */ 73 */
73 remoting.ClientPlugin.prototype.hasFeature = function(feature) {}; 74 remoting.ClientPlugin.prototype.hasFeature = function(feature) {};
74 75
75 /** 76 /**
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 * Gives the client authenticator the PIN. 181 * Gives the client authenticator the PIN.
181 * 182 *
182 * @param {string} pin The PIN. 183 * @param {string} pin The PIN.
183 */ 184 */
184 remoting.ClientPlugin.prototype.onPinFetched = function(pin) {}; 185 remoting.ClientPlugin.prototype.onPinFetched = function(pin) {};
185 186
186 /** 187 /**
187 * Tells the plugin to ask for the PIN asynchronously. 188 * Tells the plugin to ask for the PIN asynchronously.
188 */ 189 */
189 remoting.ClientPlugin.prototype.useAsyncPinDialog = function() {}; 190 remoting.ClientPlugin.prototype.useAsyncPinDialog = function() {};
191
192 /**
193 * Sets the third party authentication token and shared secret.
194 *
195 * @param {string} token The token received from the token URL.
196 * @param {string} sharedSecret Shared secret received from the token URL.
197 */
198 remoting.ClientPlugin.prototype.onThirdPartyTokenFetched =
199 function(token, sharedSecret) {};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698