OLD | NEW |
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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 #endif | 569 #endif |
570 channel_->AddFilter( | 570 channel_->AddFilter( |
571 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? | 571 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? |
572 new PepperUnsafeFileMessageFilter( | 572 new PepperUnsafeFileMessageFilter( |
573 GetID(), | 573 GetID(), |
574 storage_partition_impl_->GetPath()) : | 574 storage_partition_impl_->GetPath()) : |
575 new PepperFileMessageFilter(GetID())); | 575 new PepperFileMessageFilter(GetID())); |
576 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, | 576 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, |
577 GetID(), browser_context)); | 577 GetID(), browser_context)); |
578 #if defined(ENABLE_INPUT_SPEECH) | 578 #if defined(ENABLE_INPUT_SPEECH) |
579 channel_->AddFilter(new speech::InputTagSpeechDispatcherHost( | 579 channel_->AddFilter(new InputTagSpeechDispatcherHost( |
580 GetID(), storage_partition_impl_->GetURLRequestContext(), | 580 GetID(), storage_partition_impl_->GetURLRequestContext(), |
581 browser_context->GetSpeechRecognitionPreferences())); | 581 browser_context->GetSpeechRecognitionPreferences())); |
582 channel_->AddFilter(new speech::SpeechRecognitionDispatcherHost( | 582 channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
583 GetID(), storage_partition_impl_->GetURLRequestContext(), | 583 GetID(), storage_partition_impl_->GetURLRequestContext(), |
584 browser_context->GetSpeechRecognitionPreferences())); | 584 browser_context->GetSpeechRecognitionPreferences())); |
585 #endif | 585 #endif |
586 channel_->AddFilter(new FileAPIMessageFilter( | 586 channel_->AddFilter(new FileAPIMessageFilter( |
587 GetID(), | 587 GetID(), |
588 storage_partition_impl_->GetURLRequestContext(), | 588 storage_partition_impl_->GetURLRequestContext(), |
589 storage_partition_impl_->GetFileSystemContext(), | 589 storage_partition_impl_->GetFileSystemContext(), |
590 ChromeBlobStorageContext::GetFor(browser_context))); | 590 ChromeBlobStorageContext::GetFor(browser_context))); |
591 channel_->AddFilter(new OrientationMessageFilter()); | 591 channel_->AddFilter(new OrientationMessageFilter()); |
592 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); | 592 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); |
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1593 int32 gpu_process_host_id) { | 1593 int32 gpu_process_host_id) { |
1594 TRACE_EVENT0("renderer_host", | 1594 TRACE_EVENT0("renderer_host", |
1595 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1595 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1596 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1596 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1597 gpu_process_host_id, | 1597 gpu_process_host_id, |
1598 false, | 1598 false, |
1599 0); | 1599 0); |
1600 } | 1600 } |
1601 | 1601 |
1602 } // namespace content | 1602 } // namespace content |
OLD | NEW |