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

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

Issue 636863003: Make SpeechRecognition per RenderFrame instead of per RenderView. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 6 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
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 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 AddFilter(peer_connection_tracker_host_.get()); 772 AddFilter(peer_connection_tracker_host_.get());
773 AddFilter(new MediaStreamDispatcherHost( 773 AddFilter(new MediaStreamDispatcherHost(
774 GetID(), 774 GetID(),
775 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), 775 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(),
776 media_stream_manager)); 776 media_stream_manager));
777 AddFilter(new MediaStreamTrackMetricsHost()); 777 AddFilter(new MediaStreamTrackMetricsHost());
778 #endif 778 #endif
779 #if defined(ENABLE_PLUGINS) 779 #if defined(ENABLE_PLUGINS)
780 AddFilter(new PepperRendererConnection(GetID())); 780 AddFilter(new PepperRendererConnection(GetID()));
781 #endif 781 #endif
782 AddFilter(new SpeechRecognitionDispatcherHost( 782 AddFilter(new SpeechRecognitionDispatcherHost(GetID()));
783 GetID(), storage_partition_impl_->GetURLRequestContext()));
784 AddFilter(new FileAPIMessageFilter( 783 AddFilter(new FileAPIMessageFilter(
785 GetID(), 784 GetID(),
786 storage_partition_impl_->GetURLRequestContext(), 785 storage_partition_impl_->GetURLRequestContext(),
787 storage_partition_impl_->GetFileSystemContext(), 786 storage_partition_impl_->GetFileSystemContext(),
788 ChromeBlobStorageContext::GetFor(browser_context), 787 ChromeBlobStorageContext::GetFor(browser_context),
789 StreamContext::GetFor(browser_context))); 788 StreamContext::GetFor(browser_context)));
790 AddFilter(new FileUtilitiesMessageFilter(GetID())); 789 AddFilter(new FileUtilitiesMessageFilter(GetID()));
791 AddFilter(new MimeRegistryMessageFilter()); 790 AddFilter(new MimeRegistryMessageFilter());
792 AddFilter(new DatabaseMessageFilter( 791 AddFilter(new DatabaseMessageFilter(
793 storage_partition_impl_->GetDatabaseTracker())); 792 storage_partition_impl_->GetDatabaseTracker()));
(...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after
2313 2312
2314 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2313 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2315 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2314 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2316 DCHECK_GT(worker_ref_count_, 0); 2315 DCHECK_GT(worker_ref_count_, 0);
2317 --worker_ref_count_; 2316 --worker_ref_count_;
2318 if (worker_ref_count_ == 0) 2317 if (worker_ref_count_ == 0)
2319 Cleanup(); 2318 Cleanup();
2320 } 2319 }
2321 2320
2322 } // namespace content 2321 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698