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

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

Issue 2151993002: [WebAPKs] Plumb service worker scope to notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into notification_scope Created 4 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 resource_context, request_context.get()); 1030 resource_context, request_context.get());
1031 AddFilter(p2p_socket_dispatcher_host_.get()); 1031 AddFilter(p2p_socket_dispatcher_host_.get());
1032 #endif 1032 #endif
1033 1033
1034 AddFilter(new TraceMessageFilter(GetID())); 1034 AddFilter(new TraceMessageFilter(GetID()));
1035 AddFilter(new ResolveProxyMsgHelper(request_context.get())); 1035 AddFilter(new ResolveProxyMsgHelper(request_context.get()));
1036 AddFilter(new QuotaDispatcherHost( 1036 AddFilter(new QuotaDispatcherHost(
1037 GetID(), storage_partition_impl_->GetQuotaManager(), 1037 GetID(), storage_partition_impl_->GetQuotaManager(),
1038 GetContentClient()->browser()->CreateQuotaPermissionContext())); 1038 GetContentClient()->browser()->CreateQuotaPermissionContext()));
1039 1039
1040 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context(
1041 static_cast<ServiceWorkerContextWrapper*>(
1042 storage_partition_impl_->GetServiceWorkerContext()));
1040 notification_message_filter_ = new NotificationMessageFilter( 1043 notification_message_filter_ = new NotificationMessageFilter(
1041 GetID(), storage_partition_impl_->GetPlatformNotificationContext(), 1044 GetID(), storage_partition_impl_->GetPlatformNotificationContext(),
1042 resource_context, browser_context); 1045 resource_context, service_worker_context, browser_context);
1043 AddFilter(notification_message_filter_.get()); 1046 AddFilter(notification_message_filter_.get());
1044 1047
1045 AddFilter(new GamepadBrowserMessageFilter()); 1048 AddFilter(new GamepadBrowserMessageFilter());
1046 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 1049 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
1047 AddFilter(new HistogramMessageFilter()); 1050 AddFilter(new HistogramMessageFilter());
1048 AddFilter(new MemoryMessageFilter(this)); 1051 AddFilter(new MemoryMessageFilter(this));
1049 AddFilter(new PushMessagingMessageFilter( 1052 AddFilter(new PushMessagingMessageFilter(
1050 GetID(), storage_partition_impl_->GetServiceWorkerContext())); 1053 GetID(), storage_partition_impl_->GetServiceWorkerContext()));
1051 #if defined(OS_ANDROID) 1054 #if defined(OS_ANDROID)
1052 AddFilter(new ScreenOrientationMessageFilterAndroid()); 1055 AddFilter(new ScreenOrientationMessageFilterAndroid());
(...skipping 1743 matching lines...) Expand 10 before | Expand all | Expand 10 after
2796 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2799 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2797 2800
2798 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2801 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2799 // enough information here so that we can determine what the bad message was. 2802 // enough information here so that we can determine what the bad message was.
2800 base::debug::Alias(&error); 2803 base::debug::Alias(&error);
2801 bad_message::ReceivedBadMessage(process.get(), 2804 bad_message::ReceivedBadMessage(process.get(),
2802 bad_message::RPH_MOJO_PROCESS_ERROR); 2805 bad_message::RPH_MOJO_PROCESS_ERROR);
2803 } 2806 }
2804 2807
2805 } // namespace content 2808 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/notifications/notification_message_filter.cc ('k') | content/public/browser/platform_notification_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698