OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |