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

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

Issue 38043004: Cancel MIDI permission request infobar on MIDIAccess stop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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
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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 // stashed in a member variable. 592 // stashed in a member variable.
593 audio_renderer_host_ = new AudioRendererHost( 593 audio_renderer_host_ = new AudioRendererHost(
594 GetID(), 594 GetID(),
595 audio_manager, 595 audio_manager,
596 BrowserMainLoop::GetInstance()->audio_mirroring_manager(), 596 BrowserMainLoop::GetInstance()->audio_mirroring_manager(),
597 media_internals, 597 media_internals,
598 media_stream_manager); 598 media_stream_manager);
599 AddFilter(audio_renderer_host_); 599 AddFilter(audio_renderer_host_);
600 AddFilter( 600 AddFilter(
601 new MIDIHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); 601 new MIDIHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager()));
602 AddFilter(new MIDIDispatcherHost(GetID(), browser_context)); 602 AddFilter(new MIDIDispatcherHost(
603 GetID(), browser_context->GetMidiPermissionContext()));
603 AddFilter(new VideoCaptureHost(media_stream_manager)); 604 AddFilter(new VideoCaptureHost(media_stream_manager));
604 AddFilter(new AppCacheDispatcherHost( 605 AddFilter(new AppCacheDispatcherHost(
605 storage_partition_impl_->GetAppCacheService(), 606 storage_partition_impl_->GetAppCacheService(),
606 GetID())); 607 GetID()));
607 AddFilter(new ClipboardMessageFilter); 608 AddFilter(new ClipboardMessageFilter);
608 AddFilter(new DOMStorageMessageFilter( 609 AddFilter(new DOMStorageMessageFilter(
609 GetID(), 610 GetID(),
610 storage_partition_impl_->GetDOMStorageContext())); 611 storage_partition_impl_->GetDOMStorageContext()));
611 AddFilter(new IndexedDBDispatcherHost( 612 AddFilter(new IndexedDBDispatcherHost(
612 GetID(), 613 GetID(),
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1819 // Skip widgets in other processes. 1820 // Skip widgets in other processes.
1820 if (widget->GetProcess()->GetID() != GetID()) 1821 if (widget->GetProcess()->GetID() != GetID())
1821 continue; 1822 continue;
1822 1823
1823 RenderViewHost* rvh = RenderViewHost::From(widget); 1824 RenderViewHost* rvh = RenderViewHost::From(widget);
1824 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1825 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1825 } 1826 }
1826 } 1827 }
1827 1828
1828 } // namespace content 1829 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698