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

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 according to Hans review. 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/speech_recognition_dispatcher_host.h"
81 #include "content/browser/trace_message_filter.h" 82 #include "content/browser/trace_message_filter.h"
82 #include "content/browser/worker_host/worker_message_filter.h" 83 #include "content/browser/worker_host/worker_message_filter.h"
83 #include "content/common/child_process_host_impl.h" 84 #include "content/common/child_process_host_impl.h"
84 #include "content/common/child_process_messages.h" 85 #include "content/common/child_process_messages.h"
85 #include "content/common/gpu/gpu_messages.h" 86 #include "content/common/gpu/gpu_messages.h"
86 #include "content/common/resource_messages.h" 87 #include "content/common/resource_messages.h"
87 #include "content/common/view_messages.h" 88 #include "content/common/view_messages.h"
88 #include "content/public/browser/browser_context.h" 89 #include "content/public/browser/browser_context.h"
89 #include "content/public/browser/content_browser_client.h" 90 #include "content/public/browser/content_browser_client.h"
90 #include "content/public/browser/notification_service.h" 91 #include "content/public/browser/notification_service.h"
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 resource_context, GetID(), content::BrowserMainLoop::GetAudioManager())); 499 resource_context, GetID(), content::BrowserMainLoop::GetAudioManager()));
499 #endif 500 #endif
500 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context)); 501 channel_->AddFilter(new PepperFileMessageFilter(GetID(), browser_context));
501 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, 502 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER,
502 GetID(), browser_context)); 503 GetID(), browser_context));
503 #if defined(ENABLE_INPUT_SPEECH) 504 #if defined(ENABLE_INPUT_SPEECH)
504 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( 505 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost(
505 GetID(), browser_context->GetRequestContext(), 506 GetID(), browser_context->GetRequestContext(),
506 browser_context->GetSpeechRecognitionPreferences())); 507 browser_context->GetSpeechRecognitionPreferences()));
507 #endif 508 #endif
509 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost(
510 GetID(),
511 browser_context->GetRequestContext(),
512 browser_context->GetSpeechRecognitionPreferences()));
508 channel_->AddFilter(new FileAPIMessageFilter( 513 channel_->AddFilter(new FileAPIMessageFilter(
509 GetID(), 514 GetID(),
510 browser_context->GetRequestContext(), 515 browser_context->GetRequestContext(),
511 BrowserContext::GetFileSystemContext(browser_context), 516 BrowserContext::GetFileSystemContext(browser_context),
512 ChromeBlobStorageContext::GetFor(browser_context))); 517 ChromeBlobStorageContext::GetFor(browser_context)));
513 channel_->AddFilter(new device_orientation::MessageFilter()); 518 channel_->AddFilter(new device_orientation::MessageFilter());
514 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); 519 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID()));
515 channel_->AddFilter(new MimeRegistryMessageFilter()); 520 channel_->AddFilter(new MimeRegistryMessageFilter());
516 channel_->AddFilter(new DatabaseMessageFilter( 521 channel_->AddFilter(new DatabaseMessageFilter(
517 BrowserContext::GetDatabaseTracker(browser_context))); 522 BrowserContext::GetDatabaseTracker(browser_context)));
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost( 1383 void RenderProcessHostImpl::OnCompositorSurfaceBuffersSwappedNoHost(
1379 int32 surface_id, 1384 int32 surface_id,
1380 uint64 surface_handle, 1385 uint64 surface_handle,
1381 int32 route_id, 1386 int32 route_id,
1382 int32 gpu_process_host_id) { 1387 int32 gpu_process_host_id) {
1383 TRACE_EVENT0("renderer_host", 1388 TRACE_EVENT0("renderer_host",
1384 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1389 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1385 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id, 1390 RenderWidgetHostImpl::AcknowledgeSwapBuffers(route_id,
1386 gpu_process_host_id); 1391 gpu_process_host_id);
1387 } 1392 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698