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

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

Issue 2494183002: Remove some global defines and build flags. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « content/browser/DEPS ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 #include "media/base/media_switches.h" 175 #include "media/base/media_switches.h"
176 #include "mojo/edk/embedder/embedder.h" 176 #include "mojo/edk/embedder/embedder.h"
177 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" 177 #include "mojo/public/cpp/bindings/associated_interface_ptr.h"
178 #include "net/url_request/url_request_context_getter.h" 178 #include "net/url_request/url_request_context_getter.h"
179 #include "ppapi/shared_impl/ppapi_switches.h" 179 #include "ppapi/shared_impl/ppapi_switches.h"
180 #include "services/service_manager/public/cpp/connection.h" 180 #include "services/service_manager/public/cpp/connection.h"
181 #include "services/service_manager/public/cpp/interface_provider.h" 181 #include "services/service_manager/public/cpp/interface_provider.h"
182 #include "services/service_manager/public/cpp/interface_registry.h" 182 #include "services/service_manager/public/cpp/interface_registry.h"
183 #include "services/service_manager/runner/common/switches.h" 183 #include "services/service_manager/runner/common/switches.h"
184 #include "storage/browser/fileapi/sandbox_file_system_backend.h" 184 #include "storage/browser/fileapi/sandbox_file_system_backend.h"
185 #include "third_party/WebKit/public/public_features.h"
185 #include "third_party/skia/include/core/SkBitmap.h" 186 #include "third_party/skia/include/core/SkBitmap.h"
186 #include "ui/base/ui_base_switches.h" 187 #include "ui/base/ui_base_switches.h"
187 #include "ui/display/display_switches.h" 188 #include "ui/display/display_switches.h"
188 #include "ui/events/event_switches.h" 189 #include "ui/events/event_switches.h"
189 #include "ui/gfx/switches.h" 190 #include "ui/gfx/switches.h"
190 #include "ui/gl/gl_switches.h" 191 #include "ui/gl/gl_switches.h"
191 #include "ui/gl/gpu_switching_manager.h" 192 #include "ui/gl/gpu_switching_manager.h"
192 #include "ui/native_theme/native_theme_switches.h" 193 #include "ui/native_theme/native_theme_switches.h"
193 194
194 #if defined(OS_ANDROID) 195 #if defined(OS_ANDROID)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 #endif 230 #endif
230 231
231 #if defined(ENABLE_WEBRTC) 232 #if defined(ENABLE_WEBRTC)
232 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h" 233 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h"
233 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" 234 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h"
234 #include "content/browser/webrtc/webrtc_internals.h" 235 #include "content/browser/webrtc/webrtc_internals.h"
235 #include "content/common/media/aec_dump_messages.h" 236 #include "content/common/media/aec_dump_messages.h"
236 #include "content/common/media/media_stream_messages.h" 237 #include "content/common/media/media_stream_messages.h"
237 #endif 238 #endif
238 239
239 #if defined(USE_MINIKIN_HYPHENATION) 240 #if BUILDFLAG(USE_MINIKIN_HYPHENATION)
240 #include "content/browser/hyphenation/hyphenation_impl.h" 241 #include "content/browser/hyphenation/hyphenation_impl.h"
241 #endif 242 #endif
242 243
243 #if defined(OS_WIN) 244 #if defined(OS_WIN)
244 #define IntToStringType base::IntToString16 245 #define IntToStringType base::IntToString16
245 #else 246 #else
246 #define IntToStringType base::IntToString 247 #define IntToStringType base::IntToString
247 #endif 248 #endif
248 249
249 namespace content { 250 namespace content {
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 BrowserMainLoop::GetInstance()->time_zone_monitor()))); 1252 BrowserMainLoop::GetInstance()->time_zone_monitor())));
1252 1253
1253 AddUIThreadInterface( 1254 AddUIThreadInterface(
1254 registry.get(), 1255 registry.get(),
1255 base::Bind(&device::PowerMonitorMessageBroadcaster::Create)); 1256 base::Bind(&device::PowerMonitorMessageBroadcaster::Create));
1256 1257
1257 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner = 1258 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner =
1258 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE); 1259 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE);
1259 registry->AddInterface(base::Bind(&MimeRegistryImpl::Create), 1260 registry->AddInterface(base::Bind(&MimeRegistryImpl::Create),
1260 file_task_runner); 1261 file_task_runner);
1261 #if defined(USE_MINIKIN_HYPHENATION) 1262 #if BUILDFLAG(USE_MINIKIN_HYPHENATION)
1262 registry->AddInterface(base::Bind(&hyphenation::HyphenationImpl::Create), 1263 registry->AddInterface(base::Bind(&hyphenation::HyphenationImpl::Create),
1263 file_task_runner); 1264 file_task_runner);
1264 #endif 1265 #endif
1265 1266
1266 // These callbacks will be run immediately on the IO thread. 1267 // These callbacks will be run immediately on the IO thread.
1267 registry->AddInterface(base::Bind(&DeviceLightHost::Create)); 1268 registry->AddInterface(base::Bind(&DeviceLightHost::Create));
1268 registry->AddInterface(base::Bind(&DeviceMotionHost::Create)); 1269 registry->AddInterface(base::Bind(&DeviceMotionHost::Create));
1269 registry->AddInterface(base::Bind(&DeviceOrientationHost::Create)); 1270 registry->AddInterface(base::Bind(&DeviceOrientationHost::Create));
1270 registry->AddInterface(base::Bind(&DeviceOrientationAbsoluteHost::Create)); 1271 registry->AddInterface(base::Bind(&DeviceOrientationAbsoluteHost::Create));
1271 1272
(...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after
2984 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2985 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2985 2986
2986 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2987 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2987 // enough information here so that we can determine what the bad message was. 2988 // enough information here so that we can determine what the bad message was.
2988 base::debug::Alias(&error); 2989 base::debug::Alias(&error);
2989 bad_message::ReceivedBadMessage(render_process_id, 2990 bad_message::ReceivedBadMessage(render_process_id,
2990 bad_message::RPH_MOJO_PROCESS_ERROR); 2991 bad_message::RPH_MOJO_PROCESS_ERROR);
2991 } 2992 }
2992 2993
2993 } // namespace content 2994 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/DEPS ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698