OLD | NEW |
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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/public/common/media_stream_request.h" | 11 #include "content/public/common/media_stream_request.h" |
12 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 // The context information required by clients of the SpeechRecognitionManager | 16 // The context information required by clients of the SpeechRecognitionManager |
17 // and its delegates for mapping the recognition session to other browser | 17 // and its delegates for mapping the recognition session to other browser |
18 // elements involved with it (e.g., the page element that requested the | 18 // elements involved with it (e.g., the page element that requested the |
19 // recognition). The manager keeps this struct attached to the recognition | 19 // recognition). The manager keeps this struct attached to the recognition |
20 // session during all the session lifetime, making its contents available to | 20 // session during all the session lifetime, making its contents available to |
21 // clients (In this regard, see SpeechRecognitionManager::GetSessionContext and | 21 // clients (In this regard, see SpeechRecognitionManager::GetSessionContext and |
22 // SpeechRecognitionManager::LookupSessionByContext methods). | 22 // SpeechRecognitionManager::LookupSessionByContext methods). |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // The label for the permission request, it is used for request abortion. | 54 // The label for the permission request, it is used for request abortion. |
55 std::string label; | 55 std::string label; |
56 | 56 |
57 // A list of devices being used by the recognition session. | 57 // A list of devices being used by the recognition session. |
58 MediaStreamDevices devices; | 58 MediaStreamDevices devices; |
59 }; | 59 }; |
60 | 60 |
61 } // namespace content | 61 } // namespace content |
62 | 62 |
63 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ | 63 #endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_ |
OLD | NEW |