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

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

Issue 1534523002: Compress Observatory assets (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | « runtime/bin/main.cc ('k') | runtime/bin/vmservice_dartium.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) 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 BIN_VMSERVICE_DARTIUM_H_ 5 #ifndef BIN_VMSERVICE_DARTIUM_H_
6 #define BIN_VMSERVICE_DARTIUM_H_ 6 #define 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* GetServerIP(); 21 static const char* GetServerIP();
22 static intptr_t GetServerPort(); 22 static intptr_t GetServerPort();
23 23
24 static void DecompressAssets(const uint8_t* input, unsigned int input_len,
25 uint8_t** output, unsigned int* output_length);
26
24 /* DISALLOW_ALLOCATION */ 27 /* DISALLOW_ALLOCATION */
25 void operator delete(void* pointer); 28 void operator delete(void* pointer);
26 private: 29 private:
27 void* operator new(size_t size); 30 void* operator new(size_t size);
28 31
29 /* DISALLOW_IMPLICIT_CONSTRUCTORS */ 32 /* DISALLOW_IMPLICIT_CONSTRUCTORS */
30 VmServiceServer(); 33 VmServiceServer();
31 VmServiceServer(const VmServiceServer&); 34 VmServiceServer(const VmServiceServer&);
32 void operator=(const VmServiceServer&); 35 void operator=(const VmServiceServer&);
33 }; 36 };
34 37
35 } // namespace bin 38 } // namespace bin
36 } // namespace dart 39 } // namespace dart
37 40
38 #endif // BIN_VMSERVICE_DARTIUM_H_ 41 #endif // BIN_VMSERVICE_DARTIUM_H_
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/vmservice_dartium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698