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

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

Issue 11414180: Add a gyp flag to allow removing dependency on ppapi. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ifdef PluginMain and WorkerMain 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 new IndexedDBDispatcherHost( 530 new IndexedDBDispatcherHost(
531 GetID(), 531 GetID(),
532 storage_partition_impl_->GetIndexedDBContext())); 532 storage_partition_impl_->GetIndexedDBContext()));
533 channel_->AddFilter(GeolocationDispatcherHost::New( 533 channel_->AddFilter(GeolocationDispatcherHost::New(
534 GetID(), browser_context->GetGeolocationPermissionContext())); 534 GetID(), browser_context->GetGeolocationPermissionContext()));
535 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); 535 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get());
536 channel_->AddFilter(gpu_message_filter_); 536 channel_->AddFilter(gpu_message_filter_);
537 #if defined(ENABLE_WEBRTC) 537 #if defined(ENABLE_WEBRTC)
538 channel_->AddFilter(new MediaStreamDispatcherHost(GetID())); 538 channel_->AddFilter(new MediaStreamDispatcherHost(GetID()));
539 #endif 539 #endif
540 #if defined(ENABLE_PLUGINS)
540 channel_->AddFilter( 541 channel_->AddFilter(
541 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? 542 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ?
542 new PepperUnsafeFileMessageFilter( 543 new PepperUnsafeFileMessageFilter(
543 GetID(), 544 GetID(),
544 storage_partition_impl_->GetPath()) : 545 storage_partition_impl_->GetPath()) :
545 new PepperFileMessageFilter(GetID())); 546 new PepperFileMessageFilter(GetID()));
546 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER, 547 channel_->AddFilter(new PepperMessageFilter(PepperMessageFilter::RENDERER,
547 GetID(), browser_context)); 548 GetID(), browser_context));
549 #endif
548 #if defined(ENABLE_INPUT_SPEECH) 550 #if defined(ENABLE_INPUT_SPEECH)
549 channel_->AddFilter(new InputTagSpeechDispatcherHost( 551 channel_->AddFilter(new InputTagSpeechDispatcherHost(
550 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(), 552 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext(),
551 browser_context->GetSpeechRecognitionPreferences())); 553 browser_context->GetSpeechRecognitionPreferences()));
552 channel_->AddFilter(new SpeechRecognitionDispatcherHost( 554 channel_->AddFilter(new SpeechRecognitionDispatcherHost(
553 GetID(), storage_partition_impl_->GetURLRequestContext(), 555 GetID(), storage_partition_impl_->GetURLRequestContext(),
554 browser_context->GetSpeechRecognitionPreferences())); 556 browser_context->GetSpeechRecognitionPreferences()));
555 #endif 557 #endif
556 channel_->AddFilter(new FileAPIMessageFilter( 558 channel_->AddFilter(new FileAPIMessageFilter(
557 GetID(), 559 GetID(),
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1579 int32 gpu_process_host_id) { 1581 int32 gpu_process_host_id) {
1580 TRACE_EVENT0("renderer_host", 1582 TRACE_EVENT0("renderer_host",
1581 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1583 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1582 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1584 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1583 gpu_process_host_id, 1585 gpu_process_host_id,
1584 false, 1586 false,
1585 0); 1587 0);
1586 } 1588 }
1587 1589
1588 } // namespace content 1590 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698