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

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

Issue 10825161: Reenable render_process_host filters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 media_observer)); 515 media_observer));
516 channel_->AddFilter(render_message_filter); 516 channel_->AddFilter(render_message_filter);
517 BrowserContext* browser_context = GetBrowserContext(); 517 BrowserContext* browser_context = GetBrowserContext();
518 ResourceContext* resource_context = browser_context->GetResourceContext(); 518 ResourceContext* resource_context = browser_context->GetResourceContext();
519 519
520 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( 520 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
521 GetID(), PROCESS_TYPE_RENDERER, resource_context, 521 GetID(), PROCESS_TYPE_RENDERER, resource_context,
522 new RendererURLRequestContextSelector(browser_context, GetID())); 522 new RendererURLRequestContextSelector(browser_context, GetID()));
523 523
524 channel_->AddFilter(resource_message_filter); 524 channel_->AddFilter(resource_message_filter);
525 #if !defined(OS_ANDROID)
526 // TODO(dtrainor, klobag): Enable this when BrowserMainLoop gets
527 // included in Android builds. Tracked via 115941.
528 media::AudioManager* audio_manager = BrowserMainLoop::GetAudioManager(); 525 media::AudioManager* audio_manager = BrowserMainLoop::GetAudioManager();
529 media_stream::MediaStreamManager* media_stream_manager = 526 media_stream::MediaStreamManager* media_stream_manager =
530 BrowserMainLoop::GetMediaStreamManager(); 527 BrowserMainLoop::GetMediaStreamManager();
531 channel_->AddFilter(new AudioInputRendererHost(audio_manager, 528 channel_->AddFilter(new AudioInputRendererHost(audio_manager,
532 media_stream_manager)); 529 media_stream_manager));
533 channel_->AddFilter(new AudioRendererHost(audio_manager, media_observer)); 530 channel_->AddFilter(new AudioRendererHost(audio_manager, media_observer));
534 channel_->AddFilter(new VideoCaptureHost()); 531 channel_->AddFilter(new VideoCaptureHost());
535 #endif
536 channel_->AddFilter(new AppCacheDispatcherHost( 532 channel_->AddFilter(new AppCacheDispatcherHost(
537 static_cast<ChromeAppCacheService*>( 533 static_cast<ChromeAppCacheService*>(
538 BrowserContext::GetAppCacheService(browser_context)), 534 BrowserContext::GetAppCacheService(browser_context)),
539 GetID())); 535 GetID()));
540 channel_->AddFilter(new ClipboardMessageFilter()); 536 channel_->AddFilter(new ClipboardMessageFilter());
541 channel_->AddFilter(new DOMStorageMessageFilter(GetID(), 537 channel_->AddFilter(new DOMStorageMessageFilter(GetID(),
542 static_cast<DOMStorageContextImpl*>( 538 static_cast<DOMStorageContextImpl*>(
543 BrowserContext::GetDOMStorageContext(browser_context, GetID())))); 539 BrowserContext::GetDOMStorageContext(browser_context, GetID()))));
544 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), 540 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(),
545 static_cast<IndexedDBContextImpl*>( 541 static_cast<IndexedDBContextImpl*>(
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
1511 int32 route_id, 1507 int32 route_id,
1512 int32 gpu_process_host_id) { 1508 int32 gpu_process_host_id) {
1513 TRACE_EVENT0("renderer_host", 1509 TRACE_EVENT0("renderer_host",
1514 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1510 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1515 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1511 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1516 gpu_process_host_id, 1512 gpu_process_host_id,
1517 0); 1513 0);
1518 } 1514 }
1519 1515
1520 } // namespace content 1516 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698