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

Side by Side Diff: Source/bindings/dart/DartService.h

Issue 104433004: Enable VM service inside Dartium Renderer processes (Closed) Base URL: svn://svn.chromium.org/multivm/branches/1650/blink
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
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.
4
5 #ifndef DartService_h
6 #define DartService_h
7
8 #include <dart_api.h>
9
10 namespace WebCore {
11
12 class DartServiceInternal;
13 class Document;
14
15 class DartService {
16 public:
17 // Returns false if service could not be started.
18 static bool Start(Document*);
19 static bool Stop();
20
21 // Error message if startup failed.
22 static const char* GetErrorMessage();
23
24 static Dart_Port port();
25 static Dart_Port GetRequestPort() { return m_requestPort; }
26 static bool IsRunning();
27
28 static bool SendIsolateStartupMessage();
29 static bool SendIsolateShutdownMessage();
30
31 static void VmServiceShutdownCallback(void* callbackData);
32
33 private:
34 static Dart_Handle GetSource(const char* name);
35 static Dart_Handle LoadScript(const char* name);
36 static Dart_Handle LoadSources(Dart_Handle library, const char** names);
37 static Dart_Handle LoadSource(Dart_Handle library, const char* name);
38 static Dart_Handle LoadResources(Dart_Handle library);
39 static Dart_Handle LoadResource(Dart_Handle library, const char* name, const char* prefix);
40 static Dart_Handle LibraryTagHandler(Dart_LibraryTag, Dart_Handle library, D art_Handle url);
41 static Dart_NativeFunction NativeResolver(Dart_Handle name, int numArguments );
42 static Dart_Isolate m_isolate;
43 static Dart_Port m_port;
44 static Dart_Port m_requestPort;
45 static const char* m_errorMsg;
46 friend class DartServiceInternal;
47 };
48
49 }
siva 2013/12/13 21:48:22 } // namespace WebCore
50
51 #endif // DartService_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698