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

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

Issue 10233010: Introducing new data types and IPC messages for scripted JS speech recognition APIs (Speech CL2.0) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed according to Hans review. Created 8 years, 8 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_SESSION_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_
7 #pragma once
7 8
8 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
9 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
10 11
11 namespace content { 12 namespace content {
12 13
13 // The context information required by clients of the SpeechRecognitionManager 14 // The context information required by clients of the SpeechRecognitionManager
14 // (InputTagSpeechDispatcherHost) and its delegates for mapping the recognition 15 // and its delegates for mapping the recognition session to other browser
15 // session to other browser elements involved with the it (e.g., the page 16 // elements involved with it (e.g., the page element that requested the
16 // element that requested the recognition). The SpeechRecognitionManager is 17 // recognition). The SpeechRecognitionManager is not aware of the content of
17 // not aware of the content of this struct and does NOT use it for its purposes. 18 // this struct and does NOT use it for its purposes. However the manager keeps
18 // However the manager keeps this struct "attached" to the recognition session 19 // this struct "attached" to the recognition session during all the session
19 // during all the session lifetime, making its contents available to clients 20 // lifetime, making its contents available to clients (In this regard, see
20 // (In this regard, see SpeechRecognitionManager::GetSessionContext and 21 // SpeechRecognitionManager::GetSessionContext and
21 // SpeechRecognitionManager::LookupSessionByContext methods). 22 // SpeechRecognitionManager::LookupSessionByContext methods).
22 struct CONTENT_EXPORT SpeechRecognitionSessionContext { 23 struct CONTENT_EXPORT SpeechRecognitionSessionContext {
23 SpeechRecognitionSessionContext() 24 SpeechRecognitionSessionContext()
24 : render_process_id(0), 25 : render_process_id(0),
25 render_view_id(0), 26 render_view_id(0),
26 render_request_id(0) {} 27 render_request_id(0),
28 js_handle_id(0) {}
27 ~SpeechRecognitionSessionContext() {} 29 ~SpeechRecognitionSessionContext() {}
28 30
29 int render_process_id; 31 int render_process_id;
30 int render_view_id; 32 int render_view_id;
31 int render_request_id; 33 int render_request_id;
34 int js_handle_id;
Satish 2012/04/27 10:04:41 typically 'handle' and 'id' are used mutually excl
Primiano Tucci (use gerrit) 2012/04/27 15:58:44 It is the numeric id that is (will be) mapped to t
32 gfx::Rect element_rect; 35 gfx::Rect element_rect;
33 }; 36 };
34 37
35 } // namespace content 38 } // namespace content
36 39
37 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ 40 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698