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

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

Issue 25008006: Flush out initial [un]registerServiceWorker roundtrip (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 7 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 | 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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 storage_partition_impl_->GetAppCacheService(), 606 storage_partition_impl_->GetAppCacheService(),
607 GetID())); 607 GetID()));
608 AddFilter(new ClipboardMessageFilter); 608 AddFilter(new ClipboardMessageFilter);
609 AddFilter(new DOMStorageMessageFilter( 609 AddFilter(new DOMStorageMessageFilter(
610 GetID(), 610 GetID(),
611 storage_partition_impl_->GetDOMStorageContext())); 611 storage_partition_impl_->GetDOMStorageContext()));
612 AddFilter(new IndexedDBDispatcherHost( 612 AddFilter(new IndexedDBDispatcherHost(
613 GetID(), 613 GetID(),
614 storage_partition_impl_->GetIndexedDBContext())); 614 storage_partition_impl_->GetIndexedDBContext()));
615 AddFilter(new ServiceWorkerDispatcherHost( 615 AddFilter(new ServiceWorkerDispatcherHost(
616 storage_partition_impl_->GetServiceWorkerContext())); 616 GetID(), storage_partition_impl_->GetServiceWorkerContext()));
617 if (IsGuest()) { 617 if (IsGuest()) {
618 if (!g_browser_plugin_geolocation_context.Get().get()) { 618 if (!g_browser_plugin_geolocation_context.Get().get()) {
619 g_browser_plugin_geolocation_context.Get() = 619 g_browser_plugin_geolocation_context.Get() =
620 new BrowserPluginGeolocationPermissionContext(); 620 new BrowserPluginGeolocationPermissionContext();
621 } 621 }
622 AddFilter(GeolocationDispatcherHost::New( 622 AddFilter(GeolocationDispatcherHost::New(
623 GetID(), g_browser_plugin_geolocation_context.Get().get())); 623 GetID(), g_browser_plugin_geolocation_context.Get().get()));
624 } else { 624 } else {
625 AddFilter(GeolocationDispatcherHost::New( 625 AddFilter(GeolocationDispatcherHost::New(
626 GetID(), browser_context->GetGeolocationPermissionContext())); 626 GetID(), browser_context->GetGeolocationPermissionContext()));
(...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1824 // Skip widgets in other processes. 1824 // Skip widgets in other processes.
1825 if (widget->GetProcess()->GetID() != GetID()) 1825 if (widget->GetProcess()->GetID() != GetID())
1826 continue; 1826 continue;
1827 1827
1828 RenderViewHost* rvh = RenderViewHost::From(widget); 1828 RenderViewHost* rvh = RenderViewHost::From(widget);
1829 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1829 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1830 } 1830 }
1831 } 1831 }
1832 1832
1833 } // namespace content 1833 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698