OLD | NEW |
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/process.h" | 14 #include "base/process.h" |
15 #include "base/synchronization/waitable_event_watcher.h" | 15 #include "base/synchronization/waitable_event_watcher.h" |
16 #include "base/timer.h" | 16 #include "base/timer.h" |
17 #include "content/browser/child_process_launcher.h" | 17 #include "content/browser/child_process_launcher.h" |
18 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
19 #include "content/public/browser/render_process_host.h" | 19 #include "content/public/browser/render_process_host.h" |
20 #include "ipc/ipc_channel_proxy.h" | 20 #include "ipc/ipc_channel_proxy.h" |
21 #include "ui/surface/transport_dib.h" | 21 #include "ui/surface/transport_dib.h" |
22 | 22 |
23 class CommandLine; | 23 class CommandLine; |
24 class GpuMessageFilter; | 24 class GpuMessageFilter; |
25 class RendererMainThread; | 25 class RendererMainThread; |
26 class RenderWidgetHelper; | 26 class RenderWidgetHelper; |
27 | 27 |
28 namespace base { | 28 namespace base { |
| 29 class TimeDelta; |
29 class WaitableEvent; | 30 class WaitableEvent; |
30 } | 31 } |
31 | 32 |
32 namespace content { | 33 namespace content { |
33 class RenderWidgetHost; | 34 class RenderWidgetHost; |
34 class RenderWidgetHostImpl; | 35 class RenderWidgetHostImpl; |
35 } | 36 } |
36 | 37 |
37 // Implements a concrete RenderProcessHost for the browser process for talking | 38 // Implements a concrete RenderProcessHost for the browser process for talking |
38 // to actual renderer processes (as opposed to mocks). | 39 // to actual renderer processes (as opposed to mocks). |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 friend class VisitRelayingRenderProcessHost; | 153 friend class VisitRelayingRenderProcessHost; |
153 | 154 |
154 // Creates and adds the IO thread message filters. | 155 // Creates and adds the IO thread message filters. |
155 void CreateMessageFilters(); | 156 void CreateMessageFilters(); |
156 | 157 |
157 // Control message handlers. | 158 // Control message handlers. |
158 void OnShutdownRequest(); | 159 void OnShutdownRequest(); |
159 void OnDumpHandlesDone(); | 160 void OnDumpHandlesDone(); |
160 void SuddenTerminationChanged(bool enabled); | 161 void SuddenTerminationChanged(bool enabled); |
161 void OnUserMetricsRecordAction(const std::string& action); | 162 void OnUserMetricsRecordAction(const std::string& action); |
| 163 void OnSyncIPCElapsedTime(const base::TimeDelta& delta); |
162 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); | 164 void OnSavedPageAsMHTML(int job_id, int64 mhtml_file_size); |
163 | 165 |
164 // CompositorSurfaceBuffersSwapped handler when there's no RWH. | 166 // CompositorSurfaceBuffersSwapped handler when there's no RWH. |
165 void OnCompositorSurfaceBuffersSwappedNoHost(int32 surface_id, | 167 void OnCompositorSurfaceBuffersSwappedNoHost(int32 surface_id, |
166 uint64 surface_handle, | 168 uint64 surface_handle, |
167 int32 route_id, | 169 int32 route_id, |
168 int32 gpu_process_host_id); | 170 int32 gpu_process_host_id); |
169 | 171 |
170 // Generates a command line to be used to spawn a renderer and appends the | 172 // Generates a command line to be used to spawn a renderer and appends the |
171 // results to |*command_line|. | 173 // results to |*command_line|. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 // filtering for this at the render widget level. | 262 // filtering for this at the render widget level. |
261 bool ignore_input_events_; | 263 bool ignore_input_events_; |
262 | 264 |
263 // Records the last time we regarded the child process active. | 265 // Records the last time we regarded the child process active. |
264 base::TimeTicks child_process_activity_time_; | 266 base::TimeTicks child_process_activity_time_; |
265 | 267 |
266 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); | 268 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); |
267 }; | 269 }; |
268 | 270 |
269 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ | 271 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_IMPL_H_ |
OLD | NEW |