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

Side by Side Diff: sky/engine/core/script/dart_service_isolate.h

Issue 1107803002: Add Observatory to sky dart_controller (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 months 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 | « sky/engine/core/script/dart_debugger.cc ('k') | sky/engine/core/script/dart_service_isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SKY_ENGINE_CORE_SCRIPT_DART_SERVICE_ISOLATE_H_
6 #define SKY_ENGINE_CORE_SCRIPT_DART_SERVICE_ISOLATE_H_
7
8 #include <string>
9
10 #include "include/dart_api.h"
11 #include "sky/engine/config.h"
12 #include "sky/engine/tonic/dart_builtin.h"
13
14 namespace blink {
15
16 class DartServiceIsolate {
17 public:
18 static bool Bootstrap();
19
20 static bool Startup(std::string server_ip,
21 intptr_t server_port,
22 Dart_LibraryTagHandler embedder_tag_handler,
23 char** error);
24
25 private:
26 // Native entries.
27 static void TriggerResourceLoad(Dart_NativeArguments args);
28 static void NotifyServerState(Dart_NativeArguments args);
29 static void Shutdown(Dart_NativeArguments args);
30 // Native entry resolution.
31 static Dart_NativeFunction NativeResolver(Dart_Handle name,
32 int argument_count,
33 bool* auto_setup_scope);
34 static const uint8_t* NativeSymbolizer(Dart_NativeFunction native_function);
35 static DartBuiltin::Natives native_entries_[];
36 static DartBuiltin* builtins_;
37
38 // Script loading.
39 static Dart_Handle GetSource(const char* name);
40 static Dart_Handle LoadScript(const char* name);
41 static Dart_Handle LoadSource(Dart_Handle library, const char* name);
42 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, Dart_Handle library,
43 Dart_Handle url);
44
45 // Observatory resource loading.
46 static Dart_Handle LoadResources(Dart_Handle library);
47 static Dart_Handle LoadResource(Dart_Handle library, const char* name);
48
49 static Dart_LibraryTagHandler embedder_tag_handler_;
50 };
51
52
53 } // namespace blink
54
55 #endif // SKY_ENGINE_CORE_SCRIPT_DART_SERVICE_ISOLATE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/script/dart_debugger.cc ('k') | sky/engine/core/script/dart_service_isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698