| Index: chrome/browser/speech/chrome_speech_recognition_preferences.h
|
| diff --git a/chrome/browser/speech/chrome_speech_recognition_preferences.h b/chrome/browser/speech/chrome_speech_recognition_preferences.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0a6310e1d59d29623df0057031d820b8bac1ff91
|
| --- /dev/null
|
| +++ b/chrome/browser/speech/chrome_speech_recognition_preferences.h
|
| @@ -0,0 +1,32 @@
|
| +// 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_
|
|
|