Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / extensions / api / idltest / idltest_api.h
blob587664e310c560e60abe2b5a91e88bbc4d1cfb31
1 // Copyright (c) 2012 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_IDLTEST_IDLTEST_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_IDLTEST_IDLTEST_API_H_
8 #include "extensions/browser/extension_function.h"
10 class IdltestSendArrayBufferFunction : public SyncExtensionFunction {
11 public:
12 DECLARE_EXTENSION_FUNCTION("idltest.sendArrayBuffer", IDLTEST_SENDARRAYBUFFER)
14 protected:
15 ~IdltestSendArrayBufferFunction() override {}
16 bool RunSync() override;
19 class IdltestSendArrayBufferViewFunction : public SyncExtensionFunction {
20 public:
21 DECLARE_EXTENSION_FUNCTION("idltest.sendArrayBufferView",
22 IDLTEST_SENDARRAYBUFFERVIEW)
24 protected:
25 ~IdltestSendArrayBufferViewFunction() override {}
26 bool RunSync() override;
29 class IdltestGetArrayBufferFunction : public SyncExtensionFunction {
30 public:
31 DECLARE_EXTENSION_FUNCTION("idltest.getArrayBuffer", IDLTEST_GETARRAYBUFFER)
33 protected:
34 ~IdltestGetArrayBufferFunction() override {}
35 bool RunSync() override;
38 #endif // CHROME_BROWSER_EXTENSIONS_API_IDLTEST_IDLTEST_API_H_