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

Side by Side Diff: chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.h

Issue 2867723002: Use OnceCallback on Mojo interfaces in //components/chrome_cleaner (Closed)
Patch Set: rebase. +#include. fix Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_CHROME_CLEANER_SRT_CHROME_PROMPT_IMPL_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_CHROME_PROMPT_IMPL_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_CHROME_PROMPT_IMPL_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_CHROME_PROMPT_IMPL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h" 10 #include "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h"
11 #include "mojo/public/cpp/bindings/binding.h" 11 #include "mojo/public/cpp/bindings/binding.h"
12 12
13 namespace safe_browsing { 13 namespace safe_browsing {
14 14
15 // Implementation of the ChromePrompt Mojo interface. 15 // Implementation of the ChromePrompt Mojo interface.
16 class ChromePromptImpl : public chrome_cleaner::mojom::ChromePrompt { 16 class ChromePromptImpl : public chrome_cleaner::mojom::ChromePrompt {
17 public: 17 public:
18 ChromePromptImpl(chrome_cleaner::mojom::ChromePromptRequest request, 18 ChromePromptImpl(chrome_cleaner::mojom::ChromePromptRequest request,
19 base::Closure on_connection_closed); 19 base::Closure on_connection_closed);
20 ~ChromePromptImpl() override; 20 ~ChromePromptImpl() override;
21 21
22 void PromptUser( 22 void PromptUser(
23 std::vector<chrome_cleaner::mojom::UwSPtr> removable_uws_found, 23 std::vector<chrome_cleaner::mojom::UwSPtr> removable_uws_found,
24 chrome_cleaner::mojom::ElevationStatus elevation_status, 24 chrome_cleaner::mojom::ElevationStatus elevation_status,
25 const chrome_cleaner::mojom::ChromePrompt::PromptUserCallback& callback) 25 chrome_cleaner::mojom::ChromePrompt::PromptUserCallback callback)
26 override; 26 override;
27 27
28 private: 28 private:
29 mojo::Binding<chrome_cleaner::mojom::ChromePrompt> binding_; 29 mojo::Binding<chrome_cleaner::mojom::ChromePrompt> binding_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(ChromePromptImpl); 31 DISALLOW_COPY_AND_ASSIGN(ChromePromptImpl);
32 }; 32 };
33 33
34 } // namespace safe_browsing 34 } // namespace safe_browsing
35 35
36 #endif // CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_CHROME_PROMPT_IMPL_H_ 36 #endif // CHROME_BROWSER_SAFE_BROWSING_CHROME_CLEANER_SRT_CHROME_PROMPT_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698