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

Unified Diff: chrome/browser/image_decoder.h

Issue 1071453002: Fail all started requests if the utility process crashes or fails to start. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@racy-image-decoder
Patch Set: Maybe fix windows. Created 5 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/image_decoder.cc » ('j') | chrome/browser/image_decoder_browsertest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/image_decoder.h
diff --git a/chrome/browser/image_decoder.h b/chrome/browser/image_decoder.h
index ca7604350e97ea63b229a339666faa49bd1a6002..831512329920dce410fadd7de563240b0da2a938 100644
--- a/chrome/browser/image_decoder.h
+++ b/chrome/browser/image_decoder.h
@@ -117,7 +117,12 @@ class ImageDecoder : public content::UtilityProcessHostClient {
// |kBatchModeTimeoutSeconds|.
void StopBatchMode();
+ // Fails all outstanding requests.
+ void FailAllRequests();
+
// Overidden from UtilityProcessHostClient.
+ void OnProcessCrashed(int exit_code) override;
+ void OnProcessLaunchFailed() override;
bool OnMessageReceived(const IPC::Message& message) override;
// IPC message handlers.
« no previous file with comments | « no previous file | chrome/browser/image_decoder.cc » ('j') | chrome/browser/image_decoder_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698