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

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

Issue 340773006: Dispatch push event to worker from PushServiceImpl#OnMessage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Debugging. Created 6 years, 6 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 #include <algorithm> 10 #include <algorithm>
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 AddFilter(new DeviceMotionMessageFilter()); 877 AddFilter(new DeviceMotionMessageFilter());
878 AddFilter(new DeviceOrientationMessageFilter()); 878 AddFilter(new DeviceOrientationMessageFilter());
879 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 879 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
880 AddFilter(new HistogramMessageFilter()); 880 AddFilter(new HistogramMessageFilter());
881 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 881 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
882 if (CommandLine::ForCurrentProcess()->HasSwitch( 882 if (CommandLine::ForCurrentProcess()->HasSwitch(
883 switches::kEnableMemoryBenchmarking)) 883 switches::kEnableMemoryBenchmarking))
884 AddFilter(new MemoryBenchmarkMessageFilter()); 884 AddFilter(new MemoryBenchmarkMessageFilter());
885 #endif 885 #endif
886 AddFilter(new VibrationMessageFilter()); 886 AddFilter(new VibrationMessageFilter());
887 AddFilter(new PushMessagingMessageFilter(GetID())); 887 AddFilter(new PushMessagingMessageFilter(
888 GetID(), storage_partition_impl_->GetServiceWorkerContext()));
888 AddFilter(new BatteryStatusMessageFilter()); 889 AddFilter(new BatteryStatusMessageFilter());
889 } 890 }
890 891
891 int RenderProcessHostImpl::GetNextRoutingID() { 892 int RenderProcessHostImpl::GetNextRoutingID() {
892 return widget_helper_->GetNextRoutingID(); 893 return widget_helper_->GetNextRoutingID();
893 } 894 }
894 895
895 896
896 void RenderProcessHostImpl::ResumeDeferredNavigation( 897 void RenderProcessHostImpl::ResumeDeferredNavigation(
897 const GlobalRequestID& request_id) { 898 const GlobalRequestID& request_id) {
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after
2358 void RenderProcessHostImpl::GpuMemoryBufferAllocated( 2359 void RenderProcessHostImpl::GpuMemoryBufferAllocated(
2359 IPC::Message* reply, 2360 IPC::Message* reply,
2360 const gfx::GpuMemoryBufferHandle& handle) { 2361 const gfx::GpuMemoryBufferHandle& handle) {
2361 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2362 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2362 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, 2363 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply,
2363 handle); 2364 handle);
2364 Send(reply); 2365 Send(reply);
2365 } 2366 }
2366 2367
2367 } // namespace content 2368 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698