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

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

Issue 2353283002: [TimeZoneMonitor] Decouple //content/browser/time_zone_monitor* to //device/. (Closed)
Patch Set: Do not set output_name in gn Created 4 years, 2 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
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/time_zone_monitor.h » ('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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 #include "content/browser/renderer_host/render_widget_host_impl.h" 113 #include "content/browser/renderer_host/render_widget_host_impl.h"
114 #include "content/browser/renderer_host/text_input_client_message_filter.h" 114 #include "content/browser/renderer_host/text_input_client_message_filter.h"
115 #include "content/browser/resolve_proxy_msg_helper.h" 115 #include "content/browser/resolve_proxy_msg_helper.h"
116 #include "content/browser/service_worker/service_worker_context_wrapper.h" 116 #include "content/browser/service_worker/service_worker_context_wrapper.h"
117 #include "content/browser/service_worker/service_worker_dispatcher_host.h" 117 #include "content/browser/service_worker/service_worker_dispatcher_host.h"
118 #include "content/browser/shared_worker/shared_worker_message_filter.h" 118 #include "content/browser/shared_worker/shared_worker_message_filter.h"
119 #include "content/browser/shared_worker/worker_storage_partition.h" 119 #include "content/browser/shared_worker/worker_storage_partition.h"
120 #include "content/browser/speech/speech_recognition_dispatcher_host.h" 120 #include "content/browser/speech/speech_recognition_dispatcher_host.h"
121 #include "content/browser/storage_partition_impl.h" 121 #include "content/browser/storage_partition_impl.h"
122 #include "content/browser/streams/stream_context.h" 122 #include "content/browser/streams/stream_context.h"
123 #include "content/browser/time_zone_monitor.h"
124 #include "content/browser/tracing/trace_message_filter.h" 123 #include "content/browser/tracing/trace_message_filter.h"
125 #include "content/browser/websockets/websocket_manager.h" 124 #include "content/browser/websockets/websocket_manager.h"
126 #include "content/browser/webui/web_ui_controller_factory_registry.h" 125 #include "content/browser/webui/web_ui_controller_factory_registry.h"
127 #include "content/common/child_process_host_impl.h" 126 #include "content/common/child_process_host_impl.h"
128 #include "content/common/child_process_messages.h" 127 #include "content/common/child_process_messages.h"
129 #include "content/common/content_switches_internal.h" 128 #include "content/common/content_switches_internal.h"
130 #include "content/common/frame_messages.h" 129 #include "content/common/frame_messages.h"
131 #include "content/common/gpu_host_messages.h" 130 #include "content/common/gpu_host_messages.h"
132 #include "content/common/in_process_child_thread_params.h" 131 #include "content/common/in_process_child_thread_params.h"
133 #include "content/common/mojo/constants.h" 132 #include "content/common/mojo/constants.h"
(...skipping 21 matching lines...) Expand all
155 #include "content/public/common/content_constants.h" 154 #include "content/public/common/content_constants.h"
156 #include "content/public/common/content_features.h" 155 #include "content/public/common/content_features.h"
157 #include "content/public/common/content_switches.h" 156 #include "content/public/common/content_switches.h"
158 #include "content/public/common/mojo_channel_switches.h" 157 #include "content/public/common/mojo_channel_switches.h"
159 #include "content/public/common/process_type.h" 158 #include "content/public/common/process_type.h"
160 #include "content/public/common/resource_type.h" 159 #include "content/public/common/resource_type.h"
161 #include "content/public/common/result_codes.h" 160 #include "content/public/common/result_codes.h"
162 #include "content/public/common/sandboxed_process_launcher_delegate.h" 161 #include "content/public/common/sandboxed_process_launcher_delegate.h"
163 #include "content/public/common/url_constants.h" 162 #include "content/public/common/url_constants.h"
164 #include "device/battery/battery_monitor_impl.h" 163 #include "device/battery/battery_monitor_impl.h"
164 #include "device/time_zone_monitor/time_zone_monitor.h"
165 #include "gpu/GLES2/gl2extchromium.h" 165 #include "gpu/GLES2/gl2extchromium.h"
166 #include "gpu/command_buffer/client/gpu_switches.h" 166 #include "gpu/command_buffer/client/gpu_switches.h"
167 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 167 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
168 #include "gpu/command_buffer/service/gpu_switches.h" 168 #include "gpu/command_buffer/service/gpu_switches.h"
169 #include "ipc/attachment_broker.h" 169 #include "ipc/attachment_broker.h"
170 #include "ipc/attachment_broker_privileged.h" 170 #include "ipc/attachment_broker_privileged.h"
171 #include "ipc/ipc.mojom.h" 171 #include "ipc/ipc.mojom.h"
172 #include "ipc/ipc_channel.h" 172 #include "ipc/ipc_channel.h"
173 #include "ipc/ipc_channel_mojo.h" 173 #include "ipc/ipc_channel_mojo.h"
174 #include "ipc/ipc_logging.h" 174 #include "ipc/ipc_logging.h"
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 AddUIThreadInterface( 1241 AddUIThreadInterface(
1242 registry.get(), base::Bind(&CreateMemoryCoordinatorHandle, GetID())); 1242 registry.get(), base::Bind(&CreateMemoryCoordinatorHandle, GetID()));
1243 } 1243 }
1244 1244
1245 // BrowserMainLoop, which owns TimeZoneMonitor, is alive for the lifetime of 1245 // BrowserMainLoop, which owns TimeZoneMonitor, is alive for the lifetime of
1246 // Mojo communication (see BrowserMainLoop::ShutdownThreadsAndCleanUp(), 1246 // Mojo communication (see BrowserMainLoop::ShutdownThreadsAndCleanUp(),
1247 // which shuts down Mojo). Hence, passing that TimeZoneMonitor instance as 1247 // which shuts down Mojo). Hence, passing that TimeZoneMonitor instance as
1248 // a raw pointer here is safe. 1248 // a raw pointer here is safe.
1249 AddUIThreadInterface( 1249 AddUIThreadInterface(
1250 registry.get(), 1250 registry.get(),
1251 base::Bind(&TimeZoneMonitor::Bind, 1251 base::Bind(&device::TimeZoneMonitor::Bind,
1252 base::Unretained( 1252 base::Unretained(
1253 BrowserMainLoop::GetInstance()->time_zone_monitor()))); 1253 BrowserMainLoop::GetInstance()->time_zone_monitor())));
1254 1254
1255 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner = 1255 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner =
1256 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE); 1256 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE);
1257 registry->AddInterface(base::Bind(&MimeRegistryImpl::Create), 1257 registry->AddInterface(base::Bind(&MimeRegistryImpl::Create),
1258 file_task_runner); 1258 file_task_runner);
1259 #if defined(USE_MINIKIN_HYPHENATION) 1259 #if defined(USE_MINIKIN_HYPHENATION)
1260 registry->AddInterface(base::Bind(&hyphenation::HyphenationImpl::Create), 1260 registry->AddInterface(base::Bind(&hyphenation::HyphenationImpl::Create),
1261 file_task_runner); 1261 file_task_runner);
(...skipping 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after
2994 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2994 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2995 2995
2996 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2996 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2997 // enough information here so that we can determine what the bad message was. 2997 // enough information here so that we can determine what the bad message was.
2998 base::debug::Alias(&error); 2998 base::debug::Alias(&error);
2999 bad_message::ReceivedBadMessage(process.get(), 2999 bad_message::ReceivedBadMessage(process.get(),
3000 bad_message::RPH_MOJO_PROCESS_ERROR); 3000 bad_message::RPH_MOJO_PROCESS_ERROR);
3001 } 3001 }
3002 3002
3003 } // namespace content 3003 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/time_zone_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698