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

Side by Side Diff: content/browser/speech/google_one_shot_remote_engine.h

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 #ifndef CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ 5 #ifndef CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_
6 #define CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ 6 #define CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 18 matching lines...) Expand all
29 public: 29 public:
30 // Duration of each audio packet. 30 // Duration of each audio packet.
31 static const int kAudioPacketIntervalMs; 31 static const int kAudioPacketIntervalMs;
32 // ID passed to URLFetcher::Create(). Used for testing. 32 // ID passed to URLFetcher::Create(). Used for testing.
33 static int url_fetcher_id_for_tests; 33 static int url_fetcher_id_for_tests;
34 34
35 explicit GoogleOneShotRemoteEngine(net::URLRequestContextGetter* context); 35 explicit GoogleOneShotRemoteEngine(net::URLRequestContextGetter* context);
36 virtual ~GoogleOneShotRemoteEngine(); 36 virtual ~GoogleOneShotRemoteEngine();
37 37
38 // SpeechRecognitionEngine methods. 38 // SpeechRecognitionEngine methods.
39 virtual void SetConfig(const SpeechRecognitionEngineConfig& config) OVERRIDE; 39 virtual void SetConfig(const SpeechRecognitionEngineConfig& config) override;
40 virtual void StartRecognition() OVERRIDE; 40 virtual void StartRecognition() override;
41 virtual void EndRecognition() OVERRIDE; 41 virtual void EndRecognition() override;
42 virtual void TakeAudioChunk(const AudioChunk& data) OVERRIDE; 42 virtual void TakeAudioChunk(const AudioChunk& data) override;
43 virtual void AudioChunksEnded() OVERRIDE; 43 virtual void AudioChunksEnded() override;
44 virtual bool IsRecognitionPending() const OVERRIDE; 44 virtual bool IsRecognitionPending() const override;
45 virtual int GetDesiredAudioChunkDurationMs() const OVERRIDE; 45 virtual int GetDesiredAudioChunkDurationMs() const override;
46 46
47 // net::URLFetcherDelegate methods. 47 // net::URLFetcherDelegate methods.
48 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; 48 virtual void OnURLFetchComplete(const net::URLFetcher* source) override;
49 49
50 private: 50 private:
51 SpeechRecognitionEngineConfig config_; 51 SpeechRecognitionEngineConfig config_;
52 scoped_ptr<net::URLFetcher> url_fetcher_; 52 scoped_ptr<net::URLFetcher> url_fetcher_;
53 scoped_refptr<net::URLRequestContextGetter> url_context_; 53 scoped_refptr<net::URLRequestContextGetter> url_context_;
54 scoped_ptr<AudioEncoder> encoder_; 54 scoped_ptr<AudioEncoder> encoder_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(GoogleOneShotRemoteEngine); 56 DISALLOW_COPY_AND_ASSIGN(GoogleOneShotRemoteEngine);
57 }; 57 };
58 58
59 } // namespace content 59 } // namespace content
60 60
61 #endif // CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_ 61 #endif // CONTENT_BROWSER_SPEECH_GOOGLE_ONE_SHOT_REMOTE_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698