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

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

Issue 2245273002: [BlobStorage] Added back security policy for files in blobs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
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
« no previous file with comments | « content/browser/blob_storage/blob_dispatcher_host_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/browser/blob_storage/blob_dispatcher_host_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698