| Index: runtime/bin/io_buffer.h
|
| diff --git a/runtime/bin/crypto.h b/runtime/bin/io_buffer.h
|
| similarity index 51%
|
| copy from runtime/bin/crypto.h
|
| copy to runtime/bin/io_buffer.h
|
| index b1559729854c64b5375c47d2b55317343c9064b2..c9a72877e0c74b054e3a97db163555c589410cad 100644
|
| --- a/runtime/bin/crypto.h
|
| +++ b/runtime/bin/io_buffer.h
|
| @@ -2,21 +2,20 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -#ifndef BIN_CRYPTO_H_
|
| -#define BIN_CRYPTO_H_
|
| +#ifndef IO_BUFFER_H_
|
| +#define IO_BUFFER_H_
|
|
|
| -#include "bin/builtin.h"
|
| -#include "bin/utils.h"
|
| +#include "platform/globals.h"
|
|
|
| +#include "include/dart_api.h"
|
|
|
| -class Crypto {
|
| +class IOBuffer {
|
| public:
|
| - static bool GetRandomBytes(intptr_t count, uint8_t* buffer);
|
| + static Dart_Handle Allocate(intptr_t size, uint8_t **buffer);
|
|
|
| private:
|
| DISALLOW_ALLOCATION();
|
| - DISALLOW_IMPLICIT_CONSTRUCTORS(Crypto);
|
| + DISALLOW_IMPLICIT_CONSTRUCTORS(IOBuffer);
|
| };
|
|
|
| -#endif // BIN_CRYPTO_H_
|
| -
|
| +#endif // IO_BUFFER_H_
|
|
|