| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_PREFERENCES_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_PREFERENCES_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_PREFERENCES_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_PREFERENCES_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 | 12 |
| 13 class SpeechInputPreferences | 13 class SpeechRecognitionPreferences |
| 14 : public base::RefCountedThreadSafe<SpeechInputPreferences> { | 14 : public base::RefCountedThreadSafe<SpeechRecognitionPreferences> { |
| 15 public: | 15 public: |
| 16 // Only to be called on the IO thread. | 16 // Only to be called on the IO thread. |
| 17 virtual bool FilterProfanities() const = 0; | 17 virtual bool FilterProfanities() const = 0; |
| 18 | 18 |
| 19 virtual void SetFilterProfanities(bool filter_profanities) = 0; | 19 virtual void SetFilterProfanities(bool filter_profanities) = 0; |
| 20 | 20 |
| 21 protected: | 21 protected: |
| 22 virtual ~SpeechInputPreferences() {} | 22 virtual ~SpeechRecognitionPreferences() {} |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 friend class base::RefCountedThreadSafe<SpeechInputPreferences>; | 25 friend class base::RefCountedThreadSafe<SpeechRecognitionPreferences>; |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 } // namespace content | 28 } // namespace content |
| 29 | 29 |
| 30 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_PREFERENCES_H_ | 30 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_PREFERENCES_H_ |
| OLD | NEW |