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

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: Remove render_process_id_ for now 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
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_dispatcher_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1826 // Skip widgets in other processes. 1826 // Skip widgets in other processes.
1827 if (widget->GetProcess()->GetID() != GetID()) 1827 if (widget->GetProcess()->GetID() != GetID())
1828 continue; 1828 continue;
1829 1829
1830 RenderViewHost* rvh = RenderViewHost::From(widget); 1830 RenderViewHost* rvh = RenderViewHost::From(widget);
1831 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1831 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1832 } 1832 }
1833 } 1833 }
1834 1834
1835 } // namespace content 1835 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698