flutter_flutter/lib/io/dart_io.h
Jason Simmons e1aa86739b Provide an entropy source to the Dart engine (#4161)
This is required by the _CryptoUtils class used by the recently repackaged
Dart HTTP libraries
2017-10-02 12:40:29 -07:00

26 lines
543 B
C++

// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_LIB_IO_DART_IO_H_
#define FLUTTER_LIB_IO_DART_IO_H_
#include <cstdint>
#include "lib/fxl/macros.h"
namespace blink {
class DartIO {
public:
static void InitForIsolate();
static bool EntropySource(uint8_t* buffer, intptr_t length);
private:
FXL_DISALLOW_IMPLICIT_CONSTRUCTORS(DartIO);
};
} // namespace blink
#endif // FLUTTER_LIB_IO_DART_IO_H_