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

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

Issue 2813253002: Replace elevation required bool with an enum. (Closed)
Patch Set: 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 unified diff | Download patch
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_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 "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h" 8 #include "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h"
9 #include "mojo/public/cpp/bindings/binding.h" 9 #include "mojo/public/cpp/bindings/binding.h"
10 10
11 namespace safe_browsing { 11 namespace safe_browsing {
12 12
13 // Implementation of the ChromePrompt Mojo interface. 13 // Implementation of the ChromePrompt Mojo interface.
14 class ChromePromptImpl : public chrome_cleaner::mojom::ChromePrompt { 14 class ChromePromptImpl : public chrome_cleaner::mojom::ChromePrompt {
15 public: 15 public:
16 explicit ChromePromptImpl(chrome_cleaner::mojom::ChromePromptRequest request); 16 explicit ChromePromptImpl(chrome_cleaner::mojom::ChromePromptRequest request);
17 ~ChromePromptImpl() override; 17 ~ChromePromptImpl() override;
18 18
19 void PromptUser( 19 void PromptUser(
20 std::vector<chrome_cleaner::mojom::UwSPtr> removable_uws_found, 20 std::vector<chrome_cleaner::mojom::UwSPtr> removable_uws_found,
21 bool elevation_required, 21 chrome_cleaner::mojom::ElevationStatus elevation_status,
22 const chrome_cleaner::mojom::ChromePrompt::PromptUserCallback& callback) 22 const chrome_cleaner::mojom::ChromePrompt::PromptUserCallback& callback)
23 override; 23 override;
24 24
25 private: 25 private:
26 mojo::Binding<chrome_cleaner::mojom::ChromePrompt> binding_; 26 mojo::Binding<chrome_cleaner::mojom::ChromePrompt> binding_;
27 }; 27 };
28 28
29 } // namespace safe_browsing 29 } // namespace safe_browsing
30 30
31 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_ 31 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_CHROME_PROMPT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698