| 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 22 matching lines...) Expand all Loading... |
| 33 #include "ui/gfx/native_widget_types.h" | 33 #include "ui/gfx/native_widget_types.h" |
| 34 #include "url/gurl.h" | 34 #include "url/gurl.h" |
| 35 | 35 |
| 36 struct GPUCreateCommandBufferConfig; | 36 struct GPUCreateCommandBufferConfig; |
| 37 | 37 |
| 38 namespace IPC { | 38 namespace IPC { |
| 39 struct ChannelHandle; | 39 struct ChannelHandle; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace gpu { | 42 namespace gpu { |
| 43 struct GpuPreferences; | |
| 44 struct SyncToken; | 43 struct SyncToken; |
| 45 } | 44 } |
| 46 | 45 |
| 47 namespace content { | 46 namespace content { |
| 48 class BrowserChildProcessHostImpl; | 47 class BrowserChildProcessHostImpl; |
| 49 class GpuMainThread; | 48 class GpuMainThread; |
| 50 class InProcessChildThreadParams; | 49 class InProcessChildThreadParams; |
| 51 class MojoApplicationHost; | 50 class MojoApplicationHost; |
| 52 class RenderWidgetHostViewFrameSubscriber; | 51 class RenderWidgetHostViewFrameSubscriber; |
| 53 class ShaderDiskCache; | 52 class ShaderDiskCache; |
| 54 | 53 |
| 55 typedef base::Thread* (*GpuMainThreadFactoryFunction)( | 54 typedef base::Thread* (*GpuMainThreadFactoryFunction)( |
| 56 const InProcessChildThreadParams&, const gpu::GpuPreferences&); | 55 const InProcessChildThreadParams&); |
| 57 | 56 |
| 58 class GpuProcessHost : public BrowserChildProcessHostDelegate, | 57 class GpuProcessHost : public BrowserChildProcessHostDelegate, |
| 59 public IPC::Sender, | 58 public IPC::Sender, |
| 60 public base::NonThreadSafe { | 59 public base::NonThreadSafe { |
| 61 public: | 60 public: |
| 62 enum GpuProcessKind { | 61 enum GpuProcessKind { |
| 63 GPU_PROCESS_KIND_UNSANDBOXED, | 62 GPU_PROCESS_KIND_UNSANDBOXED, |
| 64 GPU_PROCESS_KIND_SANDBOXED, | 63 GPU_PROCESS_KIND_SANDBOXED, |
| 65 GPU_PROCESS_KIND_COUNT | 64 GPU_PROCESS_KIND_COUNT |
| 66 }; | 65 }; |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 // Browser-side Mojo endpoint which sets up a Mojo channel with the child | 291 // Browser-side Mojo endpoint which sets up a Mojo channel with the child |
| 293 // process and contains the browser's ServiceRegistry. | 292 // process and contains the browser's ServiceRegistry. |
| 294 scoped_ptr<MojoApplicationHost> mojo_application_host_; | 293 scoped_ptr<MojoApplicationHost> mojo_application_host_; |
| 295 | 294 |
| 296 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 295 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
| 297 }; | 296 }; |
| 298 | 297 |
| 299 } // namespace content | 298 } // namespace content |
| 300 | 299 |
| 301 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ | 300 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ |
| OLD | NEW |