OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | |
8 #include "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h" | 9 #include "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h" |
9 #include "mojo/public/cpp/bindings/binding.h" | 10 #include "mojo/public/cpp/bindings/binding.h" |
10 | 11 |
11 namespace safe_browsing { | 12 namespace safe_browsing { |
12 | 13 |
13 // Implementation of the ChromePrompt Mojo interface. | 14 // Implementation of the ChromePrompt Mojo interface. |
14 class ChromePromptImpl : public chrome_cleaner::mojom::ChromePrompt { | 15 class ChromePromptImpl : public chrome_cleaner::mojom::ChromePrompt { |
15 public: | 16 public: |
16 explicit ChromePromptImpl(chrome_cleaner::mojom::ChromePromptRequest request); | 17 explicit ChromePromptImpl(chrome_cleaner::mojom::ChromePromptRequest request, |
grt (UTC plus 2)
2017/04/25 07:06:40
remove "explicit" since there are two args now
ftirelo
2017/04/25 22:24:05
Done.
| |
18 base::Closure on_connection_closed); | |
grt (UTC plus 2)
2017/04/25 07:06:39
#include "base/callback.h"
ftirelo
2017/04/25 22:24:05
Included "base/callback_forward.h" instead that de
grt (UTC plus 2)
2017/04/26 08:46:46
That would be sufficient if the Closure were being
ftirelo
2017/04/26 14:14:15
Done.
| |
17 ~ChromePromptImpl() override; | 19 ~ChromePromptImpl() override; |
18 | 20 |
19 void PromptUser( | 21 void PromptUser( |
20 std::vector<chrome_cleaner::mojom::UwSPtr> removable_uws_found, | 22 std::vector<chrome_cleaner::mojom::UwSPtr> removable_uws_found, |
21 chrome_cleaner::mojom::ElevationStatus elevation_status, | 23 chrome_cleaner::mojom::ElevationStatus elevation_status, |
22 const chrome_cleaner::mojom::ChromePrompt::PromptUserCallback& callback) | 24 const chrome_cleaner::mojom::ChromePrompt::PromptUserCallback& callback) |
23 override; | 25 override; |
24 | 26 |
25 private: | 27 private: |
26 mojo::Binding<chrome_cleaner::mojom::ChromePrompt> binding_; | 28 mojo::Binding<chrome_cleaner::mojom::ChromePrompt> binding_; |
29 | |
30 DISALLOW_COPY_AND_ASSIGN(ChromePromptImpl); | |
27 }; | 31 }; |
28 | 32 |
29 } // namespace safe_browsing | 33 } // namespace safe_browsing |
30 | 34 |
31 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_ | 35 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_ |
OLD | NEW |