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

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, 8 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
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 Startup(std::string server_ip,
19 intptr_t server_port,
20 Dart_LibraryTagHandler embedder_tag_handler,
21 char** error);
22
23 private:
24 // Native entries.
25 static void TriggerResourceLoad(Dart_NativeArguments args);
26 static void NotifyServerState(Dart_NativeArguments args);
27 static void Shutdown(Dart_NativeArguments args);
28 // Native entry resolution.
29 static Dart_NativeFunction NativeResolver(Dart_Handle name,
30 int argument_count,
31 bool* auto_setup_scope);
32 static const uint8_t* NativeSymbolizer(Dart_NativeFunction native_function);
33 static DartBuiltin::Natives native_entries_[];
34 static DartBuiltin* builtins_;
35
36 // Script loading.
37 static Dart_Handle GetSource(const char* name);
38 static Dart_Handle LoadScript(const char* name);
39 static Dart_Handle LoadSource(Dart_Handle library, const char* name);
40 static Dart_Handle LibraryTagHandler(Dart_LibraryTag tag, Dart_Handle library,
41 Dart_Handle url);
42
43 // Observatory resource loading.
44 static Dart_Handle LoadResources(Dart_Handle library);
45 static Dart_Handle LoadResource(Dart_Handle library, const char* name);
46
47 static Dart_LibraryTagHandler embedder_tag_handler_;
48 };
49
50
51 } // namespace blink
52
53 #endif // SKY_ENGINE_CORE_SCRIPT_DART_SERVICE_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698