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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 void SendSynchronizationReply(IPC::Message* reply, | 108 void SendSynchronizationReply(IPC::Message* reply, |
109 ResourceMessageFilter* filter); | 109 ResourceMessageFilter* filter); |
110 | 110 |
111 // ResourceDispatcherHost::Receiver implementation: | 111 // ResourceDispatcherHost::Receiver implementation: |
112 virtual URLRequestContext* GetRequestContext( | 112 virtual URLRequestContext* GetRequestContext( |
113 uint32 request_id, | 113 uint32 request_id, |
114 const ViewHostMsg_Resource_Request& request_data); | 114 const ViewHostMsg_Resource_Request& request_data); |
115 | 115 |
116 virtual bool CanShutdown(); | 116 virtual bool CanShutdown(); |
117 virtual void OnChildDied(); | 117 virtual void OnChildDied(); |
118 virtual void OnProcessCrashed(); | 118 virtual void OnProcessCrashed(int exit_code); |
119 | 119 |
120 bool CanLaunchGpuProcess() const; | 120 bool CanLaunchGpuProcess() const; |
121 bool LaunchGpuProcess(); | 121 bool LaunchGpuProcess(); |
122 | 122 |
123 bool initialized_; | 123 bool initialized_; |
124 bool initialized_successfully_; | 124 bool initialized_successfully_; |
125 | 125 |
126 // These are the channel requests that we have already sent to | 126 // These are the channel requests that we have already sent to |
127 // the GPU process, but haven't heard back about yet. | 127 // the GPU process, but haven't heard back about yet. |
128 std::queue<ChannelRequest> sent_requests_; | 128 std::queue<ChannelRequest> sent_requests_; |
129 | 129 |
130 // The pending synchronization requests we need to reply to. | 130 // The pending synchronization requests we need to reply to. |
131 std::queue<SynchronizationRequest> queued_synchronization_replies_; | 131 std::queue<SynchronizationRequest> queued_synchronization_replies_; |
132 | 132 |
133 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 133 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
134 }; | 134 }; |
135 | 135 |
136 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 136 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
OLD | NEW |