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

Side by Side Diff: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h

Issue 552893002: Introduce new chrome.easyUnlock APIs for getting the sign-in challenge and using it to sign-in the … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update docs Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 private: 271 private:
272 virtual ~EasyUnlockPrivateGetRemoteDevicesFunction(); 272 virtual ~EasyUnlockPrivateGetRemoteDevicesFunction();
273 273
274 // SyncExtensionFunction: 274 // SyncExtensionFunction:
275 virtual bool RunSync() OVERRIDE; 275 virtual bool RunSync() OVERRIDE;
276 276
277 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetRemoteDevicesFunction); 277 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetRemoteDevicesFunction);
278 }; 278 };
279 279
280 class EasyUnlockPrivateGetSignInChallengeFunction :
281 public AsyncExtensionFunction {
282 public:
283 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.getSignInChallenge",
284 EASYUNLOCKPRIVATE_GETSIGNINCHALLENGE)
285 EasyUnlockPrivateGetSignInChallengeFunction();
286
287 private:
288 virtual ~EasyUnlockPrivateGetSignInChallengeFunction();
289
290 // AsyncExtensionFunction:
291 virtual bool RunAsync() OVERRIDE;
292
293 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateGetSignInChallengeFunction);
294 };
295
296 class EasyUnlockPrivateTrySignInSecretFunction :
297 public AsyncExtensionFunction {
298 public:
299 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.trySignInSecret",
300 EASYUNLOCKPRIVATE_TRYSIGNINSECRET)
301 EasyUnlockPrivateTrySignInSecretFunction();
302
303 private:
304 virtual ~EasyUnlockPrivateTrySignInSecretFunction();
305
306 // AsyncExtensionFunction:
307 virtual bool RunAsync() OVERRIDE;
308
309 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateTrySignInSecretFunction);
310 };
311
280 } // namespace api 312 } // namespace api
281 } // namespace extensions 313 } // namespace extensions
282 314
283 #endif // CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE _API_H_ 315 #endif // CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE _API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698