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

Unified Diff: content/browser/speech/speech_recognition_engine.h

Issue 2919993002: Replace deprecated base::NonThreadSafe in /content/browser/speech in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 7 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 | content/browser/speech/speech_recognition_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/speech_recognition_engine.h
diff --git a/content/browser/speech/speech_recognition_engine.h b/content/browser/speech/speech_recognition_engine.h
index e7a2535f3cfa1eb699ebf8a682bfa5e146dd038c..9792d3aaa6b5f9a597f39b1d6dbc2866e0af5858 100644
--- a/content/browser/speech/speech_recognition_engine.h
+++ b/content/browser/speech/speech_recognition_engine.h
@@ -12,7 +12,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/threading/non_thread_safe.h"
+#include "base/sequence_checker.h"
#include "content/browser/speech/audio_encoder.h"
#include "content/browser/speech/chunked_byte_buffer.h"
#include "content/common/content_export.h"
@@ -57,9 +57,7 @@ struct SpeechRecognitionError;
// EndRecognition. If a recognition was started, the caller can free the
// SpeechRecognitionEngine only after calling EndRecognition.
-class CONTENT_EXPORT SpeechRecognitionEngine
- : public net::URLFetcherDelegate,
- public NON_EXPORTED_BASE(base::NonThreadSafe) {
+class CONTENT_EXPORT SpeechRecognitionEngine : public net::URLFetcherDelegate {
public:
class Delegate {
public:
@@ -216,6 +214,8 @@ class CONTENT_EXPORT SpeechRecognitionEngine
bool use_framed_post_data_;
FSMState state_;
+ SEQUENCE_CHECKER(sequence_checker_);
+
DISALLOW_COPY_AND_ASSIGN(SpeechRecognitionEngine);
};
« no previous file with comments | « no previous file | content/browser/speech/speech_recognition_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698