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

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

Issue 11443016: Revert 171080 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1349/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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #include "content/browser/renderer_host/clipboard_message_filter.h" 62 #include "content/browser/renderer_host/clipboard_message_filter.h"
63 #include "content/browser/renderer_host/database_message_filter.h" 63 #include "content/browser/renderer_host/database_message_filter.h"
64 #include "content/browser/renderer_host/file_utilities_message_filter.h" 64 #include "content/browser/renderer_host/file_utilities_message_filter.h"
65 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" 65 #include "content/browser/renderer_host/gamepad_browser_message_filter.h"
66 #include "content/browser/renderer_host/gpu_message_filter.h" 66 #include "content/browser/renderer_host/gpu_message_filter.h"
67 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 67 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
68 #include "content/browser/renderer_host/media/audio_renderer_host.h" 68 #include "content/browser/renderer_host/media/audio_renderer_host.h"
69 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" 69 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h"
70 #include "content/browser/renderer_host/media/video_capture_host.h" 70 #include "content/browser/renderer_host/media/video_capture_host.h"
71 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" 71 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h"
72 #include "content/browser/renderer_host/pepper/pepper_file_message_filter.h"
72 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 73 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
73 #include "content/browser/renderer_host/quota_dispatcher_host.h" 74 #include "content/browser/renderer_host/quota_dispatcher_host.h"
74 #include "content/browser/renderer_host/render_message_filter.h" 75 #include "content/browser/renderer_host/render_message_filter.h"
75 #include "content/browser/renderer_host/render_view_host_delegate.h" 76 #include "content/browser/renderer_host/render_view_host_delegate.h"
76 #include "content/browser/renderer_host/render_view_host_impl.h" 77 #include "content/browser/renderer_host/render_view_host_impl.h"
77 #include "content/browser/renderer_host/render_widget_helper.h" 78 #include "content/browser/renderer_host/render_widget_helper.h"
78 #include "content/browser/renderer_host/resource_message_filter.h" 79 #include "content/browser/renderer_host/resource_message_filter.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"
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 new IndexedDBDispatcherHost( 530 new IndexedDBDispatcherHost(
530 GetID(), 531 GetID(),
531 storage_partition_impl_->GetIndexedDBContext())); 532 storage_partition_impl_->GetIndexedDBContext()));
532 channel_->AddFilter(GeolocationDispatcherHost::New( 533 channel_->AddFilter(GeolocationDispatcherHost::New(
533 GetID(), browser_context->GetGeolocationPermissionContext())); 534 GetID(), browser_context->GetGeolocationPermissionContext()));
534 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); 535 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get());
535 channel_->AddFilter(gpu_message_filter_); 536 channel_->AddFilter(gpu_message_filter_);
536 #if defined(ENABLE_WEBRTC) 537 #if defined(ENABLE_WEBRTC)
537 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); 538 channel_->AddFilter(new MediaStreamDispatcherHost(GetID()));
538 #endif 539 #endif
540 channel_->AddFilter(
541 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ?
542 new PepperUnsafeFileMessageFilter(
543 GetID(),
544 storage_partition_impl_->GetPath()) :
545 new PepperFileMessageFilter(GetID()));
539 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, 546 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER,
540 GetID(), browser_context)); 547 GetID(), browser_context));
541 #if defined(ENABLE_INPUT_SPEECH) 548 #if defined(ENABLE_INPUT_SPEECH)
542 channel_->AddFilter(new InputTagSpeechDispatcherHost( 549 channel_->AddFilter(new InputTagSpeechDispatcherHost(
543 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), 550 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(),
544 browser_context->GetSpeechRecognitionPreferences())); 551 browser_context->GetSpeechRecognitionPreferences()));
545 channel_->AddFilter(new SpeechRecognitionDispatcherHost( 552 channel_->AddFilter(new SpeechRecognitionDispatcherHost(
546 GetID(), storage_partition_impl_->GetURLRequestContext(), 553 GetID(), storage_partition_impl_->GetURLRequestContext(),
547 browser_context->GetSpeechRecognitionPreferences())); 554 browser_context->GetSpeechRecognitionPreferences()));
548 #endif 555 #endif
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 int32 gpu_process_host_id) { 1589 int32 gpu_process_host_id) {
1583 TRACE_EVENT0("renderer_host", 1590 TRACE_EVENT0("renderer_host",
1584 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1591 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1585 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1592 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1586 gpu_process_host_id, 1593 gpu_process_host_id,
1587 false, 1594 false,
1588 0); 1595 0);
1589 } 1596 }
1590 1597
1591 } // namespace content 1598 } // 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