// 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 CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_PREFERENCES_H_ #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_PREFERENCES_H_ #pragma once #include "base/basictypes.h" #include "content/public/browser/speech_recognition_preferences.h" class PrefService; class ChromeSpeechRecognitionPreferences : public content::SpeechRecognitionPreferences { public: explicit ChromeSpeechRecognitionPreferences(PrefService* pref_service); // Overridden from content::SpeechRecognitionPreferences: virtual bool FilterProfanities() const OVERRIDE; virtual void SetFilterProfanities(bool filter_profanities) OVERRIDE; private: virtual ~ChromeSpeechRecognitionPreferences(); // Only to be accessed and modified on the IO thread. bool filter_profanities_; DISALLOW_COPY_AND_ASSIGN(ChromeSpeechRecognitionPreferences); }; #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_PREFERENCES_H_