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. 4 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IDLTEST_IDLTEST_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_IDLTEST_IDLTEST_API_H_ 7 8 #include "chrome/browser/extensions/extension_function.h" 9 10 class IdltestSendArrayBufferFunction : public SyncExtensionFunction { 11 public: 12 DECLARE_EXTENSION_FUNCTION("experimental.idltest.sendArrayBuffer", 13 EXPERIMENTAL_IDLTEST_SENDARRAYBUFFER) 14 15 protected: 16 virtual ~IdltestSendArrayBufferFunction() {} 17 virtual bool RunImpl() OVERRIDE; 18 }; 19 20 class IdltestSendArrayBufferViewFunction : public SyncExtensionFunction { 21 public: 22 DECLARE_EXTENSION_FUNCTION("experimental.idltest.sendArrayBufferView", 23 EXPERIMENTAL_IDLTEST_SENDARRAYBUFFERVIEW) 24 25 protected: 26 virtual ~IdltestSendArrayBufferViewFunction() {} 27 virtual bool RunImpl() OVERRIDE; 28 }; 29 30 class IdltestGetArrayBufferFunction : public SyncExtensionFunction { 31 public: 32 DECLARE_EXTENSION_FUNCTION("experimental.idltest.getArrayBuffer", 33 EXPERIMENTAL_IDLTEST_GETARRAYBUFFER) 34 35 protected: 36 virtual ~IdltestGetArrayBufferFunction() {} 37 virtual bool RunImpl() OVERRIDE; 38 }; 39 40 #endif // CHROME_BROWSER_EXTENSIONS_API_IDLTEST_IDLTEST_API_H_ 41