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

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

Issue 2214293002: [BlobStorage] Added back security policy for files in blobs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 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
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(GetID(), blob_storage_context.get()));
1017 AddFilter(new FileUtilitiesMessageFilter(GetID())); 1017 AddFilter(new FileUtilitiesMessageFilter(GetID()));
1018 AddFilter( 1018 AddFilter(
1019 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker())); 1019 new DatabaseMessageFilter(storage_partition_impl_->GetDatabaseTracker()));
1020 #if defined(OS_MACOSX) 1020 #if defined(OS_MACOSX)
1021 AddFilter(new TextInputClientMessageFilter()); 1021 AddFilter(new TextInputClientMessageFilter());
1022 #elif defined(OS_WIN) 1022 #elif defined(OS_WIN)
1023 AddFilter(new DWriteFontProxyMessageFilter()); 1023 AddFilter(new DWriteFontProxyMessageFilter());
1024 1024
1025 // The FontCacheDispatcher is required only when we're using GDI rendering. 1025 // 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 1026 // 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
2830 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2830 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2831 2831
2832 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2832 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2833 // enough information here so that we can determine what the bad message was. 2833 // enough information here so that we can determine what the bad message was.
2834 base::debug::Alias(&error); 2834 base::debug::Alias(&error);
2835 bad_message::ReceivedBadMessage(process.get(), 2835 bad_message::ReceivedBadMessage(process.get(),
2836 bad_message::RPH_MOJO_PROCESS_ERROR); 2836 bad_message::RPH_MOJO_PROCESS_ERROR);
2837 } 2837 }
2838 2838
2839 } // namespace content 2839 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698