OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void SendSynchronizationReply(IPC::Message* reply, | 109 void SendSynchronizationReply(IPC::Message* reply, |
110 ResourceMessageFilter* filter); | 110 ResourceMessageFilter* filter); |
111 | 111 |
112 // ResourceDispatcherHost::Receiver implementation: | 112 // ResourceDispatcherHost::Receiver implementation: |
113 virtual URLRequestContext* GetRequestContext( | 113 virtual URLRequestContext* GetRequestContext( |
114 uint32 request_id, | 114 uint32 request_id, |
115 const ViewHostMsg_Resource_Request& request_data); | 115 const ViewHostMsg_Resource_Request& request_data); |
116 | 116 |
117 virtual bool CanShutdown(); | 117 virtual bool CanShutdown(); |
118 virtual void OnChildDied(); | 118 virtual void OnChildDied(); |
119 virtual void OnProcessCrashed(); | 119 virtual void OnProcessCrashed(int exit_code); |
120 | 120 |
121 bool CanLaunchGpuProcess() const; | 121 bool CanLaunchGpuProcess() const; |
122 bool LaunchGpuProcess(); | 122 bool LaunchGpuProcess(); |
123 | 123 |
124 bool LoadGpuBlacklist(); | 124 bool LoadGpuBlacklist(); |
125 | 125 |
126 bool initialized_; | 126 bool initialized_; |
127 bool initialized_successfully_; | 127 bool initialized_successfully_; |
128 | 128 |
129 scoped_ptr<GpuBlacklist> gpu_blacklist_; | 129 scoped_ptr<GpuBlacklist> gpu_blacklist_; |
130 | 130 |
131 // These are the channel requests that we have already sent to | 131 // These are the channel requests that we have already sent to |
132 // the GPU process, but haven't heard back about yet. | 132 // the GPU process, but haven't heard back about yet. |
133 std::queue<ChannelRequest> sent_requests_; | 133 std::queue<ChannelRequest> sent_requests_; |
134 | 134 |
135 // The pending synchronization requests we need to reply to. | 135 // The pending synchronization requests we need to reply to. |
136 std::queue<SynchronizationRequest> queued_synchronization_replies_; | 136 std::queue<SynchronizationRequest> queued_synchronization_replies_; |
137 | 137 |
138 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 138 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
139 }; | 139 }; |
140 | 140 |
141 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 141 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
OLD | NEW |