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

Side by Side Diff: runtime/lib/developer.dart

Issue 1299493007: Rework service extensions to be safe (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 patch bool debugger({bool when: true, 5 patch bool debugger({bool when: true,
6 String message}) native "Developer_debugger"; 6 String message}) native "Developer_debugger";
7 7
8 patch Object inspect(Object object) native "Developer_inspect"; 8 patch Object inspect(Object object) native "Developer_inspect";
9 9
10 patch void log(String message, 10 patch void log(String message,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 int _nextSequenceNumber = 0; 42 int _nextSequenceNumber = 0;
43 43
44 _log(String message, 44 _log(String message,
45 int timestamp, 45 int timestamp,
46 int sequenceNumber, 46 int sequenceNumber,
47 int level, 47 int level,
48 String name, 48 String name,
49 Zone zone, 49 Zone zone,
50 Object error, 50 Object error,
51 StackTrace stackTrace) native "Developer_log"; 51 StackTrace stackTrace) native "Developer_log";
52
53 patch ServiceExtensionHandler _lookupExtension(String method)
54 native "Developer_lookupExtension";
55
56 patch _registerExtension(String method, ServiceExtensionHandler handler)
57 native "Developer_registerExtension";
OLDNEW
« no previous file with comments | « runtime/lib/developer.cc ('k') | runtime/observatory/tests/service/developer_extension_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698