diff options
Diffstat (limited to 'content/public/browser/speech_recognition_preferences.h')
| -rw-r--r-- | content/public/browser/speech_recognition_preferences.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/content/public/browser/speech_recognition_preferences.h b/content/public/browser/speech_recognition_preferences.h new file mode 100644 index 0000000..c5682e2 --- /dev/null +++ b/content/public/browser/speech_recognition_preferences.h @@ -0,0 +1,30 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_PREFERENCES_H_ +#define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_PREFERENCES_H_ +#pragma once + +#include "base/memory/ref_counted.h" + +namespace content { + +class SpeechRecognitionPreferences + : public base::RefCountedThreadSafe<SpeechRecognitionPreferences> { + public: + // Only to be called on the IO thread. + virtual bool FilterProfanities() const = 0; + + virtual void SetFilterProfanities(bool filter_profanities) = 0; + + protected: + virtual ~SpeechRecognitionPreferences() {} + + private: + friend class base::RefCountedThreadSafe<SpeechRecognitionPreferences>; +}; + +} // namespace content + +#endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_PREFERENCES_H_ |
