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