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

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

Issue 7480032: Plumb media data from renderers up to MediaInternals in the browser process. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Much cleanup and making MediaLog thread safe. Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser_render_process_host.h" 8 #include "content/browser/renderer_host/browser_render_process_host.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 30 matching lines...) Expand all
41 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" 41 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h"
42 #include "content/browser/mime_registry_message_filter.h" 42 #include "content/browser/mime_registry_message_filter.h"
43 #include "content/browser/plugin_service.h" 43 #include "content/browser/plugin_service.h"
44 #include "content/browser/renderer_host/blob_message_filter.h" 44 #include "content/browser/renderer_host/blob_message_filter.h"
45 #include "content/browser/renderer_host/clipboard_message_filter.h" 45 #include "content/browser/renderer_host/clipboard_message_filter.h"
46 #include "content/browser/renderer_host/database_message_filter.h" 46 #include "content/browser/renderer_host/database_message_filter.h"
47 #include "content/browser/renderer_host/file_utilities_message_filter.h" 47 #include "content/browser/renderer_host/file_utilities_message_filter.h"
48 #include "content/browser/renderer_host/gpu_message_filter.h" 48 #include "content/browser/renderer_host/gpu_message_filter.h"
49 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 49 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
50 #include "content/browser/renderer_host/media/audio_renderer_host.h" 50 #include "content/browser/renderer_host/media/audio_renderer_host.h"
51 #include "content/browser/renderer_host/media/media_log_host.h"
51 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" 52 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h"
52 #include "content/browser/renderer_host/media/video_capture_host.h" 53 #include "content/browser/renderer_host/media/video_capture_host.h"
53 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" 54 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h"
54 #include "content/browser/renderer_host/pepper_file_message_filter.h" 55 #include "content/browser/renderer_host/pepper_file_message_filter.h"
55 #include "content/browser/renderer_host/pepper_message_filter.h" 56 #include "content/browser/renderer_host/pepper_message_filter.h"
56 #include "content/browser/renderer_host/quota_dispatcher_host.h" 57 #include "content/browser/renderer_host/quota_dispatcher_host.h"
57 #include "content/browser/renderer_host/render_message_filter.h" 58 #include "content/browser/renderer_host/render_message_filter.h"
58 #include "content/browser/renderer_host/render_view_host.h" 59 #include "content/browser/renderer_host/render_view_host.h"
59 #include "content/browser/renderer_host/render_view_host_delegate.h" 60 #include "content/browser/renderer_host/render_view_host_delegate.h"
60 #include "content/browser/renderer_host/render_widget_helper.h" 61 #include "content/browser/renderer_host/render_widget_helper.h"
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 351
351 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( 352 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
352 id(), ChildProcessInfo::RENDER_PROCESS, 353 id(), ChildProcessInfo::RENDER_PROCESS,
353 &profile()->GetResourceContext(), 354 &profile()->GetResourceContext(),
354 new RendererURLRequestContextSelector(profile(), id()), 355 new RendererURLRequestContextSelector(profile(), id()),
355 content::GetContentClient()->browser()->GetResourceDispatcherHost()); 356 content::GetContentClient()->browser()->GetResourceDispatcherHost());
356 357
357 channel_->AddFilter(resource_message_filter); 358 channel_->AddFilter(resource_message_filter);
358 channel_->AddFilter(new AudioInputRendererHost()); 359 channel_->AddFilter(new AudioInputRendererHost());
359 channel_->AddFilter(new AudioRendererHost(&profile()->GetResourceContext())); 360 channel_->AddFilter(new AudioRendererHost(&profile()->GetResourceContext()));
361 channel_->AddFilter(new MediaLogHost(&profile()->GetResourceContext()));
360 channel_->AddFilter(new VideoCaptureHost()); 362 channel_->AddFilter(new VideoCaptureHost());
361 channel_->AddFilter( 363 channel_->AddFilter(
362 new AppCacheDispatcherHost(&profile()->GetResourceContext(), id())); 364 new AppCacheDispatcherHost(&profile()->GetResourceContext(), id()));
363 channel_->AddFilter(new ClipboardMessageFilter()); 365 channel_->AddFilter(new ClipboardMessageFilter());
364 channel_->AddFilter( 366 channel_->AddFilter(
365 new DOMStorageMessageFilter(id(), profile()->GetWebKitContext())); 367 new DOMStorageMessageFilter(id(), profile()->GetWebKitContext()));
366 channel_->AddFilter( 368 channel_->AddFilter(
367 new IndexedDBDispatcherHost(id(), profile()->GetWebKitContext())); 369 new IndexedDBDispatcherHost(id(), profile()->GetWebKitContext()));
368 channel_->AddFilter( 370 channel_->AddFilter(
369 GeolocationDispatcherHost::New( 371 GeolocationDispatcherHost::New(
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { 919 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) {
918 // Only honor the request if appropriate persmissions are granted. 920 // Only honor the request if appropriate persmissions are granted.
919 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) 921 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path))
920 content::GetContentClient()->browser()->RevealFolderInOS(path); 922 content::GetContentClient()->browser()->RevealFolderInOS(path);
921 } 923 }
922 924
923 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { 925 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) {
924 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 926 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
925 MHTMLGenerated(job_id, success); 927 MHTMLGenerated(job_id, success);
926 } 928 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698