blob: 11067ee2cf772d8ec2778b92b45b1c2b0d0aab7e [file] [log] [blame]
// Copyright (c) 2015, 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_VMSERVICE_DARTIUM_H_
#define BIN_VMSERVICE_DARTIUM_H_
/* In order to avoid conflicts / issues with blink, no headers are included */
#include <dart_api.h>
#include <cstddef>
namespace dart {
namespace bin {
class VmServiceServer {
public:
static void Bootstrap();
static Dart_Isolate CreateIsolate(const uint8_t* snapshot_buffer);
static const char* GetServerIP();
static intptr_t GetServerPort();
static void DecompressAssets(const uint8_t* input, unsigned int input_len,
uint8_t** output, unsigned int* output_length);
/* DISALLOW_ALLOCATION */
void operator delete(void* pointer);
private:
void* operator new(size_t size);
/* DISALLOW_IMPLICIT_CONSTRUCTORS */
VmServiceServer();
VmServiceServer(const VmServiceServer&);
void operator=(const VmServiceServer&);
};
} // namespace bin
} // namespace dart
#endif // BIN_VMSERVICE_DARTIUM_H_