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_SHELL_IDENTITY_SHELL_IDENTITY_API_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_API_SHELL_IDENTITY_SHELL_IDENTITY_API_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_API_SHELL_IDENTITY_SHELL_IDENTITY_API_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_API_SHELL_IDENTITY_SHELL_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 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 | 12 |
13 // TODO(jamescook): Implement this function. | 13 // TODO(jamescook): Implement this function. |
14 class ShellIdentityGetAuthTokenFunction : public UIThreadExtensionFunction { | 14 class ShellIdentityGetAuthTokenFunction : public UIThreadExtensionFunction { |
15 public: | 15 public: |
16 DECLARE_EXTENSION_FUNCTION("shell.identity.getAuthToken", UNKNOWN); | 16 DECLARE_EXTENSION_FUNCTION("shell.identity.getAuthToken", UNKNOWN); |
17 | 17 |
18 ShellIdentityGetAuthTokenFunction(); | 18 ShellIdentityGetAuthTokenFunction(); |
19 | 19 |
20 protected: | 20 protected: |
21 virtual ~ShellIdentityGetAuthTokenFunction(); | 21 ~ShellIdentityGetAuthTokenFunction() override; |
22 | 22 |
23 // ExtensionFunction: | 23 // ExtensionFunction: |
24 virtual ResponseAction Run() override; | 24 ResponseAction Run() override; |
25 | 25 |
26 private: | 26 private: |
27 DISALLOW_COPY_AND_ASSIGN(ShellIdentityGetAuthTokenFunction); | 27 DISALLOW_COPY_AND_ASSIGN(ShellIdentityGetAuthTokenFunction); |
28 }; | 28 }; |
29 | 29 |
30 } // namespace extensions | 30 } // namespace extensions |
31 | 31 |
32 #endif // EXTENSIONS_SHELL_BROWSER_API_SHELL_IDENTITY_SHELL_IDENTITY_API_H_ | 32 #endif // EXTENSIONS_SHELL_BROWSER_API_SHELL_IDENTITY_SHELL_IDENTITY_API_H_ |
OLD | NEW |