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

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

Issue 2481093003: Introduce ResourceRequesterInfo to abstract the requester of resource request (Closed)
Patch Set: Created 4 years, 1 month 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 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 1047
1048 ResourceMessageFilter::GetContextsCallback get_contexts_callback( 1048 ResourceMessageFilter::GetContextsCallback get_contexts_callback(
1049 base::Bind(&GetContexts, browser_context->GetResourceContext(), 1049 base::Bind(&GetContexts, browser_context->GetResourceContext(),
1050 request_context, media_request_context)); 1050 request_context, media_request_context));
1051 1051
1052 // Several filters need the Blob storage context, so fetch it in advance. 1052 // Several filters need the Blob storage context, so fetch it in advance.
1053 scoped_refptr<ChromeBlobStorageContext> blob_storage_context = 1053 scoped_refptr<ChromeBlobStorageContext> blob_storage_context =
1054 ChromeBlobStorageContext::GetFor(browser_context); 1054 ChromeBlobStorageContext::GetFor(browser_context);
1055 1055
1056 resource_message_filter_ = new ResourceMessageFilter( 1056 resource_message_filter_ = new ResourceMessageFilter(
1057 GetID(), PROCESS_TYPE_RENDERER, 1057 GetID(), storage_partition_impl_->GetAppCacheService(),
1058 storage_partition_impl_->GetAppCacheService(), blob_storage_context.get(), 1058 blob_storage_context.get(),
1059 storage_partition_impl_->GetFileSystemContext(), 1059 storage_partition_impl_->GetFileSystemContext(),
1060 storage_partition_impl_->GetServiceWorkerContext(), 1060 storage_partition_impl_->GetServiceWorkerContext(),
1061 get_contexts_callback); 1061 get_contexts_callback);
1062 1062
1063 AddFilter(resource_message_filter_.get()); 1063 AddFilter(resource_message_filter_.get());
1064 1064
1065 media::AudioManager* audio_manager = 1065 media::AudioManager* audio_manager =
1066 BrowserMainLoop::GetInstance()->audio_manager(); 1066 BrowserMainLoop::GetInstance()->audio_manager();
1067 MediaStreamManager* media_stream_manager = 1067 MediaStreamManager* media_stream_manager =
1068 BrowserMainLoop::GetInstance()->media_stream_manager(); 1068 BrowserMainLoop::GetInstance()->media_stream_manager();
(...skipping 1923 matching lines...) Expand 10 before | Expand all | Expand 10 after
2992 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2992 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2993 2993
2994 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2994 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2995 // enough information here so that we can determine what the bad message was. 2995 // enough information here so that we can determine what the bad message was.
2996 base::debug::Alias(&error); 2996 base::debug::Alias(&error);
2997 bad_message::ReceivedBadMessage(render_process_id, 2997 bad_message::ReceivedBadMessage(render_process_id,
2998 bad_message::RPH_MOJO_PROCESS_ERROR); 2998 bad_message::RPH_MOJO_PROCESS_ERROR);
2999 } 2999 }
3000 3000
3001 } // namespace content 3001 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698