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

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

Issue 18023022: Blob support for IDB [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use ScopedVector and stl_utils for BlobDataHandles. Created 7 years 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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 new MIDIHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); 634 new MIDIHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager()));
635 AddFilter(new MIDIDispatcherHost(GetID(), browser_context)); 635 AddFilter(new MIDIDispatcherHost(GetID(), browser_context));
636 AddFilter(new VideoCaptureHost(media_stream_manager)); 636 AddFilter(new VideoCaptureHost(media_stream_manager));
637 AddFilter(new AppCacheDispatcherHost( 637 AddFilter(new AppCacheDispatcherHost(
638 storage_partition_impl_->GetAppCacheService(), 638 storage_partition_impl_->GetAppCacheService(),
639 GetID())); 639 GetID()));
640 AddFilter(new ClipboardMessageFilter); 640 AddFilter(new ClipboardMessageFilter);
641 AddFilter(new DOMStorageMessageFilter( 641 AddFilter(new DOMStorageMessageFilter(
642 GetID(), 642 GetID(),
643 storage_partition_impl_->GetDOMStorageContext())); 643 storage_partition_impl_->GetDOMStorageContext()));
644 AddFilter(new FileAPIMessageFilter(
645 GetID(),
646 storage_partition_impl_->GetURLRequestContext(),
647 storage_partition_impl_->GetFileSystemContext(),
648 ChromeBlobStorageContext::GetFor(browser_context),
649 StreamContext::GetFor(browser_context)));
644 AddFilter(new IndexedDBDispatcherHost( 650 AddFilter(new IndexedDBDispatcherHost(
645 storage_partition_impl_->GetIndexedDBContext())); 651 GetID(),
652 storage_partition_impl_->GetURLRequestContext(),
653 storage_partition_impl_->GetIndexedDBContext(),
654 ChromeBlobStorageContext::GetFor(browser_context)));
646 655
647 scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter = 656 scoped_refptr<ServiceWorkerDispatcherHost> service_worker_filter =
648 new ServiceWorkerDispatcherHost(GetID()); 657 new ServiceWorkerDispatcherHost(GetID());
649 service_worker_filter->Init( 658 service_worker_filter->Init(
650 storage_partition_impl_->GetServiceWorkerContext()); 659 storage_partition_impl_->GetServiceWorkerContext());
651 AddFilter(service_worker_filter); 660 AddFilter(service_worker_filter);
652 661
653 if (IsGuest()) { 662 if (IsGuest()) {
654 if (!g_browser_plugin_geolocation_context.Get().get()) { 663 if (!g_browser_plugin_geolocation_context.Get().get()) {
655 g_browser_plugin_geolocation_context.Get() = 664 g_browser_plugin_geolocation_context.Get() =
(...skipping 19 matching lines...) Expand all
675 #endif 684 #endif
676 #if defined(ENABLE_PLUGINS) 685 #if defined(ENABLE_PLUGINS)
677 AddFilter(new PepperRendererConnection(GetID())); 686 AddFilter(new PepperRendererConnection(GetID()));
678 #endif 687 #endif
679 #if defined(ENABLE_INPUT_SPEECH) 688 #if defined(ENABLE_INPUT_SPEECH)
680 AddFilter(new InputTagSpeechDispatcherHost( 689 AddFilter(new InputTagSpeechDispatcherHost(
681 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); 690 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext()));
682 #endif 691 #endif
683 AddFilter(new SpeechRecognitionDispatcherHost( 692 AddFilter(new SpeechRecognitionDispatcherHost(
684 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); 693 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext()));
685 AddFilter(new FileAPIMessageFilter(
686 GetID(),
687 storage_partition_impl_->GetURLRequestContext(),
688 storage_partition_impl_->GetFileSystemContext(),
689 ChromeBlobStorageContext::GetFor(browser_context),
690 StreamContext::GetFor(browser_context)));
691 AddFilter(new FileUtilitiesMessageFilter(GetID())); 694 AddFilter(new FileUtilitiesMessageFilter(GetID()));
692 AddFilter(new MimeRegistryMessageFilter()); 695 AddFilter(new MimeRegistryMessageFilter());
693 AddFilter(new DatabaseMessageFilter( 696 AddFilter(new DatabaseMessageFilter(
694 storage_partition_impl_->GetDatabaseTracker())); 697 storage_partition_impl_->GetDatabaseTracker()));
695 #if defined(OS_MACOSX) 698 #if defined(OS_MACOSX)
696 AddFilter(new TextInputClientMessageFilter(GetID())); 699 AddFilter(new TextInputClientMessageFilter(GetID()));
697 #elif defined(OS_WIN) 700 #elif defined(OS_WIN)
698 channel_->AddFilter(new FontCacheDispatcher()); 701 channel_->AddFilter(new FontCacheDispatcher());
699 #elif defined(OS_ANDROID) 702 #elif defined(OS_ANDROID)
700 browser_demuxer_android_ = new BrowserDemuxerAndroid(); 703 browser_demuxer_android_ = new BrowserDemuxerAndroid();
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1895 // Skip widgets in other processes. 1898 // Skip widgets in other processes.
1896 if (widget->GetProcess()->GetID() != GetID()) 1899 if (widget->GetProcess()->GetID() != GetID())
1897 continue; 1900 continue;
1898 1901
1899 RenderViewHost* rvh = RenderViewHost::From(widget); 1902 RenderViewHost* rvh = RenderViewHost::From(widget);
1900 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1903 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1901 } 1904 }
1902 } 1905 }
1903 1906
1904 } // namespace content 1907 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698