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

Unified Diff: content/public/browser/speech_recognition_session_context.h

Issue 9972011: Speech refactoring: Reimplemented SpeechRecognitionManagerImpl as a FSM. (CL1.7) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Further Satish comments. 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/speech_recognition_session_context.h
diff --git a/content/public/browser/speech_recognition_session_context.h b/content/public/browser/speech_recognition_session_context.h
new file mode 100644
index 0000000000000000000000000000000000000000..4be5ba3fe870fd491fc56f7a9db6d1320758a5c6
--- /dev/null
+++ b/content/public/browser/speech_recognition_session_context.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_
+#define CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_
+
+#include "content/common/content_export.h"
+#include "ui/gfx/rect.h"
+
+namespace content {
+
+// The context information required by clients of the SpeechRecognitionManager
+// (InputTagSpeechDispatcherHost) and its delegates
+// (ChromeSpeechRecognitionManagerDelegate) for mapping the recognition session
jam 2012/04/24 15:56:32 nit: don't mention chrome classes in the public ap
Primiano Tucci (use gerrit) 2012/04/25 11:30:03 Done.
+// to other browser elements involved with the it (e.g., the page element that
+// requested the recognition, the UI bubbles). The SpeechRecognitionManager is
+// not aware of the content of this struct and does NOT use it for its purposes.
+// However the manager keeps this struct "attached" to the recognition session
+// during all the session lifetime, making its contents available to clients
+// (In this regard, see SpeechRecognitionManager::GetSessionContext and
+// SpeechRecognitionManager::LookupSessionByContext methods).
+struct CONTENT_EXPORT SpeechRecognitionSessionContext {
jam 2012/04/24 15:56:32 nit: are you sure you need a CONTENT_EXPORT for th
Primiano Tucci (use gerrit) 2012/04/25 11:30:03 It is used by tests (speech_recognition_browsertes
+ SpeechRecognitionSessionContext();
+ ~SpeechRecognitionSessionContext();
+
+ int render_process_id;
+ int render_view_id;
+ int render_request_id;
+ gfx::Rect element_rect;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_SPEECH_RECOGNITION_SESSION_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698