| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 #endif | 1006 #endif |
| 1007 #if defined(ENABLE_PLUGINS) | 1007 #if defined(ENABLE_PLUGINS) |
| 1008 AddFilter(new PepperRendererConnection(GetID())); | 1008 AddFilter(new PepperRendererConnection(GetID())); |
| 1009 #endif | 1009 #endif |
| 1010 AddFilter(new SpeechRecognitionDispatcherHost( | 1010 AddFilter(new SpeechRecognitionDispatcherHost( |
| 1011 GetID(), storage_partition_impl_->GetURLRequestContext())); | 1011 GetID(), storage_partition_impl_->GetURLRequestContext())); |
| 1012 AddFilter(new FileAPIMessageFilter( | 1012 AddFilter(new FileAPIMessageFilter( |
| 1013 GetID(), storage_partition_impl_->GetURLRequestContext(), | 1013 GetID(), storage_partition_impl_->GetURLRequestContext(), |
| 1014 storage_partition_impl_->GetFileSystemContext(), | 1014 storage_partition_impl_->GetFileSystemContext(), |
| 1015 blob_storage_context.get(), StreamContext::GetFor(browser_context))); | 1015 blob_storage_context.get(), StreamContext::GetFor(browser_context))); |
| 1016 AddFilter(new BlobDispatcherHost(blob_storage_context.get())); | 1016 AddFilter(new BlobDispatcherHost( |
| 1017 GetID(), blob_storage_context, |
| 1018 make_scoped_refptr(storage_partition_impl_->GetFileSystemContext()))); |
| 1017 AddFilter(new FileUtilitiesMessageFilter(GetID())); | 1019 AddFilter(new FileUtilitiesMessageFilter(GetID())); |
| 1018 AddFilter( | 1020 AddFilter( |
| 1019 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); | 1021 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); |
| 1020 #if defined(OS_MACOSX) | 1022 #if defined(OS_MACOSX) |
| 1021 AddFilter(new TextInputClientMessageFilter()); | 1023 AddFilter(new TextInputClientMessageFilter()); |
| 1022 #elif defined(OS_WIN) | 1024 #elif defined(OS_WIN) |
| 1023 AddFilter(new DWriteFontProxyMessageFilter()); | 1025 AddFilter(new DWriteFontProxyMessageFilter()); |
| 1024 | 1026 |
| 1025 // The FontCacheDispatcher is required only when we're using GDI rendering. | 1027 // The FontCacheDispatcher is required only when we're using GDI rendering. |
| 1026 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache | 1028 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache |
| (...skipping 1803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2830 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2832 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 2831 | 2833 |
| 2832 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2834 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
| 2833 // enough information here so that we can determine what the bad message was. | 2835 // enough information here so that we can determine what the bad message was. |
| 2834 base::debug::Alias(&error); | 2836 base::debug::Alias(&error); |
| 2835 bad_message::ReceivedBadMessage(process.get(), | 2837 bad_message::ReceivedBadMessage(process.get(), |
| 2836 bad_message::RPH_MOJO_PROCESS_ERROR); | 2838 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 2837 } | 2839 } |
| 2838 | 2840 |
| 2839 } // namespace content | 2841 } // namespace content |
| OLD | NEW |