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 |