| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CHROMEOS_LOGIN_UI_LOGIN_FEEDBACK_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_FEEDBACK_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_FEEDBACK_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_FEEDBACK_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/callback.h" | 11 #include "base/callback.h" |
| 11 #include "base/macros.h" | 12 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 | 14 |
| 15 class Profile; | 15 class Profile; |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 | 18 |
| 19 // Show the feedback UI to collect a feedback on the login screen. Note that | 19 // Show the feedback UI to collect a feedback on the login screen. Note that |
| 20 // it dynamically loads/unloads the feedback extension on the signin profile. | 20 // it dynamically loads/unloads the feedback extension on the signin profile. |
| 21 class LoginFeedback { | 21 class LoginFeedback { |
| 22 public: | 22 public: |
| (...skipping 14 matching lines...) Expand all Loading... |
| 37 // Invoked by FeedbackWindowHandler when all feedback windows are closed. | 37 // Invoked by FeedbackWindowHandler when all feedback windows are closed. |
| 38 void OnFeedbackFinished(); | 38 void OnFeedbackFinished(); |
| 39 | 39 |
| 40 // Ensures feedback UI is created. | 40 // Ensures feedback UI is created. |
| 41 void EnsureFeedbackUI(); | 41 void EnsureFeedbackUI(); |
| 42 | 42 |
| 43 Profile* const profile_; | 43 Profile* const profile_; |
| 44 std::string description_; | 44 std::string description_; |
| 45 base::Closure finished_callback_; | 45 base::Closure finished_callback_; |
| 46 | 46 |
| 47 scoped_ptr<FeedbackWindowHandler> feedback_window_handler_; | 47 std::unique_ptr<FeedbackWindowHandler> feedback_window_handler_; |
| 48 | 48 |
| 49 base::WeakPtrFactory<LoginFeedback> weak_factory_; | 49 base::WeakPtrFactory<LoginFeedback> weak_factory_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(LoginFeedback); | 51 DISALLOW_COPY_AND_ASSIGN(LoginFeedback); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace chromeos | 54 } // namespace chromeos |
| 55 | 55 |
| 56 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_FEEDBACK_H_ | 56 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_FEEDBACK_H_ |
| OLD | NEW |