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

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

Issue 7948004: Removing singelton property of MediaStreamManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( 355 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
356 id(), ChildProcessInfo::RENDER_PROCESS, 356 id(), ChildProcessInfo::RENDER_PROCESS,
357 &browser_context()->GetResourceContext(), 357 &browser_context()->GetResourceContext(),
358 new RendererURLRequestContextSelector(browser_context(), id()), 358 new RendererURLRequestContextSelector(browser_context(), id()),
359 content::GetContentClient()->browser()->GetResourceDispatcherHost()); 359 content::GetContentClient()->browser()->GetResourceDispatcherHost());
360 360
361 channel_->AddFilter(resource_message_filter); 361 channel_->AddFilter(resource_message_filter);
362 channel_->AddFilter(new AudioInputRendererHost()); 362 channel_->AddFilter(new AudioInputRendererHost());
363 channel_->AddFilter( 363 channel_->AddFilter(
364 new AudioRendererHost(&browser_context()->GetResourceContext())); 364 new AudioRendererHost(&browser_context()->GetResourceContext()));
365 channel_->AddFilter(new VideoCaptureHost()); 365 channel_->AddFilter(
366 new VideoCaptureHost(&browser_context()->GetResourceContext()));
366 channel_->AddFilter( 367 channel_->AddFilter(
367 new AppCacheDispatcherHost(browser_context()->GetAppCacheService(), 368 new AppCacheDispatcherHost(browser_context()->GetAppCacheService(),
368 id())); 369 id()));
369 channel_->AddFilter(new ClipboardMessageFilter()); 370 channel_->AddFilter(new ClipboardMessageFilter());
370 channel_->AddFilter( 371 channel_->AddFilter(
371 new DOMStorageMessageFilter(id(), browser_context()->GetWebKitContext())); 372 new DOMStorageMessageFilter(id(), browser_context()->GetWebKitContext()));
372 channel_->AddFilter( 373 channel_->AddFilter(
373 new IndexedDBDispatcherHost(id(), browser_context()->GetWebKitContext())); 374 new IndexedDBDispatcherHost(id(), browser_context()->GetWebKitContext()));
374 channel_->AddFilter( 375 channel_->AddFilter(
375 GeolocationDispatcherHost::New( 376 GeolocationDispatcherHost::New(
376 id(), browser_context()->GetGeolocationPermissionContext())); 377 id(), browser_context()->GetGeolocationPermissionContext()));
377 channel_->AddFilter(new GpuMessageFilter(id(), widget_helper_.get())); 378 channel_->AddFilter(new GpuMessageFilter(id(), widget_helper_.get()));
378 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(id())); 379 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(
380 &browser_context()->GetResourceContext(), id()));
379 channel_->AddFilter(new PepperFileMessageFilter(id(), browser_context())); 381 channel_->AddFilter(new PepperFileMessageFilter(id(), browser_context()));
380 channel_->AddFilter( 382 channel_->AddFilter(
381 new PepperMessageFilter(&browser_context()->GetResourceContext())); 383 new PepperMessageFilter(&browser_context()->GetResourceContext()));
382 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost(id())); 384 channel_->AddFilter(new speech_input::SpeechInputDispatcherHost(id()));
383 channel_->AddFilter( 385 channel_->AddFilter(
384 new FileSystemDispatcherHost(browser_context()->GetRequestContext(), 386 new FileSystemDispatcherHost(browser_context()->GetRequestContext(),
385 browser_context()->GetFileSystemContext())); 387 browser_context()->GetFileSystemContext()));
386 channel_->AddFilter(new device_orientation::MessageFilter()); 388 channel_->AddFilter(new device_orientation::MessageFilter());
387 channel_->AddFilter( 389 channel_->AddFilter(
388 new BlobMessageFilter(id(), browser_context()->GetBlobStorageContext())); 390 new BlobMessageFilter(id(), browser_context()->GetBlobStorageContext()));
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { 973 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) {
972 // Only honor the request if appropriate persmissions are granted. 974 // Only honor the request if appropriate persmissions are granted.
973 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) 975 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path))
974 content::GetContentClient()->browser()->OpenItem(path); 976 content::GetContentClient()->browser()->OpenItem(path);
975 } 977 }
976 978
977 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { 979 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) {
978 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 980 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
979 MHTMLGenerated(job_id, success); 981 MHTMLGenerated(job_id, success);
980 } 982 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | content/browser/renderer_host/media/media_stream_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698