Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(859)

Side by Side Diff: chrome/browser/gpu_process_host.h

Issue 5172009: This adds some plumbing for propagating the reason for a renderer's death (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698