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

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

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
Index: chrome/browser/safe_browsing/srt_chrome_prompt_impl.cc
diff --git a/chrome/browser/safe_browsing/srt_chrome_prompt_impl.cc b/chrome/browser/safe_browsing/srt_chrome_prompt_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4e60db0b70fd6f4cdee458574136179f821134a1
--- /dev/null
+++ b/chrome/browser/safe_browsing/srt_chrome_prompt_impl.cc
@@ -0,0 +1,30 @@
+// 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.
+
+#include "chrome/browser/safe_browsing/srt_chrome_prompt_impl.h"
+
+#include "base/logging.h"
+
+namespace safe_browsing {
+
+using chrome_cleaner::mojom::ChromePrompt;
+using chrome_cleaner::mojom::ChromePromptRequest;
+using chrome_cleaner::mojom::PromptAcceptance;
+using chrome_cleaner::mojom::UwSPtr;
+
+ChromePromptImpl::ChromePromptImpl(ChromePromptRequest request)
+ : binding_(this, std::move(request)) {}
+
+ChromePromptImpl::~ChromePromptImpl() {}
+
+void ChromePromptImpl::PromptUser(
+ std::vector<UwSPtr> removable_uws_found,
+ bool elevation_required,
+ const ChromePrompt::PromptUserCallback& callback) {
+ // Placeholder. The actual implementation will show the prompt dialog to the
+ // user and invoke this callback depending on the user's response.
+ callback.Run(PromptAcceptance::DENIED);
+}
+
+} // namespace safe_browsing
« no previous file with comments | « chrome/browser/safe_browsing/srt_chrome_prompt_impl.h ('k') | chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698