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

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

Issue 2780873002: Basic IPC communication between Chrome and the SW Reporter. (Closed)
Patch Set: Fixes compilation error Created 3 years, 9 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
new file mode 100644
index 0000000000000000000000000000000000000000..444f78d9f2e10660226ff24124e8aca05efa7b53
--- /dev/null
+++ b/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h
@@ -0,0 +1,31 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_
+#define CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_
+
+#include "mojo/public/cpp/bindings/binding.h"
+#include "third_party/pipa/src/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h"
+
+namespace safe_browsing {
+
+// Implementation of the ChromePrompt Mojo interface.
+class ChromePromptImpl : public chrome_cleaner::mojom::ChromePrompt {
+ public:
+ explicit ChromePromptImpl(chrome_cleaner::mojom::ChromePromptRequest request);
+ ~ChromePromptImpl() override = default;
+
+ void PromptUser(
+ std::vector<chrome_cleaner::mojom::UwSPtr> removable_uws_found,
+ bool elevation_required,
+ const chrome_cleaner::mojom::ChromePrompt::PromptUserCallback& callback)
+ override;
+
+ private:
+ mojo::Binding<chrome_cleaner::mojom::ChromePrompt> binding_;
+};
+
+} // namespace safe_browsing
+
+#endif // CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698