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

Side by Side Diff: content/browser/speech/speech_recognition_engine.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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 unified diff | Download patch
OLDNEW
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 #include "content/browser/speech/speech_recognition_engine.h" 5 #include "content/browser/speech/speech_recognition_engine.h"
6 6
7 namespace { 7 namespace {
8 const int kDefaultConfigSampleRate = 8000; 8 const int kDefaultConfigSampleRate = 8000;
9 const int kDefaultConfigBitsPerSample = 16; 9 const int kDefaultConfigBitsPerSample = 16;
10 const uint32 kDefaultMaxHypotheses = 1; 10 const uint32_t kDefaultMaxHypotheses = 1;
11 } // namespace 11 } // namespace
12 12
13 namespace content { 13 namespace content {
14 14
15 SpeechRecognitionEngine::Config::Config() 15 SpeechRecognitionEngine::Config::Config()
16 : filter_profanities(false), 16 : filter_profanities(false),
17 continuous(true), 17 continuous(true),
18 interim_results(true), 18 interim_results(true),
19 max_hypotheses(kDefaultMaxHypotheses), 19 max_hypotheses(kDefaultMaxHypotheses),
20 audio_sample_rate(kDefaultConfigSampleRate), 20 audio_sample_rate(kDefaultConfigSampleRate),
21 audio_num_bits_per_sample(kDefaultConfigBitsPerSample) { 21 audio_num_bits_per_sample(kDefaultConfigBitsPerSample) {
22 } 22 }
23 23
24 SpeechRecognitionEngine::Config::~Config() { 24 SpeechRecognitionEngine::Config::~Config() {
25 } 25 }
26 26
27 } // namespace content 27 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/speech/speech_recognition_engine.h ('k') | content/browser/speech/speech_recognition_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698