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 #include "chrome/browser/gpu_process_host.h" | 5 #include "chrome/browser/gpu_process_host.h" |
6 | 6 |
7 #include "app/app_switches.h" | 7 #include "app/app_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/thread.h" | 9 #include "base/thread.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 URLRequestContext* GpuProcessHost::GetRequestContext( | 372 URLRequestContext* GpuProcessHost::GetRequestContext( |
373 uint32 request_id, | 373 uint32 request_id, |
374 const ViewHostMsg_Resource_Request& request_data) { | 374 const ViewHostMsg_Resource_Request& request_data) { |
375 return NULL; | 375 return NULL; |
376 } | 376 } |
377 | 377 |
378 bool GpuProcessHost::CanShutdown() { | 378 bool GpuProcessHost::CanShutdown() { |
379 return true; | 379 return true; |
380 } | 380 } |
381 | 381 |
382 void GpuProcessHost::OnProcessCrashed() { | 382 void GpuProcessHost::OnProcessCrashed(int exit_code) { |
383 // TODO(alokp): Update gpu process crash rate. | 383 // TODO(alokp): Update gpu process crash rate. |
384 BrowserChildProcessHost::OnProcessCrashed(); | 384 BrowserChildProcessHost::OnProcessCrashed(exit_code); |
385 } | 385 } |
386 | |
OLD | NEW |