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

Unified Diff: remoting/webapp/crd/js/oauth2_api.js

Issue 1133913002: [Chromoting] Move shared webapp JS files from crd/js -> base/js (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
« no previous file with comments | « remoting/webapp/crd/js/oauth2.js ('k') | remoting/webapp/crd/js/oauth2_api_impl.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/oauth2_api.js
diff --git a/remoting/webapp/crd/js/oauth2_api.js b/remoting/webapp/crd/js/oauth2_api.js
deleted file mode 100644
index 4c58a1671d3c5064023770975ee7922c87f6c595..0000000000000000000000000000000000000000
--- a/remoting/webapp/crd/js/oauth2_api.js
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright 2013 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.
-
-/**
- * @fileoverview
- * OAuth2 API flow implementations.
- */
-
-'use strict';
-
-/** @suppress {duplicate} */
-var remoting = remoting || {};
-
-/** @interface */
-remoting.OAuth2Api = function() {
-};
-
-/**
- * Asynchronously retrieves a new access token from the server.
- *
- * @param {function(string, number): void} onDone Callback to invoke when
- * the access token and expiration time are successfully fetched.
- * @param {function(!remoting.Error):void} onError Callback invoked if an
- * error occurs.
- * @param {string} clientId OAuth2 client ID.
- * @param {string} clientSecret OAuth2 client secret.
- * @param {string} refreshToken OAuth2 refresh token to be redeemed.
- * @return {void} Nothing.
- */
-remoting.OAuth2Api.prototype.refreshAccessToken = function(
- onDone, onError, clientId, clientSecret, refreshToken) {
-};
-
-/**
- * Asynchronously exchanges an authorization code for access and refresh tokens.
- *
- * @param {function(string, string, number): void} onDone Callback to
- * invoke when the refresh token, access token and access token expiration
- * time are successfully fetched.
- * @param {function(!remoting.Error):void} onError Callback invoked if an
- * error occurs.
- * @param {string} clientId OAuth2 client ID.
- * @param {string} clientSecret OAuth2 client secret.
- * @param {string} code OAuth2 authorization code.
- * @param {string} redirectUri Redirect URI used to obtain this code.
- * @return {void} Nothing.
- */
-remoting.OAuth2Api.prototype.exchangeCodeForTokens = function(
- onDone, onError, clientId, clientSecret, code, redirectUri) {
-};
-
-/**
- * Get the user's email address.
- *
- * TODO(jamiewalch): Reorder these parameters to match the typical chrome API
- * convention of having callbacks at the end and remove the token parameter
- * to match remoting.HostListApi.
- *
- * @param {function(string):void} onDone Callback invoked when the email
- * address is available.
- * @param {function(!remoting.Error):void} onError Callback invoked if an
- * error occurs.
- * @param {string} token Access token.
- * @return {void} Nothing.
- */
-remoting.OAuth2Api.prototype.getEmail = function(onDone, onError, token) {
-};
-
-/**
- * Get the user's email address and full name.
- *
- * @param {function(string, string):void} onDone Callback invoked when the email
- * address and full name are available.
- * @param {function(!remoting.Error):void} onError Callback invoked if an
- * error occurs.
- * @param {string} token Access token.
- * @return {void} Nothing.
- */
-remoting.OAuth2Api.prototype.getUserInfo = function(onDone, onError, token) {
-};
« no previous file with comments | « remoting/webapp/crd/js/oauth2.js ('k') | remoting/webapp/crd/js/oauth2_api_impl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698