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

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

Issue 11437038: Revert 171408 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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 #include <algorithm> 10 #include <algorithm>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #include "content/browser/renderer_host/clipboard_message_filter.h" 63 #include "content/browser/renderer_host/clipboard_message_filter.h"
64 #include "content/browser/renderer_host/database_message_filter.h" 64 #include "content/browser/renderer_host/database_message_filter.h"
65 #include "content/browser/renderer_host/file_utilities_message_filter.h" 65 #include "content/browser/renderer_host/file_utilities_message_filter.h"
66 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" 66 #include "content/browser/renderer_host/gamepad_browser_message_filter.h"
67 #include "content/browser/renderer_host/gpu_message_filter.h" 67 #include "content/browser/renderer_host/gpu_message_filter.h"
68 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 68 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
69 #include "content/browser/renderer_host/media/audio_renderer_host.h" 69 #include "content/browser/renderer_host/media/audio_renderer_host.h"
70 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" 70 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h"
71 #include "content/browser/renderer_host/media/video_capture_host.h" 71 #include "content/browser/renderer_host/media/video_capture_host.h"
72 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" 72 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h"
73 #include "content/browser/renderer_host/pepper/pepper_file_message_filter.h"
73 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 74 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
74 #include "content/browser/renderer_host/quota_dispatcher_host.h" 75 #include "content/browser/renderer_host/quota_dispatcher_host.h"
75 #include "content/browser/renderer_host/render_message_filter.h" 76 #include "content/browser/renderer_host/render_message_filter.h"
76 #include "content/browser/renderer_host/render_view_host_delegate.h" 77 #include "content/browser/renderer_host/render_view_host_delegate.h"
77 #include "content/browser/renderer_host/render_view_host_impl.h" 78 #include "content/browser/renderer_host/render_view_host_impl.h"
78 #include "content/browser/renderer_host/render_widget_helper.h" 79 #include "content/browser/renderer_host/render_widget_helper.h"
79 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" 80 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h"
80 #include "content/browser/renderer_host/text_input_client_message_filter.h" 81 #include "content/browser/renderer_host/text_input_client_message_filter.h"
81 #include "content/browser/resolve_proxy_msg_helper.h" 82 #include "content/browser/resolve_proxy_msg_helper.h"
82 #include "content/browser/storage_partition_impl.h" 83 #include "content/browser/storage_partition_impl.h"
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 GetID(), 532 GetID(),
532 storage_partition_impl_->GetIndexedDBContext())); 533 storage_partition_impl_->GetIndexedDBContext()));
533 channel_->AddFilter(GeolocationDispatcherHost::New( 534 channel_->AddFilter(GeolocationDispatcherHost::New(
534 GetID(), browser_context->GetGeolocationPermissionContext())); 535 GetID(), browser_context->GetGeolocationPermissionContext()));
535 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); 536 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get());
536 channel_->AddFilter(gpu_message_filter_); 537 channel_->AddFilter(gpu_message_filter_);
537 #if defined(ENABLE_WEBRTC) 538 #if defined(ENABLE_WEBRTC)
538 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); 539 channel_->AddFilter(new MediaStreamDispatcherHost(GetID()));
539 #endif 540 #endif
540 #if defined(ENABLE_PLUGINS) 541 #if defined(ENABLE_PLUGINS)
542 channel_->AddFilter(
543 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ?
544 new PepperUnsafeFileMessageFilter(
545 GetID(),
546 storage_partition_impl_->GetPath()) :
547 new PepperFileMessageFilter(GetID()));
541 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, 548 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER,
542 GetID(), browser_context)); 549 GetID(), browser_context));
543 #endif 550 #endif
544 #if defined(ENABLE_INPUT_SPEECH) 551 #if defined(ENABLE_INPUT_SPEECH)
545 channel_->AddFilter(new InputTagSpeechDispatcherHost( 552 channel_->AddFilter(new InputTagSpeechDispatcherHost(
546 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), 553 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(),
547 browser_context->GetSpeechRecognitionPreferences())); 554 browser_context->GetSpeechRecognitionPreferences()));
548 channel_->AddFilter(new SpeechRecognitionDispatcherHost( 555 channel_->AddFilter(new SpeechRecognitionDispatcherHost(
549 GetID(), storage_partition_impl_->GetURLRequestContext(), 556 GetID(), storage_partition_impl_->GetURLRequestContext(),
550 browser_context->GetSpeechRecognitionPreferences())); 557 browser_context->GetSpeechRecognitionPreferences()));
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 int32 gpu_process_host_id) { 1593 int32 gpu_process_host_id) {
1587 TRACE_EVENT0("renderer_host", 1594 TRACE_EVENT0("renderer_host",
1588 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1595 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1589 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1596 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1590 gpu_process_host_id, 1597 gpu_process_host_id,
1591 false, 1598 false,
1592 0); 1599 0);
1593 } 1600 }
1594 1601
1595 } // namespace content 1602 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_flash_file_host.cc ('k') | content/common/all_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698