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_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_UI_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "content/public/browser/web_ui_controller.h" | 10 #include "content/public/browser/web_ui_controller.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 class BrowserContext; | 13 class BrowserContext; |
14 } // namespace content | 14 } // namespace content |
15 | 15 |
16 class MdFeedbackWebUIMessageHandler; | |
17 | |
18 // The WebUI for chrome://feedback. | 16 // The WebUI for chrome://feedback. |
19 class MdFeedbackUI : public content::WebUIController { | 17 class MdFeedbackUI : public content::WebUIController { |
20 public: | 18 public: |
21 explicit MdFeedbackUI(content::WebUI* web_ui); | 19 explicit MdFeedbackUI(content::WebUI* web_ui); |
22 ~MdFeedbackUI() override; | 20 ~MdFeedbackUI() override; |
23 | 21 |
24 Profile* profile() { return profile_; } | 22 Profile* profile() { return profile_; } |
25 | 23 |
26 private: | 24 private: |
27 Profile* profile_; | 25 Profile* profile_; |
28 | 26 |
29 DISALLOW_COPY_AND_ASSIGN(MdFeedbackUI); | 27 DISALLOW_COPY_AND_ASSIGN(MdFeedbackUI); |
30 }; | 28 }; |
31 | 29 |
32 // Create and show a web dialog with the MD feedback UI. | 30 // Create and show a web dialog with the MD feedback UI. |
33 // |browser_context| Is used to constructed the HTML dialog's WebContents. | 31 // |browser_context| Is used to constructed the HTML dialog's WebContents. |
34 void ShowFeedbackWebDialog( | 32 void ShowFeedbackWebDialog( |
35 content::BrowserContext* browser_context); | 33 content::BrowserContext* browser_context); |
36 | 34 |
37 #endif // CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_UI_H_ | 35 #endif // CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_UI_H_ |
OLD | NEW |