Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / extensions / api / cryptotoken_private / cryptotoken_private_api.h
blob845d894aeaf4666c864c12a81a7ba7d04961bc8c
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_API_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/extensions/chrome_extension_function_details.h"
13 #include "chrome/common/extensions/api/cryptotoken_private.h"
14 #include "extensions/browser/extension_function.h"
16 // Implementations for chrome.cryptotokenPrivate API functions.
18 namespace extensions {
19 namespace api {
21 class CryptotokenPrivateCanOriginAssertAppIdFunction
22 : public UIThreadExtensionFunction {
23 public:
24 CryptotokenPrivateCanOriginAssertAppIdFunction();
25 DECLARE_EXTENSION_FUNCTION("cryptotokenPrivate.canOriginAssertAppId",
26 CRYPTOTOKENPRIVATE_CANORIGINASSERTAPPID)
27 protected:
28 ~CryptotokenPrivateCanOriginAssertAppIdFunction() override {}
29 ResponseAction Run() override;
31 private:
32 ChromeExtensionFunctionDetails chrome_details_;
35 } // namespace api
36 } // namespace extensions
38 #endif // CHROME_BROWSER_EXTENSIONS_API_CRYPTOTOKEN_PRIVATE_CRYPTOTOKEN_PRIVATE_API_H_