| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_PREFERENCES_H_ | |
| 6 #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_PREFERENCES_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/basictypes.h" | |
| 10 #include "content/public/browser/speech_input_preferences.h" | |
| 11 | |
| 12 class PrefService; | |
| 13 | |
| 14 class ChromeSpeechInputPreferences : public content::SpeechInputPreferences { | |
| 15 public: | |
| 16 explicit ChromeSpeechInputPreferences(PrefService* pref_service); | |
| 17 | |
| 18 // Overridden from content::SpeechInputPreferences: | |
| 19 virtual bool FilterProfanities() const OVERRIDE; | |
| 20 virtual void SetFilterProfanities(bool filter_profanities) OVERRIDE; | |
| 21 | |
| 22 private: | |
| 23 virtual ~ChromeSpeechInputPreferences(); | |
| 24 | |
| 25 // Only to be accessed and modified on the IO thread. | |
| 26 bool filter_profanities_; | |
| 27 | |
| 28 DISALLOW_COPY_AND_ASSIGN(ChromeSpeechInputPreferences); | |
| 29 }; | |
| 30 | |
| 31 #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_PREFERENCES_H_ | |
| OLD | NEW |