OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_ | |
6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_ | |
7 | |
8 #include "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h" | |
9 #include "mojo/public/cpp/bindings/binding.h" | |
10 | |
11 namespace safe_browsing { | |
12 | |
13 // Implementation of the ChromePrompt Mojo interface. | |
14 class ChromePromptImpl : public chrome_cleaner::mojom::ChromePrompt { | |
15 public: | |
16 explicit ChromePromptImpl(chrome_cleaner::mojom::ChromePromptRequest request); | |
17 ~ChromePromptImpl() override = default; | |
Jialiu Lin
2017/04/10 17:32:54
[chromium-style] Complex destructor has an inline
Ken Rockot(use gerrit already)
2017/04/10 21:44:40
nit: (compiler caught this) You need to move this
ftirelo
2017/04/11 17:31:43
Done.
ftirelo
2017/04/11 17:31:43
Done.
| |
18 | |
19 void PromptUser( | |
20 std::vector<chrome_cleaner::mojom::UwSPtr> removable_uws_found, | |
21 bool elevation_required, | |
22 const chrome_cleaner::mojom::ChromePrompt::PromptUserCallback& callback) | |
23 override; | |
24 | |
25 private: | |
26 mojo::Binding<chrome_cleaner::mojom::ChromePrompt> binding_; | |
27 }; | |
28 | |
29 } // namespace safe_browsing | |
30 | |
31 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_ | |
OLD | NEW |