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

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

Issue 317823007: Hook PushMessagingMessageFilter up to GCMDriver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make push_messaging_service non-const 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 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 858 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
859 AddFilter(new HistogramMessageFilter()); 859 AddFilter(new HistogramMessageFilter());
860 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 860 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
861 if (CommandLine::ForCurrentProcess()->HasSwitch( 861 if (CommandLine::ForCurrentProcess()->HasSwitch(
862 switches::kEnableMemoryBenchmarking)) 862 switches::kEnableMemoryBenchmarking))
863 AddFilter(new MemoryBenchmarkMessageFilter()); 863 AddFilter(new MemoryBenchmarkMessageFilter());
864 #endif 864 #endif
865 AddFilter(new VibrationMessageFilter()); 865 AddFilter(new VibrationMessageFilter());
866 screen_orientation_dispatcher_host_ = new ScreenOrientationDispatcherHost(); 866 screen_orientation_dispatcher_host_ = new ScreenOrientationDispatcherHost();
867 AddFilter(screen_orientation_dispatcher_host_); 867 AddFilter(screen_orientation_dispatcher_host_);
868 AddFilter(new PushMessagingMessageFilter()); 868 AddFilter(new PushMessagingMessageFilter(GetID()));
869 AddFilter(new BatteryStatusMessageFilter()); 869 AddFilter(new BatteryStatusMessageFilter());
870 } 870 }
871 871
872 int RenderProcessHostImpl::GetNextRoutingID() { 872 int RenderProcessHostImpl::GetNextRoutingID() {
873 return widget_helper_->GetNextRoutingID(); 873 return widget_helper_->GetNextRoutingID();
874 } 874 }
875 875
876 876
877 void RenderProcessHostImpl::ResumeDeferredNavigation( 877 void RenderProcessHostImpl::ResumeDeferredNavigation(
878 const GlobalRequestID& request_id) { 878 const GlobalRequestID& request_id) {
(...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after
2248 void RenderProcessHostImpl::GpuMemoryBufferAllocated( 2248 void RenderProcessHostImpl::GpuMemoryBufferAllocated(
2249 IPC::Message* reply, 2249 IPC::Message* reply,
2250 const gfx::GpuMemoryBufferHandle& handle) { 2250 const gfx::GpuMemoryBufferHandle& handle) {
2251 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2251 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2252 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, 2252 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply,
2253 handle); 2253 handle);
2254 Send(reply); 2254 Send(reply);
2255 } 2255 }
2256 2256
2257 } // namespace content 2257 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698