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

Unified Diff: runtime/platform/json.h

Issue 170943003: Allow for embedder provided service request handlers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/platform/json.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/platform/json.h
diff --git a/runtime/platform/json.h b/runtime/platform/json.h
index a793cb888d816f4a972062b5b0afe77dcac9c57a..36c7d5d123b3f1812a416efd409d4438d0590969 100644
--- a/runtime/platform/json.h
+++ b/runtime/platform/json.h
@@ -136,6 +136,10 @@ class TextBuffer : ValueObject {
char* buf() { return buf_; }
intptr_t length() { return msg_len_; }
+ // Steal ownership of the buffer pointer.
+ // NOTE: TextBuffer is empty afterwards.
+ const char* Steal();
+
private:
void EnsureCapacity(intptr_t len);
char* buf_;
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/platform/json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698