OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ |
| 7 |
| 8 #include "content/common/content_export.h" |
| 9 #include "ui/gfx/rect.h" |
| 10 |
| 11 namespace content { |
| 12 |
| 13 // The context information required by clients of the SpeechRecognitionManager |
| 14 // (InputTagSpeechDispatcherHost) and its delegates for mapping the recognition |
| 15 // session to other browser elements involved with the it (e.g., the page |
| 16 // element that requested the recognition). The SpeechRecognitionManager is |
| 17 // not aware of the content of this struct and does NOT use it for its purposes. |
| 18 // However the manager keeps this struct "attached" to the recognition session |
| 19 // during all the session lifetime, making its contents available to clients |
| 20 // (In this regard, see SpeechRecognitionManager::GetSessionContext and |
| 21 // SpeechRecognitionManager::LookupSessionByContext methods). |
| 22 struct CONTENT_EXPORT SpeechRecognitionSessionContext { |
| 23 SpeechRecognitionSessionContext() |
| 24 : render_process_id(0), |
| 25 render_view_id(0), |
| 26 render_request_id(0) {} |
| 27 ~SpeechRecognitionSessionContext() {} |
| 28 |
| 29 int render_process_id; |
| 30 int render_view_id; |
| 31 int render_request_id; |
| 32 gfx::Rect element_rect; |
| 33 }; |
| 34 |
| 35 } // namespace content |
| 36 |
| 37 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ |
OLD | NEW |