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

Side by Side Diff: runtime/bin/crypto.h

Issue 1781883002: Fixes some memory leaks in //runtime/bin (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix tests on Windows Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/bin/crypto.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef BIN_CRYPTO_H_ 5 #ifndef BIN_CRYPTO_H_
6 #define BIN_CRYPTO_H_ 6 #define BIN_CRYPTO_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/utils.h" 9 #include "bin/utils.h"
10 10
11
12 namespace dart { 11 namespace dart {
13 namespace bin { 12 namespace bin {
14 13
15 class Crypto { 14 class Crypto {
16 public: 15 public:
17 static bool GetRandomBytes(intptr_t count, uint8_t* buffer); 16 static bool GetRandomBytes(intptr_t count, uint8_t* buffer);
18 17
19 private: 18 private:
20 DISALLOW_ALLOCATION(); 19 DISALLOW_ALLOCATION();
21 DISALLOW_IMPLICIT_CONSTRUCTORS(Crypto); 20 DISALLOW_IMPLICIT_CONSTRUCTORS(Crypto);
22 }; 21 };
23 22
24 } // namespace bin 23 } // namespace bin
25 } // namespace dart 24 } // namespace dart
26 25
27 #endif // BIN_CRYPTO_H_ 26 #endif // BIN_CRYPTO_H_
28 27
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/crypto.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698