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

Unified Diff: src/extensions/experimental/break-iterator.h

Issue 6609038: Fix memory corruption with AdoptText method.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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 | « no previous file | src/extensions/experimental/break-iterator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/extensions/experimental/break-iterator.h
===================================================================
--- src/extensions/experimental/break-iterator.h (revision 7051)
+++ src/extensions/experimental/break-iterator.h (working copy)
@@ -34,6 +34,7 @@
namespace U_ICU_NAMESPACE {
class BreakIterator;
+class UnicodeString;
}
namespace v8 {
@@ -48,6 +49,11 @@
// Unpacks break iterator object from corresponding JavaScript object.
static icu::BreakIterator* UnpackBreakIterator(v8::Handle<v8::Object> obj);
+ // Deletes the old value and sets the adopted text in
+ // corresponding JavaScript object.
+ static UnicodeString* ResetAdoptedText(v8::Handle<v8::Object> obj,
+ v8::Handle<v8::Value> text_value);
+
// Release memory we allocated for the BreakIterator once the JS object that
// holds the pointer gets garbage collected.
static void DeleteBreakIterator(v8::Persistent<v8::Value> object,
« no previous file with comments | « no previous file | src/extensions/experimental/break-iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698