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 CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_PREFERENCES_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_PREFERENCES_H_ | |
7 #pragma once | |
8 | |
9 #include "base/memory/ref_counted.h" | |
10 | |
11 namespace content { | |
12 | |
13 class SpeechInputPreferences | |
14 : public base::RefCountedThreadSafe<SpeechInputPreferences> { | |
15 public: | |
16 // Only to be called on the IO thread. | |
17 virtual bool FilterProfanities() const = 0; | |
18 | |
19 virtual void SetFilterProfanities(bool filter_profanities) = 0; | |
20 | |
21 protected: | |
22 virtual ~SpeechInputPreferences() {} | |
23 | |
24 private: | |
25 friend class base::RefCountedThreadSafe<SpeechInputPreferences>; | |
26 }; | |
27 | |
28 } // namespace content | |
29 | |
30 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_INPUT_PREFERENCES_H_ | |
OLD | NEW |