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

Side by Side Diff: content/public/browser/speech_recognition_manager.h

Issue 10273006: Introduced SpeechRecognitionDispatcher(Host) classes, handling dispatch of IPC messages for continu… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased (because of CL1.11 reverted and recommitted) Created 8 years, 7 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 | Annotate | Revision Log
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_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Retrieves the configuration of a session, as provided by the caller 56 // Retrieves the configuration of a session, as provided by the caller
57 // upon CreateSession. 57 // upon CreateSession.
58 virtual const SpeechRecognitionSessionConfig& GetSessionConfig(int session_id) 58 virtual const SpeechRecognitionSessionConfig& GetSessionConfig(int session_id)
59 const = 0; 59 const = 0;
60 60
61 // Retrieves the context associated to a session. 61 // Retrieves the context associated to a session.
62 virtual SpeechRecognitionSessionContext GetSessionContext( 62 virtual SpeechRecognitionSessionContext GetSessionContext(
63 int session_id) const = 0; 63 int session_id) const = 0;
64 64
65 // Looks-up an existing session using a caller-provided matcher function. 65 // Looks-up an existing session from the context tuple
66 virtual int LookupSessionByContext( 66 // {render_view_id, render_view_id, request_id}.
67 base::Callback<bool( 67 virtual int GetSession(int render_process_id,
68 const content::SpeechRecognitionSessionContext&)> matcher) 68 int render_view_id,
69 const = 0; 69 int request_id) const = 0;
70 70
71 // Returns true if the OS reports existence of audio recording devices. 71 // Returns true if the OS reports existence of audio recording devices.
72 virtual bool HasAudioInputDevices() = 0; 72 virtual bool HasAudioInputDevices() = 0;
73 73
74 // Used to determine if something else is currently making use of audio input. 74 // Used to determine if something else is currently making use of audio input.
75 virtual bool IsCapturingAudio() = 0; 75 virtual bool IsCapturingAudio() = 0;
76 76
77 // Returns a human readable string for the model/make of the active audio 77 // Returns a human readable string for the model/make of the active audio
78 // input device for this computer. 78 // input device for this computer.
79 virtual string16 GetAudioInputDeviceModel() = 0; 79 virtual string16 GetAudioInputDeviceModel() = 0;
80 80
81 // Invokes the platform provided microphone settings UI in a non-blocking way, 81 // Invokes the platform provided microphone settings UI in a non-blocking way,
82 // via the BrowserThread::FILE thread. 82 // via the BrowserThread::FILE thread.
83 virtual void ShowAudioInputSettings() = 0; 83 virtual void ShowAudioInputSettings() = 0;
84 84
85 protected: 85 protected:
86 virtual ~SpeechRecognitionManager() {} 86 virtual ~SpeechRecognitionManager() {}
87 }; 87 };
88 88
89 } // namespace content 89 } // namespace content
90 90
91 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_ 91 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_MANAGER_H_
OLDNEW
« no previous file with comments | « content/content_renderer.gypi ('k') | content/public/browser/speech_recognition_session_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698