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

Unified Diff: third_party/WebKit/public/web/WebSpeechRecognizer.h

Issue 1851293002: Remove BLINK_ASSERT() and BLINK_ASSERT_NOT_REACHED() macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check the |callbacks| for nullptr and use explicit delete. Created 4 years, 8 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: third_party/WebKit/public/web/WebSpeechRecognizer.h
diff --git a/third_party/WebKit/public/web/WebSpeechRecognizer.h b/third_party/WebKit/public/web/WebSpeechRecognizer.h
index f43d5a6fa70577bc480b358a096584a806501c20..d5f88dbdc04657ab746b45f1bf49eae08a2fe5db 100644
--- a/third_party/WebKit/public/web/WebSpeechRecognizer.h
+++ b/third_party/WebKit/public/web/WebSpeechRecognizer.h
@@ -38,13 +38,13 @@ class WebSpeechRecognizerClient;
class WebSpeechRecognizer {
public:
// Start speech recognition for the specified handle using the specified parameters. Notifications on progress, results, and errors will be sent via the client.
- virtual void start(const WebSpeechRecognitionHandle&, const WebSpeechRecognitionParams&, WebSpeechRecognizerClient*) { BLINK_ASSERT_NOT_REACHED(); }
+ virtual void start(const WebSpeechRecognitionHandle&, const WebSpeechRecognitionParams&, WebSpeechRecognizerClient*) = 0;
// Stop speech recognition for the specified handle, returning any results for the audio recorded so far. Notifications and errors are sent via the client.
- virtual void stop(const WebSpeechRecognitionHandle&, WebSpeechRecognizerClient*) { BLINK_ASSERT_NOT_REACHED(); }
+ virtual void stop(const WebSpeechRecognitionHandle&, WebSpeechRecognizerClient*) = 0;
// Abort speech recognition for the specified handle, discarding any recorded audio. Notifications and errors are sent via the client.
- virtual void abort(const WebSpeechRecognitionHandle&, WebSpeechRecognizerClient*) { BLINK_ASSERT_NOT_REACHED(); }
+ virtual void abort(const WebSpeechRecognitionHandle&, WebSpeechRecognizerClient*) = 0;
protected:
virtual ~WebSpeechRecognizer() { }

Powered by Google App Engine
This is Rietveld 408576698