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

Unified Diff: Source/modules/speech/SpeechRecognitionResult.h

Issue 169343002: [WIP]Add WebPrivateHeapPtr and use it for speech platform layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
Index: Source/modules/speech/SpeechRecognitionResult.h
diff --git a/Source/modules/speech/SpeechRecognitionResult.h b/Source/modules/speech/SpeechRecognitionResult.h
index fa6df939ee102f690178414226b5c8229dea13bb..797f7efc8a857eb42b1b96f5db42e9fb7f11ce6e 100644
--- a/Source/modules/speech/SpeechRecognitionResult.h
+++ b/Source/modules/speech/SpeechRecognitionResult.h
@@ -37,11 +37,11 @@ namespace WebCore {
// FIXME: oilpan: the platform outer layer (WebSpeechRecognitionResult) depends on
// holding a WebPrivatePtr (a RefPtr) to this result object. When/if such pointers
// can be to GCed objects, we can drop the extra reference counting layer.
-class SpeechRecognitionResult : public RefCountedWillBeRefCountedGarbageCollected<SpeechRecognitionResult>, public ScriptWrappable {
+class SpeechRecognitionResult : public RefCountedWillBeGarbageCollected<SpeechRecognitionResult>, public ScriptWrappable {
DECLARE_GC_INFO;
public:
~SpeechRecognitionResult();
- static PassRefPtr<SpeechRecognitionResult> create(const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionAlternative> >&, bool final);
+ static PassRefPtrWillBeRawPtr<SpeechRecognitionResult> create(const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionAlternative> >&, bool final);
unsigned long length() { return m_alternatives.size(); }
SpeechRecognitionAlternative* item(unsigned long index);

Powered by Google App Engine
This is Rietveld 408576698