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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 10273006: Introduced SpeechRecognitionDispatcher(Host) classes, handling dispatch of IPC messages for continu… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed gyp rules for avoiding excluding TTS extensions Created 8 years, 7 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "content/browser/renderer_host/pepper_file_message_filter.h" 71 #include "content/browser/renderer_host/pepper_file_message_filter.h"
72 #include "content/browser/renderer_host/pepper_message_filter.h" 72 #include "content/browser/renderer_host/pepper_message_filter.h"
73 #include "content/browser/renderer_host/quota_dispatcher_host.h" 73 #include "content/browser/renderer_host/quota_dispatcher_host.h"
74 #include "content/browser/renderer_host/render_message_filter.h" 74 #include "content/browser/renderer_host/render_message_filter.h"
75 #include "content/browser/renderer_host/render_view_host_impl.h" 75 #include "content/browser/renderer_host/render_view_host_impl.h"
76 #include "content/browser/renderer_host/render_widget_helper.h" 76 #include "content/browser/renderer_host/render_widget_helper.h"
77 #include "content/browser/renderer_host/resource_message_filter.h" 77 #include "content/browser/renderer_host/resource_message_filter.h"
78 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" 78 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h"
79 #include "content/browser/renderer_host/text_input_client_message_filter.h" 79 #include "content/browser/renderer_host/text_input_client_message_filter.h"
80 #include "content/browser/resolve_proxy_msg_helper.h" 80 #include "content/browser/resolve_proxy_msg_helper.h"
81 #include "content/browser/speech/input_tag_speech_dispatcher_host.h"
82 #include "content/browser/speech/speech_recognition_dispatcher_host.h"
81 #include "content/browser/trace_message_filter.h" 83 #include "content/browser/trace_message_filter.h"
82 #include "content/browser/worker_host/worker_message_filter.h" 84 #include "content/browser/worker_host/worker_message_filter.h"
83 #include "content/common/child_process_host_impl.h" 85 #include "content/common/child_process_host_impl.h"
84 #include "content/common/child_process_messages.h" 86 #include "content/common/child_process_messages.h"
85 #include "content/common/gpu/gpu_messages.h" 87 #include "content/common/gpu/gpu_messages.h"
86 #include "content/common/resource_messages.h" 88 #include "content/common/resource_messages.h"
87 #include "content/common/view_messages.h" 89 #include "content/common/view_messages.h"
88 #include "content/public/browser/browser_context.h" 90 #include "content/public/browser/browser_context.h"
89 #include "content/public/browser/content_browser_client.h" 91 #include "content/public/browser/content_browser_client.h"
90 #include "content/public/browser/notification_service.h" 92 #include "content/public/browser/notification_service.h"
(...skipping 17 matching lines...) Expand all
108 #include "ui/gl/gl_switches.h" 110 #include "ui/gl/gl_switches.h"
109 #include "webkit/fileapi/sandbox_mount_point_provider.h" 111 #include "webkit/fileapi/sandbox_mount_point_provider.h"
110 #include "webkit/glue/resource_type.h" 112 #include "webkit/glue/resource_type.h"
111 #include "webkit/plugins/plugin_switches.h" 113 #include "webkit/plugins/plugin_switches.h"
112 114
113 #if defined(OS_WIN) 115 #if defined(OS_WIN)
114 #include "base/synchronization/waitable_event.h" 116 #include "base/synchronization/waitable_event.h"
115 #include "content/common/font_cache_dispatcher_win.h" 117 #include "content/common/font_cache_dispatcher_win.h"
116 #endif 118 #endif
117 119
118 #if defined(ENABLE_INPUT_SPEECH)
119 #include "content/browser/speech/input_tag_speech_dispatcher_host.h"
120 #endif
121
122 #include "third_party/skia/include/core/SkBitmap.h" 120 #include "third_party/skia/include/core/SkBitmap.h"
123 121
124 using content::BrowserContext; 122 using content::BrowserContext;
125 using content::BrowserMessageFilter; 123 using content::BrowserMessageFilter;
126 using content::BrowserThread; 124 using content::BrowserThread;
127 using content::ChildProcessHost; 125 using content::ChildProcessHost;
128 using content::ChildProcessHostImpl; 126 using content::ChildProcessHostImpl;
129 using content::RenderWidgetHost; 127 using content::RenderWidgetHost;
130 using content::RenderWidgetHostImpl; 128 using content::RenderWidgetHostImpl;
131 using content::RenderViewHost; 129 using content::RenderViewHost;
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost( 495 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(
498 resource_context, GetID(), content::BrowserMainLoop::GetAudioManager())); 496 resource_context, GetID(), content::BrowserMainLoop::GetAudioManager()));
499 #endif 497 #endif
500 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); 498 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context));
501 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, 499 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER,
502 GetID(), browser_context)); 500 GetID(), browser_context));
503 #if defined(ENABLE_INPUT_SPEECH) 501 #if defined(ENABLE_INPUT_SPEECH)
504 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( 502 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost(
505 GetID(), browser_context->GetRequestContext(), 503 GetID(), browser_context->GetRequestContext(),
506 browser_context->GetSpeechRecognitionPreferences())); 504 browser_context->GetSpeechRecognitionPreferences()));
505 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost(
506 GetID(), browser_context->GetRequestContext(),
507 browser_context->GetSpeechRecognitionPreferences()));
507 #endif 508 #endif
508 channel_->AddFilter(new FileAPIMessageFilter( 509 channel_->AddFilter(new FileAPIMessageFilter(
509 GetID(), 510 GetID(),
510 browser_context->GetRequestContext(), 511 browser_context->GetRequestContext(),
511 BrowserContext::GetFileSystemContext(browser_context), 512 BrowserContext::GetFileSystemContext(browser_context),
512 ChromeBlobStorageContext::GetFor(browser_context))); 513 ChromeBlobStorageContext::GetFor(browser_context)));
513 channel_->AddFilter(new device_orientation::MessageFilter()); 514 channel_->AddFilter(new device_orientation::MessageFilter());
514 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); 515 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID()));
515 channel_->AddFilter(new MimeRegistryMessageFilter()); 516 channel_->AddFilter(new MimeRegistryMessageFilter());
516 channel_->AddFilter(new DatabaseMessageFilter( 517 channel_->AddFilter(new DatabaseMessageFilter(
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( 1373 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost(
1373 int32 surface_id, 1374 int32 surface_id,
1374 uint64 surface_handle, 1375 uint64 surface_handle,
1375 int32 route_id, 1376 int32 route_id,
1376 int32 gpu_process_host_id) { 1377 int32 gpu_process_host_id) {
1377 TRACE_EVENT0("renderer_host", 1378 TRACE_EVENT0("renderer_host",
1378 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1379 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1379 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, 1380 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id,
1380 gpu_process_host_id); 1381 gpu_process_host_id);
1381 } 1382 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698