OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef SKY_ENGINE_CORE_SCRIPT_DART_SERVICE_ISOLATE_H_ | 5 #ifndef SKY_ENGINE_CORE_SCRIPT_DART_SERVICE_ISOLATE_H_ |
6 #define SKY_ENGINE_CORE_SCRIPT_DART_SERVICE_ISOLATE_H_ | 6 #define SKY_ENGINE_CORE_SCRIPT_DART_SERVICE_ISOLATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "include/dart_api.h" | 10 #include "include/dart_api.h" |
11 #include "sky/engine/config.h" | |
12 #include "sky/engine/tonic/dart_builtin.h" | 11 #include "sky/engine/tonic/dart_builtin.h" |
13 | 12 |
14 namespace blink { | 13 namespace blink { |
15 | 14 |
16 class DartServiceIsolate { | 15 class DartServiceIsolate { |
17 public: | 16 public: |
18 static bool Bootstrap(); | 17 static bool Bootstrap(); |
19 | 18 |
20 static bool Startup(std::string server_ip, | 19 static bool Startup(std::string server_ip, |
21 intptr_t server_port, | 20 intptr_t server_port, |
(...skipping 24 matching lines...) Expand all Loading... |
46 static Dart_Handle LoadResources(Dart_Handle library); | 45 static Dart_Handle LoadResources(Dart_Handle library); |
47 static Dart_Handle LoadResource(Dart_Handle library, const char* name); | 46 static Dart_Handle LoadResource(Dart_Handle library, const char* name); |
48 | 47 |
49 static Dart_LibraryTagHandler embedder_tag_handler_; | 48 static Dart_LibraryTagHandler embedder_tag_handler_; |
50 }; | 49 }; |
51 | 50 |
52 | 51 |
53 } // namespace blink | 52 } // namespace blink |
54 | 53 |
55 #endif // SKY_ENGINE_CORE_SCRIPT_DART_SERVICE_ISOLATE_H_ | 54 #endif // SKY_ENGINE_CORE_SCRIPT_DART_SERVICE_ISOLATE_H_ |
OLD | NEW |