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

Side by Side Diff: extensions/shell/browser/api/identity/identity_api.h

Issue 804673002: app_shell: Extend identity API stub (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unlimited-storage
Patch Set: (identity-stub) rebase Created 6 years 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 | extensions/shell/browser/api/identity/identity_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 EXTENSIONS_SHELL_BROWSER_API_IDENTITY_IDENTITY_API_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_API_IDENTITY_IDENTITY_API_H_
6 #define EXTENSIONS_SHELL_BROWSER_API_IDENTITY_IDENTITY_API_H_ 6 #define EXTENSIONS_SHELL_BROWSER_API_IDENTITY_IDENTITY_API_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "extensions/browser/extension_function.h" 9 #include "extensions/browser/extension_function.h"
10 #include "google_apis/gaia/oauth2_token_service.h" 10 #include "google_apis/gaia/oauth2_token_service.h"
(...skipping 23 matching lines...) Expand all
34 void OnGetTokenFailure(const OAuth2TokenService::Request* request, 34 void OnGetTokenFailure(const OAuth2TokenService::Request* request,
35 const GoogleServiceAuthError& error) override; 35 const GoogleServiceAuthError& error) override;
36 36
37 private: 37 private:
38 // A pending token fetch request. 38 // A pending token fetch request.
39 scoped_ptr<OAuth2TokenService::Request> access_token_request_; 39 scoped_ptr<OAuth2TokenService::Request> access_token_request_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(IdentityGetAuthTokenFunction); 41 DISALLOW_COPY_AND_ASSIGN(IdentityGetAuthTokenFunction);
42 }; 42 };
43 43
44 // Stub. See the IDL file for documentation.
45 class IdentityRemoveCachedAuthTokenFunction : public UIThreadExtensionFunction {
46 public:
47 DECLARE_EXTENSION_FUNCTION("identity.removeCachedAuthToken", UNKNOWN)
48
49 IdentityRemoveCachedAuthTokenFunction();
50
51 protected:
52 ~IdentityRemoveCachedAuthTokenFunction() override;
53
54 // ExtensionFunction:
55 ResponseAction Run() override;
56
57 private:
58 DISALLOW_COPY_AND_ASSIGN(IdentityRemoveCachedAuthTokenFunction);
59 };
60
44 } // namespace shell 61 } // namespace shell
45 } // namespace extensions 62 } // namespace extensions
46 63
47 #endif // EXTENSIONS_SHELL_BROWSER_API_IDENTITY_IDENTITY_API_H_ 64 #endif // EXTENSIONS_SHELL_BROWSER_API_IDENTITY_IDENTITY_API_H_
OLDNEW
« no previous file with comments | « no previous file | extensions/shell/browser/api/identity/identity_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698