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

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

Issue 10919307: Move IndexedDBContext into the StoragePartition and ensure isolation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove useless include Created 8 years, 3 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 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 channel_->AddFilter(new AudioRendererHost(audio_manager, media_observer)); 542 channel_->AddFilter(new AudioRendererHost(audio_manager, media_observer));
543 channel_->AddFilter(new VideoCaptureHost()); 543 channel_->AddFilter(new VideoCaptureHost());
544 channel_->AddFilter(new AppCacheDispatcherHost( 544 channel_->AddFilter(new AppCacheDispatcherHost(
545 storage_partition_impl_->GetAppCacheService(), 545 storage_partition_impl_->GetAppCacheService(),
546 GetID())); 546 GetID()));
547 channel_->AddFilter(new ClipboardMessageFilter()); 547 channel_->AddFilter(new ClipboardMessageFilter());
548 channel_->AddFilter( 548 channel_->AddFilter(
549 new DOMStorageMessageFilter( 549 new DOMStorageMessageFilter(
550 GetID(), 550 GetID(),
551 storage_partition_impl_->GetDOMStorageContext())); 551 storage_partition_impl_->GetDOMStorageContext()));
552 channel_->AddFilter(new IndexedDBDispatcherHost(GetID(), 552 channel_->AddFilter(
553 static_cast<IndexedDBContextImpl*>( 553 new IndexedDBDispatcherHost(
554 BrowserContext::GetIndexedDBContext(browser_context)))); 554 GetID(),
555 storage_partition_impl_->GetIndexedDBContext()));
555 channel_->AddFilter(GeolocationDispatcherHost::New( 556 channel_->AddFilter(GeolocationDispatcherHost::New(
556 GetID(), browser_context->GetGeolocationPermissionContext())); 557 GetID(), browser_context->GetGeolocationPermissionContext()));
557 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); 558 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get());
558 channel_->AddFilter(gpu_message_filter_); 559 channel_->AddFilter(gpu_message_filter_);
559 #if defined(ENABLE_WEBRTC) 560 #if defined(ENABLE_WEBRTC)
560 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(GetID())); 561 channel_->AddFilter(new media_stream::MediaStreamDispatcherHost(GetID()));
561 #endif 562 #endif
562 channel_->AddFilter( 563 channel_->AddFilter(
563 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ? 564 GetContentClient()->browser()->AllowPepperPrivateFileAPI() ?
564 new PepperUnsafeFileMessageFilter(GetID(), browser_context->GetPath()) : 565 new PepperUnsafeFileMessageFilter(GetID(), browser_context->GetPath()) :
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
1546 const gfx::Size& size, 1547 const gfx::Size& size,
1547 int32 gpu_process_host_id) { 1548 int32 gpu_process_host_id) {
1548 TRACE_EVENT0("renderer_host", 1549 TRACE_EVENT0("renderer_host",
1549 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1550 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1550 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1551 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1551 gpu_process_host_id, 1552 gpu_process_host_id,
1552 0); 1553 0);
1553 } 1554 }
1554 1555
1555 } // namespace content 1556 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_unittest.cc ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698