| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_DIALOG_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_DIALOG_CONTROLLER_H_ |
| 7 |
| 8 #include "base/memory/singleton.h" |
| 9 #include "content/public/browser/browser_context.h" |
| 10 |
| 11 // Manages MD Feedback dialog creation, destruction, and showing a constrained |
| 12 // web dialog with the feedback contents. This controller is implemented as a |
| 13 // singleton. |
| 14 class MdFeedbackDialogController { |
| 15 public: |
| 16 static MdFeedbackDialogController* GetInstance(); |
| 17 |
| 18 // Show the feedback dialog. This WebUI dialog is not anchored to the browser |
| 19 // window but tied to a profile. |
| 20 void Show(content::BrowserContext* browser_context); |
| 21 |
| 22 private: |
| 23 friend struct base::DefaultSingletonTraits<MdFeedbackDialogController>; |
| 24 |
| 25 MdFeedbackDialogController(); |
| 26 ~MdFeedbackDialogController() = default; |
| 27 |
| 28 DISALLOW_COPY_AND_ASSIGN(MdFeedbackDialogController); |
| 29 }; |
| 30 |
| 31 #endif // CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_DIALOG_CONTROLLER_H_ |
| OLD | NEW |