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

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

Issue 11573066: Add a method to tab_utils.h to find out whether a tab is playing audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 storage_partition_impl_->GetAppCacheService(), 509 storage_partition_impl_->GetAppCacheService(),
510 ChromeBlobStorageContext::GetFor(browser_context), 510 ChromeBlobStorageContext::GetFor(browser_context),
511 new RendererURLRequestContextSelector(browser_context, GetID())); 511 new RendererURLRequestContextSelector(browser_context, GetID()));
512 512
513 channel_->AddFilter(resource_message_filter); 513 channel_->AddFilter(resource_message_filter);
514 media::AudioManager* audio_manager = BrowserMainLoop::GetAudioManager(); 514 media::AudioManager* audio_manager = BrowserMainLoop::GetAudioManager();
515 MediaStreamManager* media_stream_manager = 515 MediaStreamManager* media_stream_manager =
516 BrowserMainLoop::GetMediaStreamManager(); 516 BrowserMainLoop::GetMediaStreamManager();
517 channel_->AddFilter(new AudioInputRendererHost(audio_manager, 517 channel_->AddFilter(new AudioInputRendererHost(audio_manager,
518 media_stream_manager)); 518 media_stream_manager));
519 channel_->AddFilter(new AudioRendererHost(audio_manager, media_observer)); 519 channel_->AddFilter(new AudioRendererHost(GetID(), audio_manager,
520 media_observer));
520 channel_->AddFilter(new VideoCaptureHost()); 521 channel_->AddFilter(new VideoCaptureHost());
521 channel_->AddFilter(new AppCacheDispatcherHost( 522 channel_->AddFilter(new AppCacheDispatcherHost(
522 storage_partition_impl_->GetAppCacheService(), 523 storage_partition_impl_->GetAppCacheService(),
523 GetID())); 524 GetID()));
524 channel_->AddFilter(new ClipboardMessageFilter()); 525 channel_->AddFilter(new ClipboardMessageFilter());
525 channel_->AddFilter( 526 channel_->AddFilter(
526 new DOMStorageMessageFilter( 527 new DOMStorageMessageFilter(
527 GetID(), 528 GetID(),
528 storage_partition_impl_->GetDOMStorageContext())); 529 storage_partition_impl_->GetDOMStorageContext()));
529 channel_->AddFilter( 530 channel_->AddFilter(
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1595 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1595 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1596 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1596 ack_params.surface_handle = surface_handle; 1597 ack_params.surface_handle = surface_handle;
1597 ack_params.sync_point = 0; 1598 ack_params.sync_point = 0;
1598 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1599 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1599 gpu_process_host_id, 1600 gpu_process_host_id,
1600 ack_params); 1601 ack_params);
1601 } 1602 }
1602 1603
1603 } // namespace content 1604 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698