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_GPU_GPU_PROCESS_HOST_H_ | 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 namespace IPC { | 41 namespace IPC { |
42 struct ChannelHandle; | 42 struct ChannelHandle; |
43 } | 43 } |
44 | 44 |
45 namespace gpu { | 45 namespace gpu { |
46 struct GpuPreferences; | 46 struct GpuPreferences; |
47 struct SyncToken; | 47 struct SyncToken; |
48 } | 48 } |
49 | 49 |
50 namespace shell { | 50 namespace service_manager { |
51 class InterfaceProvider; | 51 class InterfaceProvider; |
52 } | 52 } |
53 | 53 |
54 namespace content { | 54 namespace content { |
55 class BrowserChildProcessHostImpl; | 55 class BrowserChildProcessHostImpl; |
56 class GpuMainThread; | 56 class GpuMainThread; |
57 class InProcessChildThreadParams; | 57 class InProcessChildThreadParams; |
58 class RenderWidgetHostViewFrameSubscriber; | 58 class RenderWidgetHostViewFrameSubscriber; |
59 class ShaderDiskCache; | 59 class ShaderDiskCache; |
60 | 60 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // be set to force the creation of GpuProcessHost if one doesn't already | 106 // be set to force the creation of GpuProcessHost if one doesn't already |
107 // exist. This function can be called from any thread. Deletes the message if | 107 // exist. This function can be called from any thread. Deletes the message if |
108 // it cannot be sent. | 108 // it cannot be sent. |
109 CONTENT_EXPORT static void SendOnIO(GpuProcessKind kind, | 109 CONTENT_EXPORT static void SendOnIO(GpuProcessKind kind, |
110 bool force_create, | 110 bool force_create, |
111 IPC::Message* message); | 111 IPC::Message* message); |
112 | 112 |
113 CONTENT_EXPORT static void RegisterGpuMainThreadFactory( | 113 CONTENT_EXPORT static void RegisterGpuMainThreadFactory( |
114 GpuMainThreadFactoryFunction create); | 114 GpuMainThreadFactoryFunction create); |
115 | 115 |
116 shell::InterfaceProvider* GetRemoteInterfaces(); | 116 service_manager::InterfaceProvider* GetRemoteInterfaces(); |
117 | 117 |
118 // Get the GPU process host for the GPU process with the given ID. Returns | 118 // Get the GPU process host for the GPU process with the given ID. Returns |
119 // null if the process no longer exists. | 119 // null if the process no longer exists. |
120 static GpuProcessHost* FromID(int host_id); | 120 static GpuProcessHost* FromID(int host_id); |
121 int host_id() const { return host_id_; } | 121 int host_id() const { return host_id_; } |
122 | 122 |
123 // IPC::Sender implementation. | 123 // IPC::Sender implementation. |
124 bool Send(IPC::Message* msg) override; | 124 bool Send(IPC::Message* msg) override; |
125 | 125 |
126 // Adds a message filter to the GpuProcessHost's channel. | 126 // Adds a message filter to the GpuProcessHost's channel. |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 // TODO(crbug.com/653874): Eventually remove this and use single shared memory | 297 // TODO(crbug.com/653874): Eventually remove this and use single shared memory |
298 // object across processes. | 298 // object across processes. |
299 std::unique_ptr<base::SharedMemory> field_trial_state_; | 299 std::unique_ptr<base::SharedMemory> field_trial_state_; |
300 | 300 |
301 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 301 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
302 }; | 302 }; |
303 | 303 |
304 } // namespace content | 304 } // namespace content |
305 | 305 |
306 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 306 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
OLD | NEW |