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

Unified Diff: runtime/bin/crypto.h

Issue 11175030: Add sessions to HttpServer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review update. 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/crypto.h
diff --git a/runtime/bin/crypto.h b/runtime/bin/crypto.h
new file mode 100644
index 0000000000000000000000000000000000000000..b1559729854c64b5375c47d2b55317343c9064b2
--- /dev/null
+++ b/runtime/bin/crypto.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// 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_
+
+#include "bin/builtin.h"
+#include "bin/utils.h"
+
+
+class Crypto {
+ public:
+ static bool GetRandomBytes(intptr_t count, uint8_t* buffer);
+
+ private:
+ DISALLOW_ALLOCATION();
+ DISALLOW_IMPLICIT_CONSTRUCTORS(Crypto);
+};
+
+#endif // BIN_CRYPTO_H_
+

Powered by Google App Engine
This is Rietveld 408576698