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

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: RefCounted subclasses can't have public destructors 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
« no previous file with comments | « chrome/browser/safe_browsing/DEPS ('k') | chrome/browser/safe_browsing/srt_chrome_prompt_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fbba20cd7844737553269c246133749454dfaa68
--- /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 "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h"
+#include "mojo/public/cpp/bindings/binding.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;
+
+ 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_
« no previous file with comments | « chrome/browser/safe_browsing/DEPS ('k') | chrome/browser/safe_browsing/srt_chrome_prompt_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698