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 CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_AP
I_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_AP
I_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_AP
I_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_AP
I_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "chrome/browser/extensions/chrome_extension_function_details.h" | 12 #include "chrome/browser/extensions/chrome_extension_function_details.h" |
13 #include "chrome/common/extensions/api/cryptotoken_private.h" | 13 #include "chrome/common/extensions/api/cryptotoken_private.h" |
14 #include "extensions/browser/extension_function.h" | 14 #include "extensions/browser/extension_function.h" |
15 | 15 |
16 // Implementations for chrome.cryptotokenPrivate API functions. | 16 // Implementations for chrome.cryptotokenPrivate API functions. |
17 | 17 |
18 namespace infobars { | |
19 class InfoBar; | |
20 } | |
21 | |
22 namespace extensions { | 18 namespace extensions { |
23 namespace api { | 19 namespace api { |
24 | 20 |
25 class CryptotokenPrivateCanOriginAssertAppIdFunction | 21 class CryptotokenPrivateCanOriginAssertAppIdFunction |
26 : public UIThreadExtensionFunction { | 22 : public UIThreadExtensionFunction { |
27 public: | 23 public: |
28 CryptotokenPrivateCanOriginAssertAppIdFunction(); | 24 CryptotokenPrivateCanOriginAssertAppIdFunction(); |
29 DECLARE_EXTENSION_FUNCTION("cryptotokenPrivate.canOriginAssertAppId", | 25 DECLARE_EXTENSION_FUNCTION("cryptotokenPrivate.canOriginAssertAppId", |
30 CRYPTOTOKENPRIVATE_CANORIGINASSERTAPPID) | 26 CRYPTOTOKENPRIVATE_CANORIGINASSERTAPPID) |
31 protected: | 27 protected: |
32 ~CryptotokenPrivateCanOriginAssertAppIdFunction() override {} | 28 ~CryptotokenPrivateCanOriginAssertAppIdFunction() override {} |
33 ResponseAction Run() override; | 29 ResponseAction Run() override; |
34 | 30 |
35 private: | 31 private: |
36 ChromeExtensionFunctionDetails chrome_details_; | 32 ChromeExtensionFunctionDetails chrome_details_; |
37 }; | 33 }; |
38 | 34 |
39 } // namespace api | 35 } // namespace api |
40 } // namespace extensions | 36 } // namespace extensions |
41 | 37 |
42 #endif // CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE
_API_H_ | 38 #endif // CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE
_API_H_ |
OLD | NEW |