Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Unified Diff: runtime/bin/io_buffer.h

Issue 11338037: Start reading data from sockets directly into external byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698