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

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

Issue 186023002: DO NOT REVIEW Plumb push messaging registration through to gcm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 9 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 (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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" 60 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h"
61 #include "content/browser/loader/resource_message_filter.h" 61 #include "content/browser/loader/resource_message_filter.h"
62 #include "content/browser/loader/resource_scheduler_filter.h" 62 #include "content/browser/loader/resource_scheduler_filter.h"
63 #include "content/browser/media/android/browser_demuxer_android.h" 63 #include "content/browser/media/android/browser_demuxer_android.h"
64 #include "content/browser/media/capture/audio_mirroring_manager.h" 64 #include "content/browser/media/capture/audio_mirroring_manager.h"
65 #include "content/browser/media/media_internals.h" 65 #include "content/browser/media/media_internals.h"
66 #include "content/browser/message_port_message_filter.h" 66 #include "content/browser/message_port_message_filter.h"
67 #include "content/browser/mime_registry_message_filter.h" 67 #include "content/browser/mime_registry_message_filter.h"
68 #include "content/browser/plugin_service_impl.h" 68 #include "content/browser/plugin_service_impl.h"
69 #include "content/browser/profiler_message_filter.h" 69 #include "content/browser/profiler_message_filter.h"
70 #include "content/browser/push_messaging_message_filter.h"
70 #include "content/browser/quota_dispatcher_host.h" 71 #include "content/browser/quota_dispatcher_host.h"
71 #include "content/browser/renderer_host/clipboard_message_filter.h" 72 #include "content/browser/renderer_host/clipboard_message_filter.h"
72 #include "content/browser/renderer_host/database_message_filter.h" 73 #include "content/browser/renderer_host/database_message_filter.h"
73 #include "content/browser/renderer_host/file_utilities_message_filter.h" 74 #include "content/browser/renderer_host/file_utilities_message_filter.h"
74 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" 75 #include "content/browser/renderer_host/gamepad_browser_message_filter.h"
75 #include "content/browser/renderer_host/gpu_message_filter.h" 76 #include "content/browser/renderer_host/gpu_message_filter.h"
76 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 77 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
77 #include "content/browser/renderer_host/media/audio_renderer_host.h" 78 #include "content/browser/renderer_host/media/audio_renderer_host.h"
78 #include "content/browser/renderer_host/media/device_request_message_filter.h" 79 #include "content/browser/renderer_host/media/device_request_message_filter.h"
79 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" 80 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h"
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 789 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
789 AddFilter(new HistogramMessageFilter()); 790 AddFilter(new HistogramMessageFilter());
790 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 791 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
791 if (CommandLine::ForCurrentProcess()->HasSwitch( 792 if (CommandLine::ForCurrentProcess()->HasSwitch(
792 switches::kEnableMemoryBenchmarking)) 793 switches::kEnableMemoryBenchmarking))
793 AddFilter(new MemoryBenchmarkMessageFilter()); 794 AddFilter(new MemoryBenchmarkMessageFilter());
794 #endif 795 #endif
795 AddFilter(new VibrationMessageFilter()); 796 AddFilter(new VibrationMessageFilter());
796 screen_orientation_dispatcher_host_ = new ScreenOrientationDispatcherHost(); 797 screen_orientation_dispatcher_host_ = new ScreenOrientationDispatcherHost();
797 AddFilter(screen_orientation_dispatcher_host_); 798 AddFilter(screen_orientation_dispatcher_host_);
799 AddFilter(new PushMessagingMessageFilter(GetID()));
798 } 800 }
799 801
800 int RenderProcessHostImpl::GetNextRoutingID() { 802 int RenderProcessHostImpl::GetNextRoutingID() {
801 return widget_helper_->GetNextRoutingID(); 803 return widget_helper_->GetNextRoutingID();
802 } 804 }
803 805
804 806
805 void RenderProcessHostImpl::ResumeDeferredNavigation( 807 void RenderProcessHostImpl::ResumeDeferredNavigation(
806 const GlobalRequestID& request_id) { 808 const GlobalRequestID& request_id) {
807 widget_helper_->ResumeDeferredNavigation(request_id); 809 widget_helper_->ResumeDeferredNavigation(request_id);
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
2092 2094
2093 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2095 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2094 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 2096 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
2095 DCHECK_GT(worker_ref_count_, 0); 2097 DCHECK_GT(worker_ref_count_, 0);
2096 --worker_ref_count_; 2098 --worker_ref_count_;
2097 if (worker_ref_count_ == 0) 2099 if (worker_ref_count_ == 0)
2098 Cleanup(); 2100 Cleanup();
2099 } 2101 }
2100 2102
2101 } // namespace content 2103 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/push_messaging_message_filter.cc ('k') | content/common/content_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698