Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2644)

Unified Diff: chrome/browser/speech/chrome_speech_recognition_preferences.h

Issue 9568002: Renamed speech input implementation from to speech_recognition_*. The namespace has been renamed fr… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased from master. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698