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

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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 #endif 1018 #endif
1019 1019
1020 AddFilter(new TraceMessageFilter(GetID())); 1020 AddFilter(new TraceMessageFilter(GetID()));
1021 AddFilter(new ResolveProxyMsgHelper(request_context.get())); 1021 AddFilter(new ResolveProxyMsgHelper(request_context.get()));
1022 AddFilter(new QuotaDispatcherHost( 1022 AddFilter(new QuotaDispatcherHost(
1023 GetID(), storage_partition_impl_->GetQuotaManager(), 1023 GetID(), storage_partition_impl_->GetQuotaManager(),
1024 GetContentClient()->browser()->CreateQuotaPermissionContext())); 1024 GetContentClient()->browser()->CreateQuotaPermissionContext()));
1025 1025
1026 notification_message_filter_ = new NotificationMessageFilter( 1026 notification_message_filter_ = new NotificationMessageFilter(
1027 GetID(), storage_partition_impl_->GetPlatformNotificationContext(), 1027 GetID(), storage_partition_impl_->GetPlatformNotificationContext(),
1028 resource_context, browser_context); 1028 resource_context, storage_partition_impl_->GetServiceWorkerContext(),
1029 browser_context);
1029 AddFilter(notification_message_filter_.get()); 1030 AddFilter(notification_message_filter_.get());
1030 1031
1031 AddFilter(new GamepadBrowserMessageFilter()); 1032 AddFilter(new GamepadBrowserMessageFilter());
1032 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 1033 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
1033 AddFilter(new HistogramMessageFilter()); 1034 AddFilter(new HistogramMessageFilter());
1034 AddFilter(new MemoryMessageFilter(this)); 1035 AddFilter(new MemoryMessageFilter(this));
1035 AddFilter(new PushMessagingMessageFilter( 1036 AddFilter(new PushMessagingMessageFilter(
1036 GetID(), storage_partition_impl_->GetServiceWorkerContext())); 1037 GetID(), storage_partition_impl_->GetServiceWorkerContext()));
1037 #if defined(OS_ANDROID) 1038 #if defined(OS_ANDROID)
1038 AddFilter(new ScreenOrientationMessageFilterAndroid()); 1039 AddFilter(new ScreenOrientationMessageFilterAndroid());
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
2764 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2765 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2765 2766
2766 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2767 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2767 // enough information here so that we can determine what the bad message was. 2768 // enough information here so that we can determine what the bad message was.
2768 base::debug::Alias(&error); 2769 base::debug::Alias(&error);
2769 bad_message::ReceivedBadMessage(process.get(), 2770 bad_message::ReceivedBadMessage(process.get(),
2770 bad_message::RPH_MOJO_PROCESS_ERROR); 2771 bad_message::RPH_MOJO_PROCESS_ERROR);
2771 } 2772 }
2772 2773
2773 } // namespace content 2774 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698