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

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

Issue 9104041: Added API Dart_PostCMessage for posting a Dart_CMessage structure (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from asiva@ Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/bin/dartutils.cc » ('j') | runtime/include/dart_api.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_DARTUTILS_H_ 5 #ifndef BIN_DARTUTILS_H_
6 #define BIN_DARTUTILS_H_ 6 #define BIN_DARTUTILS_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "include/dart_api.h" 9 #include "include/dart_api.h"
10 #include "platform/globals.h" 10 #include "platform/globals.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 static bool IsDartIOLibURL(const char* url_name); 71 static bool IsDartIOLibURL(const char* url_name);
72 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping, 72 static Dart_Handle CanonicalizeURL(CommandLineOptions* url_mapping,
73 Dart_Handle library, 73 Dart_Handle library,
74 const char* url_str); 74 const char* url_str);
75 static Dart_Handle ReadStringFromFile(const char* filename); 75 static Dart_Handle ReadStringFromFile(const char* filename);
76 static Dart_Handle LoadSource(CommandLineOptions* url_mapping, 76 static Dart_Handle LoadSource(CommandLineOptions* url_mapping,
77 Dart_Handle library, 77 Dart_Handle library,
78 Dart_Handle url, 78 Dart_Handle url,
79 Dart_LibraryTag tag, 79 Dart_LibraryTag tag,
80 const char* filename); 80 const char* filename);
81 static bool PostNull(Dart_Port port_id);
82 static bool PostInt32(Dart_Port port_id, int32_t value);
81 83
82 static const char* kDartScheme; 84 static const char* kDartScheme;
83 static const char* kBuiltinLibURL; 85 static const char* kBuiltinLibURL;
84 static const char* kCoreLibURL; 86 static const char* kCoreLibURL;
85 static const char* kCoreImplLibURL; 87 static const char* kCoreImplLibURL;
86 static const char* kIOLibURL; 88 static const char* kIOLibURL;
87 89
88 static const char* kIdFieldName; 90 static const char* kIdFieldName;
89 91
90 private: 92 private:
91 static const char* GetCanonicalPath(const char* reference_dir, 93 static const char* GetCanonicalPath(const char* reference_dir,
92 const char* filename); 94 const char* filename);
93 95
94 DISALLOW_ALLOCATION(); 96 DISALLOW_ALLOCATION();
95 DISALLOW_IMPLICIT_CONSTRUCTORS(DartUtils); 97 DISALLOW_IMPLICIT_CONSTRUCTORS(DartUtils);
96 }; 98 };
97 99
98 #endif // BIN_DARTUTILS_H_ 100 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/dartutils.cc » ('j') | runtime/include/dart_api.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698