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

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

Issue 2745443002: [Device Service] Port ScreenOrientationListener into Device Service. (Closed)
Patch Set: Add DEPS Created 3 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 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 #include "third_party/WebKit/public/public_features.h" 196 #include "third_party/WebKit/public/public_features.h"
197 #include "third_party/skia/include/core/SkBitmap.h" 197 #include "third_party/skia/include/core/SkBitmap.h"
198 #include "ui/base/ui_base_switches.h" 198 #include "ui/base/ui_base_switches.h"
199 #include "ui/display/display_switches.h" 199 #include "ui/display/display_switches.h"
200 #include "ui/gfx/switches.h" 200 #include "ui/gfx/switches.h"
201 #include "ui/gl/gl_switches.h" 201 #include "ui/gl/gl_switches.h"
202 #include "ui/gl/gpu_switching_manager.h" 202 #include "ui/gl/gpu_switching_manager.h"
203 #include "ui/native_theme/native_theme_switches.h" 203 #include "ui/native_theme/native_theme_switches.h"
204 204
205 #if defined(OS_ANDROID) 205 #if defined(OS_ANDROID)
206 #include "content/browser/screen_orientation/screen_orientation_listener_android .h"
207 #include "content/public/browser/android/java_interfaces.h" 206 #include "content/public/browser/android/java_interfaces.h"
208 #include "ipc/ipc_sync_channel.h" 207 #include "ipc/ipc_sync_channel.h"
209 #include "media/audio/android/audio_manager_android.h" 208 #include "media/audio/android/audio_manager_android.h"
210 #endif 209 #endif
211 210
212 #if defined(OS_WIN) 211 #if defined(OS_WIN)
213 #include "base/win/scoped_com_initializer.h" 212 #include "base/win/scoped_com_initializer.h"
214 #include "base/win/windows_version.h" 213 #include "base/win/windows_version.h"
215 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h" 214 #include "content/browser/renderer_host/dwrite_font_proxy_message_filter_win.h"
216 #include "content/common/font_cache_dispatcher_win.h" 215 #include "content/common/font_cache_dispatcher_win.h"
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
1181 storage_partition_impl_->GetServiceWorkerContext())); 1180 storage_partition_impl_->GetServiceWorkerContext()));
1182 notification_message_filter_ = new NotificationMessageFilter( 1181 notification_message_filter_ = new NotificationMessageFilter(
1183 GetID(), storage_partition_impl_->GetPlatformNotificationContext(), 1182 GetID(), storage_partition_impl_->GetPlatformNotificationContext(),
1184 resource_context, service_worker_context, browser_context); 1183 resource_context, service_worker_context, browser_context);
1185 AddFilter(notification_message_filter_.get()); 1184 AddFilter(notification_message_filter_.get());
1186 1185
1187 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 1186 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
1188 AddFilter(new HistogramMessageFilter()); 1187 AddFilter(new HistogramMessageFilter());
1189 AddFilter(new MemoryMessageFilter(this)); 1188 AddFilter(new MemoryMessageFilter(this));
1190 #if defined(OS_ANDROID) 1189 #if defined(OS_ANDROID)
1191 AddFilter(new ScreenOrientationListenerAndroid());
1192 synchronous_compositor_filter_ = 1190 synchronous_compositor_filter_ =
1193 new SynchronousCompositorBrowserFilter(GetID()); 1191 new SynchronousCompositorBrowserFilter(GetID());
1194 AddFilter(synchronous_compositor_filter_.get()); 1192 AddFilter(synchronous_compositor_filter_.get());
1195 #endif 1193 #endif
1196 } 1194 }
1197 1195
1198 void RenderProcessHostImpl::RegisterMojoInterfaces() { 1196 void RenderProcessHostImpl::RegisterMojoInterfaces() {
1199 auto registry = base::MakeUnique<service_manager::InterfaceRegistry>( 1197 auto registry = base::MakeUnique<service_manager::InterfaceRegistry>(
1200 service_manager::mojom::kServiceManager_ConnectorSpec); 1198 service_manager::mojom::kServiceManager_ConnectorSpec);
1201 1199
(...skipping 1867 matching lines...) Expand 10 before | Expand all | Expand 10 after
3069 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 3067 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
3070 3068
3071 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. 3069 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing.
3072 // Capture the error message in a crash key value. 3070 // Capture the error message in a crash key value.
3073 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); 3071 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error);
3074 bad_message::ReceivedBadMessage(render_process_id, 3072 bad_message::ReceivedBadMessage(render_process_id,
3075 bad_message::RPH_MOJO_PROCESS_ERROR); 3073 bad_message::RPH_MOJO_PROCESS_ERROR);
3076 } 3074 }
3077 3075
3078 } // namespace content 3076 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698