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

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

Issue 163493003: Revert of Move speech module over to Oilpan. (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
« no previous file with comments | « Source/modules/speech/SpeechGrammar.idl ('k') | Source/modules/speech/SpeechGrammarList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/speech/SpeechGrammarList.h
diff --git a/Source/modules/speech/SpeechGrammarList.h b/Source/modules/speech/SpeechGrammarList.h
index d74b81f27d91e451327c39563c9256862db586b5..5f877d9f9708a13a233c24ce81d47b5f19197bfb 100644
--- a/Source/modules/speech/SpeechGrammarList.h
+++ b/Source/modules/speech/SpeechGrammarList.h
@@ -27,7 +27,6 @@
#define SpeechGrammarList_h
#include "bindings/v8/ScriptWrappable.h"
-#include "heap/Handle.h"
#include "modules/speech/SpeechGrammar.h"
#include "wtf/RefCounted.h"
#include "wtf/Vector.h"
@@ -36,10 +35,9 @@
class ExecutionContext;
-class SpeechGrammarList : public RefCountedWillBeGarbageCollectedFinalized<SpeechGrammarList>, public ScriptWrappable {
- DECLARE_GC_INFO;
+class SpeechGrammarList : public ScriptWrappable, public RefCounted<SpeechGrammarList> {
public:
- static PassRefPtrWillBeRawPtr<SpeechGrammarList> create();
+ static PassRefPtr<SpeechGrammarList> create();
unsigned long length() const { return m_grammars.size(); }
SpeechGrammar* item(unsigned long) const;
@@ -47,12 +45,10 @@
void addFromUri(ExecutionContext*, const String& src, double weight = 1.0);
void addFromString(const String&, double weight = 1.0);
- void trace(Visitor*);
-
private:
SpeechGrammarList();
- WillBeHeapVector<RefPtrWillBeMember<SpeechGrammar> > m_grammars;
+ Vector<RefPtr<SpeechGrammar> > m_grammars;
};
} // namespace WebCore
« no previous file with comments | « Source/modules/speech/SpeechGrammar.idl ('k') | Source/modules/speech/SpeechGrammarList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698