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

Unified Diff: chrome/browser/safe_browsing/srt_chrome_prompt_impl.h

Issue 2834613003: Adds error handling support for the SwReporter launcher. (Closed)
Patch Set: Code review Created 3 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
Index: chrome/browser/safe_browsing/srt_chrome_prompt_impl.h
diff --git a/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h b/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h
index bf14b30ff80655a3d21a277e5e7072eeae42b919..3d8197d5af0db9646136686b220f7c96b6730721 100644
--- a/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h
+++ b/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_
#define CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_
+#include "base/macros.h"
#include "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
@@ -22,8 +23,18 @@ class ChromePromptImpl : public chrome_cleaner::mojom::ChromePrompt {
const chrome_cleaner::mojom::ChromePrompt::PromptUserCallback& callback)
override;
+ // Handles the case when the remote end has been closed, by performing the
+ // necessary cleanups if the prompt dialog is being shown to the user.
+ virtual void OnConnectionClosed();
+
+ // Handles the case when a mojo::ReportBadMessage has been explicitly
+ // reported.
+ virtual void OnConnectionError(const std::string& message);
+
private:
mojo::Binding<chrome_cleaner::mojom::ChromePrompt> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromePromptImpl);
};
} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698