OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 RUNTIME_BIN_VMSERVICE_DARTIUM_H_ | 5 #ifndef RUNTIME_BIN_VMSERVICE_DARTIUM_H_ |
6 #define RUNTIME_BIN_VMSERVICE_DARTIUM_H_ | 6 #define RUNTIME_BIN_VMSERVICE_DARTIUM_H_ |
7 | 7 |
8 /* In order to avoid conflicts / issues with blink, no headers are included */ | 8 /* In order to avoid conflicts / issues with blink, no headers are included */ |
9 | 9 |
10 #include <dart_api.h> | 10 #include <dart_api.h> |
11 #include <cstddef> | 11 #include <cstddef> |
12 | 12 |
13 namespace dart { | 13 namespace dart { |
14 namespace bin { | 14 namespace bin { |
15 | 15 |
16 class VmServiceServer { | 16 class VmServiceServer { |
17 public: | 17 public: |
18 static void Bootstrap(); | 18 static void Bootstrap(); |
19 static Dart_Isolate CreateIsolate(const uint8_t* snapshot_buffer); | 19 static Dart_Isolate CreateIsolate(const uint8_t* snapshot_buffer); |
20 | 20 |
21 static const char* GetServerAddress(); | 21 static const char* GetServerAddress(); |
22 | 22 |
23 static void DecompressAssets(const uint8_t* input, unsigned int input_len, | 23 static void DecompressAssets(const uint8_t* input, |
24 uint8_t** output, unsigned int* output_length); | 24 unsigned int input_len, |
| 25 uint8_t** output, |
| 26 unsigned int* output_length); |
25 | 27 |
26 /* DISALLOW_ALLOCATION */ | 28 /* DISALLOW_ALLOCATION */ |
27 void operator delete(void* pointer); | 29 void operator delete(void* pointer); |
| 30 |
28 private: | 31 private: |
29 void* operator new(size_t size); | 32 void* operator new(size_t size); |
30 | 33 |
31 /* DISALLOW_IMPLICIT_CONSTRUCTORS */ | 34 /* DISALLOW_IMPLICIT_CONSTRUCTORS */ |
32 VmServiceServer(); | 35 VmServiceServer(); |
33 VmServiceServer(const VmServiceServer&); | 36 VmServiceServer(const VmServiceServer&); |
34 void operator=(const VmServiceServer&); | 37 void operator=(const VmServiceServer&); |
35 }; | 38 }; |
36 | 39 |
37 } // namespace bin | 40 } // namespace bin |
38 } // namespace dart | 41 } // namespace dart |
39 | 42 |
40 #endif // RUNTIME_BIN_VMSERVICE_DARTIUM_H_ | 43 #endif // RUNTIME_BIN_VMSERVICE_DARTIUM_H_ |
OLD | NEW |