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

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

Issue 631083002: Replacing the OVERRIDE with override and FINAL with final in content/browser/speech (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/google_streaming_remote_engine.h" 5 #include "content/browser/speech/google_streaming_remote_engine.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/rand_util.h" 10 #include "base/rand_util.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 if (!event.ParseFromString(response)) { 46 if (!event.ParseFromString(response)) {
47 DVLOG(1) << "Parse failed!"; 47 DVLOG(1) << "Parse failed!";
48 return; 48 return;
49 } 49 }
50 if (event.has_status()) 50 if (event.has_status())
51 DVLOG(1) << "STATUS\t" << event.status(); 51 DVLOG(1) << "STATUS\t" << event.status();
52 for (int i = 0; i < event.result_size(); ++i) { 52 for (int i = 0; i < event.result_size(); ++i) {
53 DVLOG(1) << "RESULT #" << i << ":"; 53 DVLOG(1) << "RESULT #" << i << ":";
54 const proto::SpeechRecognitionResult& res = event.result(i); 54 const proto::SpeechRecognitionResult& res = event.result(i);
55 if (res.has_final()) 55 if (res.has_final())
56 DVLOG(1) << " FINAL:\t" << res.final(); 56 DVLOG(1) << " final:\t" << res.final();
57 if (res.has_stability()) 57 if (res.has_stability())
58 DVLOG(1) << " STABILITY:\t" << res.stability(); 58 DVLOG(1) << " STABILITY:\t" << res.stability();
59 for (int j = 0; j < res.alternative_size(); ++j) { 59 for (int j = 0; j < res.alternative_size(); ++j) {
60 const proto::SpeechRecognitionAlternative& alt = 60 const proto::SpeechRecognitionAlternative& alt =
61 res.alternative(j); 61 res.alternative(j);
62 if (alt.has_confidence()) 62 if (alt.has_confidence())
63 DVLOG(1) << " CONFIDENCE:\t" << alt.confidence(); 63 DVLOG(1) << " CONFIDENCE:\t" << alt.confidence();
64 if (alt.has_transcript()) 64 if (alt.has_transcript())
65 DVLOG(1) << " TRANSCRIPT:\t" << alt.transcript(); 65 DVLOG(1) << " TRANSCRIPT:\t" << alt.transcript();
66 } 66 }
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 } 573 }
574 574
575 GoogleStreamingRemoteEngine::FSMEventArgs::FSMEventArgs(FSMEvent event_value) 575 GoogleStreamingRemoteEngine::FSMEventArgs::FSMEventArgs(FSMEvent event_value)
576 : event(event_value) { 576 : event(event_value) {
577 } 577 }
578 578
579 GoogleStreamingRemoteEngine::FSMEventArgs::~FSMEventArgs() { 579 GoogleStreamingRemoteEngine::FSMEventArgs::~FSMEventArgs() {
580 } 580 }
581 581
582 } // namespace content 582 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698