| 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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 #endif | 933 #endif |
| 934 #if defined(ENABLE_PLUGINS) | 934 #if defined(ENABLE_PLUGINS) |
| 935 AddFilter(new PepperRendererConnection(GetID())); | 935 AddFilter(new PepperRendererConnection(GetID())); |
| 936 #endif | 936 #endif |
| 937 AddFilter(new SpeechRecognitionDispatcherHost( | 937 AddFilter(new SpeechRecognitionDispatcherHost( |
| 938 GetID(), storage_partition_impl_->GetURLRequestContext())); | 938 GetID(), storage_partition_impl_->GetURLRequestContext())); |
| 939 AddFilter(new FileAPIMessageFilter( | 939 AddFilter(new FileAPIMessageFilter( |
| 940 GetID(), storage_partition_impl_->GetURLRequestContext(), | 940 GetID(), storage_partition_impl_->GetURLRequestContext(), |
| 941 storage_partition_impl_->GetFileSystemContext(), | 941 storage_partition_impl_->GetFileSystemContext(), |
| 942 blob_storage_context.get(), StreamContext::GetFor(browser_context))); | 942 blob_storage_context.get(), StreamContext::GetFor(browser_context))); |
| 943 AddFilter(new BlobDispatcherHost(blob_storage_context.get())); | 943 AddFilter(new BlobDispatcherHost( |
| 944 GetID(), blob_storage_context, |
| 945 make_scoped_refptr(storage_partition_impl_->GetFileSystemContext()))); |
| 944 AddFilter(new FileUtilitiesMessageFilter(GetID())); | 946 AddFilter(new FileUtilitiesMessageFilter(GetID())); |
| 945 AddFilter( | 947 AddFilter( |
| 946 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); | 948 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); |
| 947 #if defined(OS_MACOSX) | 949 #if defined(OS_MACOSX) |
| 948 AddFilter(new TextInputClientMessageFilter()); | 950 AddFilter(new TextInputClientMessageFilter()); |
| 949 #elif defined(OS_WIN) | 951 #elif defined(OS_WIN) |
| 950 AddFilter(new DWriteFontProxyMessageFilter()); | 952 AddFilter(new DWriteFontProxyMessageFilter()); |
| 951 | 953 |
| 952 // The FontCacheDispatcher is required only when we're using GDI rendering. | 954 // The FontCacheDispatcher is required only when we're using GDI rendering. |
| 953 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache | 955 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache |
| (...skipping 1878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2832 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2834 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 2833 | 2835 |
| 2834 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2836 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
| 2835 // enough information here so that we can determine what the bad message was. | 2837 // enough information here so that we can determine what the bad message was. |
| 2836 base::debug::Alias(&error); | 2838 base::debug::Alias(&error); |
| 2837 bad_message::ReceivedBadMessage(process.get(), | 2839 bad_message::ReceivedBadMessage(process.get(), |
| 2838 bad_message::RPH_MOJO_PROCESS_ERROR); | 2840 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 2839 } | 2841 } |
| 2840 | 2842 |
| 2841 } // namespace content | 2843 } // namespace content |
| OLD | NEW |