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

Unified Diff: Source/core/speech/SpeechInputResult.h

Issue 170423004: Add Oilpan transition types for core/speech. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert SpeechInputResult::create() overload to take a const ref. 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 | « Source/core/speech/SpeechInputEvent.h ('k') | Source/core/speech/SpeechInputResult.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/speech/SpeechInputResult.h
diff --git a/Source/core/speech/SpeechInputResult.h b/Source/core/speech/SpeechInputResult.h
index 5a5d44da7bdf6c3f42337ce6a7cc352fe1e6f107..dd05524db66f2c0fc9eeae280816667a906703a2 100644
--- a/Source/core/speech/SpeechInputResult.h
+++ b/Source/core/speech/SpeechInputResult.h
@@ -29,6 +29,7 @@
#if ENABLE(INPUT_SPEECH)
#include "bindings/v8/ScriptWrappable.h"
+#include "heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
@@ -37,14 +38,17 @@ namespace WebCore {
// This class holds one speech recognition result including the text and other related
// fields, as received from the embedder.
-class SpeechInputResult : public RefCounted<SpeechInputResult>, public ScriptWrappable {
+class SpeechInputResult : public RefCountedWillBeGarbageCollectedFinalized<SpeechInputResult>, public ScriptWrappable {
+ DECLARE_GC_INFO;
public:
- static PassRefPtr<SpeechInputResult> create(const SpeechInputResult& source);
- static PassRefPtr<SpeechInputResult> create(const String& utterance, double confidence);
+ static PassRefPtrWillBeRawPtr<SpeechInputResult> create(const SpeechInputResult& source);
+ static PassRefPtrWillBeRawPtr<SpeechInputResult> create(const String& utterance, double confidence);
double confidence() const;
const String& utterance() const;
+ void trace(Visitor *) { }
+
private:
SpeechInputResult(const String& utterance, double confidence);
@@ -52,7 +56,7 @@ private:
double m_confidence;
};
-typedef Vector<RefPtr<SpeechInputResult> > SpeechInputResultArray;
+typedef WillBeHeapVector<RefPtrWillBeMember<SpeechInputResult> > SpeechInputResultArray;
} // namespace WebCore
« no previous file with comments | « Source/core/speech/SpeechInputEvent.h ('k') | Source/core/speech/SpeechInputResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698