Chromium Code Reviews| 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..a38e12b5e83b2db2a816a2baf41c5e9b38ad398a |
| --- /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 = default; |
| + |
| + void PromptUser( |
| + std::vector<chrome_cleaner::mojom::UwSPtr> removable_uws_found, |
| + bool elevation_required, |
|
robertshield
2017/04/07 02:04:58
maybe in a follow up CL, it would be nice if this
ftirelo
2017/04/07 14:57:04
Acknowledged.
|
| + 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_ |