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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 636863003: Make SpeechRecognition per RenderFrame instead of per RenderView. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes threading issues Created 6 years, 1 month 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/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 8e1c65719186c10b67c940f7db1b2df4e72556b3..4287429ff87b43dc0a4b52f49c9c3955bcfb4478 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -27,6 +27,7 @@
#include "content/browser/renderer_host/render_widget_host_delegate.h"
#include "content/common/accessibility_mode_enums.h"
#include "content/common/content_export.h"
+#include "content/public/browser/browser_thread.h"
#include "content/public/browser/color_chooser.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -63,6 +64,7 @@ class RenderViewHostImpl;
class RenderWidgetHostImpl;
class SavePackage;
class ScreenOrientationDispatcherHost;
+class SpeechRecognitionDispatcherHost;
class SiteInstance;
class TestWebContents;
class WebContentsAudioMuter;
@@ -1217,6 +1219,9 @@ class CONTENT_EXPORT WebContentsImpl
scoped_ptr<ManifestManagerHost> manifest_manager_host_;
+ scoped_ptr<SpeechRecognitionDispatcherHost, BrowserThread::DeleteOnIOThread>
+ speech_recognition_dispatcher_host_;
+
// The accessibility mode for all frames. This is queried when each frame
// is created, and broadcast to all frames when it changes.
AccessibilityMode accessibility_mode_;

Powered by Google App Engine
This is Rietveld 408576698