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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Sends the response for synchronization request to the renderer. | 98 // Sends the response for synchronization request to the renderer. |
99 void SendSynchronizationReply(IPC::Message* reply, | 99 void SendSynchronizationReply(IPC::Message* reply, |
100 ResourceMessageFilter* filter); | 100 ResourceMessageFilter* filter); |
101 | 101 |
102 // ResourceDispatcherHost::Receiver implementation: | 102 // ResourceDispatcherHost::Receiver implementation: |
103 virtual URLRequestContext* GetRequestContext( | 103 virtual URLRequestContext* GetRequestContext( |
104 uint32 request_id, | 104 uint32 request_id, |
105 const ViewHostMsg_Resource_Request& request_data); | 105 const ViewHostMsg_Resource_Request& request_data); |
106 | 106 |
107 virtual bool CanShutdown(); | 107 virtual bool CanShutdown(); |
108 virtual void OnProcessCrashed(); | 108 virtual void OnProcessCrashed(int exit_code); |
109 | 109 |
110 bool initialized_; | 110 bool initialized_; |
111 bool initialized_successfully_; | 111 bool initialized_successfully_; |
112 | 112 |
113 // These are the channel requests that we have already sent to | 113 // These are the channel requests that we have already sent to |
114 // the GPU process, but haven't heard back about yet. | 114 // the GPU process, but haven't heard back about yet. |
115 std::queue<ChannelRequest> sent_requests_; | 115 std::queue<ChannelRequest> sent_requests_; |
116 | 116 |
117 // The pending synchronization requests we need to reply to. | 117 // The pending synchronization requests we need to reply to. |
118 std::queue<SynchronizationRequest> queued_synchronization_replies_; | 118 std::queue<SynchronizationRequest> queued_synchronization_replies_; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); | 120 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); |
121 }; | 121 }; |
122 | 122 |
123 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ | 123 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ |
OLD | NEW |