OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_GPU_GPU_CHILD_THREAD_H_ | 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_ |
6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ | 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 public: | 40 public: |
41 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
42 explicit GpuChildThread(sandbox::TargetServices* target_services); | 42 explicit GpuChildThread(sandbox::TargetServices* target_services); |
43 #else | 43 #else |
44 GpuChildThread(); | 44 GpuChildThread(); |
45 #endif | 45 #endif |
46 | 46 |
47 // For single-process mode. | 47 // For single-process mode. |
48 explicit GpuChildThread(const std::string& channel_id); | 48 explicit GpuChildThread(const std::string& channel_id); |
49 | 49 |
50 ~GpuChildThread(); | 50 virtual ~GpuChildThread(); |
51 | 51 |
52 void Init(const base::Time& process_start_time); | 52 void Init(const base::Time& process_start_time); |
53 void StopWatchdog(); | 53 void StopWatchdog(); |
54 | 54 |
55 // ChildThread overrides. | 55 // ChildThread overrides. |
56 virtual bool Send(IPC::Message* msg); | 56 virtual bool Send(IPC::Message* msg); |
57 virtual bool OnControlMessageReceived(const IPC::Message& msg); | 57 virtual bool OnControlMessageReceived(const IPC::Message& msg); |
58 | 58 |
59 private: | 59 private: |
60 // Message handlers. | 60 // Message handlers. |
(...skipping 21 matching lines...) Expand all Loading... |
82 | 82 |
83 scoped_ptr<GpuChannelManager> gpu_channel_manager_; | 83 scoped_ptr<GpuChannelManager> gpu_channel_manager_; |
84 | 84 |
85 // Information about the GPU, such as device and vendor ID. | 85 // Information about the GPU, such as device and vendor ID. |
86 GPUInfo gpu_info_; | 86 GPUInfo gpu_info_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 88 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
89 }; | 89 }; |
90 | 90 |
91 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 91 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
OLD | NEW |