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

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

Issue 15817013: Add Stream support to WebBlobRegistry and FileAPIMessageFilter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resolve Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 #include "content/browser/renderer_host/render_view_host_delegate.h" 87 #include "content/browser/renderer_host/render_view_host_delegate.h"
88 #include "content/browser/renderer_host/render_view_host_impl.h" 88 #include "content/browser/renderer_host/render_view_host_impl.h"
89 #include "content/browser/renderer_host/render_widget_helper.h" 89 #include "content/browser/renderer_host/render_widget_helper.h"
90 #include "content/browser/renderer_host/render_widget_host_impl.h" 90 #include "content/browser/renderer_host/render_widget_host_impl.h"
91 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" 91 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h"
92 #include "content/browser/renderer_host/text_input_client_message_filter.h" 92 #include "content/browser/renderer_host/text_input_client_message_filter.h"
93 #include "content/browser/resolve_proxy_msg_helper.h" 93 #include "content/browser/resolve_proxy_msg_helper.h"
94 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" 94 #include "content/browser/speech/input_tag_speech_dispatcher_host.h"
95 #include "content/browser/speech/speech_recognition_dispatcher_host.h" 95 #include "content/browser/speech/speech_recognition_dispatcher_host.h"
96 #include "content/browser/storage_partition_impl.h" 96 #include "content/browser/storage_partition_impl.h"
97 #include "content/browser/streams/stream_context.h"
97 #include "content/browser/tracing/trace_message_filter.h" 98 #include "content/browser/tracing/trace_message_filter.h"
98 #include "content/browser/webui/web_ui_controller_factory_registry.h" 99 #include "content/browser/webui/web_ui_controller_factory_registry.h"
99 #include "content/browser/worker_host/worker_message_filter.h" 100 #include "content/browser/worker_host/worker_message_filter.h"
100 #include "content/browser/worker_host/worker_storage_partition.h" 101 #include "content/browser/worker_host/worker_storage_partition.h"
101 #include "content/common/child_process_host_impl.h" 102 #include "content/common/child_process_host_impl.h"
102 #include "content/common/child_process_messages.h" 103 #include "content/common/child_process_messages.h"
103 #include "content/common/gpu/gpu_messages.h" 104 #include "content/common/gpu/gpu_messages.h"
104 #include "content/common/resource_messages.h" 105 #include "content/common/resource_messages.h"
105 #include "content/common/view_messages.h" 106 #include "content/common/view_messages.h"
106 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" 107 #include "content/port/browser/render_widget_host_view_frame_subscriber.h"
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 #if defined(ENABLE_INPUT_SPEECH) 664 #if defined(ENABLE_INPUT_SPEECH)
664 channel_->AddFilter(new InputTagSpeechDispatcherHost( 665 channel_->AddFilter(new InputTagSpeechDispatcherHost(
665 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); 666 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext()));
666 #endif 667 #endif
667 channel_->AddFilter(new SpeechRecognitionDispatcherHost( 668 channel_->AddFilter(new SpeechRecognitionDispatcherHost(
668 GetID(), storage_partition_impl_->GetURLRequestContext())); 669 GetID(), storage_partition_impl_->GetURLRequestContext()));
669 channel_->AddFilter(new FileAPIMessageFilter( 670 channel_->AddFilter(new FileAPIMessageFilter(
670 GetID(), 671 GetID(),
671 storage_partition_impl_->GetURLRequestContext(), 672 storage_partition_impl_->GetURLRequestContext(),
672 storage_partition_impl_->GetFileSystemContext(), 673 storage_partition_impl_->GetFileSystemContext(),
673 ChromeBlobStorageContext::GetFor(browser_context))); 674 ChromeBlobStorageContext::GetFor(browser_context),
675 StreamContext::GetFor(browser_context)));
674 channel_->AddFilter(new OrientationMessageFilter()); 676 channel_->AddFilter(new OrientationMessageFilter());
675 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID())); 677 channel_->AddFilter(new FileUtilitiesMessageFilter(GetID()));
676 channel_->AddFilter(new MimeRegistryMessageFilter()); 678 channel_->AddFilter(new MimeRegistryMessageFilter());
677 channel_->AddFilter(new DatabaseMessageFilter( 679 channel_->AddFilter(new DatabaseMessageFilter(
678 storage_partition_impl_->GetDatabaseTracker())); 680 storage_partition_impl_->GetDatabaseTracker()));
679 #if defined(OS_MACOSX) 681 #if defined(OS_MACOSX)
680 channel_->AddFilter(new TextInputClientMessageFilter(GetID())); 682 channel_->AddFilter(new TextInputClientMessageFilter(GetID()));
681 #elif defined(OS_WIN) 683 #elif defined(OS_WIN)
682 channel_->AddFilter(new FontCacheDispatcher()); 684 channel_->AddFilter(new FontCacheDispatcher());
683 #endif 685 #endif
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1801 // Skip widgets in other processes. 1803 // Skip widgets in other processes.
1802 if (widgets[i]->GetProcess()->GetID() != GetID()) 1804 if (widgets[i]->GetProcess()->GetID() != GetID())
1803 continue; 1805 continue;
1804 1806
1805 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); 1807 RenderViewHost* rvh = RenderViewHost::From(widgets[i]);
1806 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1808 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1807 } 1809 }
1808 } 1810 }
1809 1811
1810 } // namespace content 1812 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698