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

Side by Side Diff: remoting/host/it2me/it2me_confirmation_dialog.h

Issue 2310303002: Moving It2Me confirmation prompt into the Validation callback flow (Closed)
Patch Set: Addressing CR Feedback Created 4 years, 3 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 | remoting/host/it2me/it2me_confirmation_dialog_chromeos.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 REMOTING_HOST_IT2ME_IT2ME_CONFIRMATION_DIALOG_H_ 5 #ifndef REMOTING_HOST_IT2ME_IT2ME_CONFIRMATION_DIALOG_H_
6 #define REMOTING_HOST_IT2ME_IT2ME_CONFIRMATION_DIALOG_H_ 6 #define REMOTING_HOST_IT2ME_IT2ME_CONFIRMATION_DIALOG_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 12 matching lines...) Expand all
23 OK, 23 OK,
24 CANCEL 24 CANCEL
25 }; 25 };
26 26
27 typedef base::Callback<void(Result)> ResultCallback; 27 typedef base::Callback<void(Result)> ResultCallback;
28 28
29 virtual ~It2MeConfirmationDialog() {} 29 virtual ~It2MeConfirmationDialog() {}
30 30
31 // Shows the dialog. |callback| will be called with the user's selection. 31 // Shows the dialog. |callback| will be called with the user's selection.
32 // |callback| will not be called if the dialog is destroyed. 32 // |callback| will not be called if the dialog is destroyed.
33 virtual void Show(const ResultCallback& callback) = 0; 33 virtual void Show(const std::string& remote_user_email,
34 const ResultCallback& callback) = 0;
34 }; 35 };
35 36
36 // Used to create an platform specific instance of It2MeConfirmationDialog. 37 // Used to create an platform specific instance of It2MeConfirmationDialog.
37 class It2MeConfirmationDialogFactory { 38 class It2MeConfirmationDialogFactory {
38 public: 39 public:
39 It2MeConfirmationDialogFactory(); 40 It2MeConfirmationDialogFactory();
40 virtual ~It2MeConfirmationDialogFactory(); 41 virtual ~It2MeConfirmationDialogFactory();
41 42
42 virtual std::unique_ptr<It2MeConfirmationDialog> Create(); 43 virtual std::unique_ptr<It2MeConfirmationDialog> Create();
43 44
44 DISALLOW_COPY_AND_ASSIGN(It2MeConfirmationDialogFactory); 45 DISALLOW_COPY_AND_ASSIGN(It2MeConfirmationDialogFactory);
45 }; 46 };
46 47
47 } // namespace remoting 48 } // namespace remoting
48 49
49 #endif // REMOTING_HOST_IT2ME_IT2ME_CONFIRMATION_DIALOG_H_ 50 #endif // REMOTING_HOST_IT2ME_IT2ME_CONFIRMATION_DIALOG_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/it2me/it2me_confirmation_dialog_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698