| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 bool Init(); | 179 bool Init(); |
| 180 | 180 |
| 181 // Post an IPC message to the UI shim's message handler on the UI thread. | 181 // Post an IPC message to the UI shim's message handler on the UI thread. |
| 182 void RouteOnUIThread(const IPC::Message& message); | 182 void RouteOnUIThread(const IPC::Message& message); |
| 183 | 183 |
| 184 // BrowserChildProcessHostDelegate implementation. | 184 // BrowserChildProcessHostDelegate implementation. |
| 185 bool OnMessageReceived(const IPC::Message& message) override; | 185 bool OnMessageReceived(const IPC::Message& message) override; |
| 186 void OnChannelConnected(int32_t peer_pid) override; | 186 void OnChannelConnected(int32_t peer_pid) override; |
| 187 void OnProcessLaunched() override; | 187 void OnProcessLaunched() override; |
| 188 void OnProcessLaunchFailed() override; | 188 void OnProcessLaunchFailed(int error_code) override; |
| 189 void OnProcessCrashed(int exit_code) override; | 189 void OnProcessCrashed(int exit_code) override; |
| 190 | 190 |
| 191 // Message handlers. | 191 // Message handlers. |
| 192 void OnInitialized(bool result, const gpu::GPUInfo& gpu_info); | 192 void OnInitialized(bool result, const gpu::GPUInfo& gpu_info); |
| 193 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle); | 193 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle); |
| 194 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); | 194 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); |
| 195 #if defined(OS_ANDROID) | 195 #if defined(OS_ANDROID) |
| 196 void OnDestroyingVideoSurfaceAck(int surface_id); | 196 void OnDestroyingVideoSurfaceAck(int surface_id); |
| 197 #endif | 197 #endif |
| 198 void OnDidCreateOffscreenContext(const GURL& url); | 198 void OnDidCreateOffscreenContext(const GURL& url); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // Browser-side Mojo endpoint which sets up a Mojo channel with the child | 304 // Browser-side Mojo endpoint which sets up a Mojo channel with the child |
| 305 // process and contains the browser's ServiceRegistry. | 305 // process and contains the browser's ServiceRegistry. |
| 306 std::unique_ptr<MojoApplicationHost> mojo_application_host_; | 306 std::unique_ptr<MojoApplicationHost> mojo_application_host_; |
| 307 | 307 |
| 308 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 308 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 309 }; | 309 }; |
| 310 | 310 |
| 311 } // namespace content | 311 } // namespace content |
| 312 | 312 |
| 313 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 313 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |