OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_ABOUT_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_ABOUT_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_ABOUT_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_ABOUT_UI_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 private: | 36 private: |
37 virtual ~AboutUIHTMLSource(); | 37 virtual ~AboutUIHTMLSource(); |
38 | 38 |
39 Profile* profile_; | 39 Profile* profile_; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(AboutUIHTMLSource); | 41 DISALLOW_COPY_AND_ASSIGN(AboutUIHTMLSource); |
42 }; | 42 }; |
43 | 43 |
44 class AboutUI : public content::WebUIController { | 44 class AboutUI : public content::WebUIController { |
45 public: | 45 public: |
46 explicit AboutUI(content::WebUI* web_ui, const std::string& host); | 46 AboutUI(content::WebUI* web_ui, const std::string& host); |
47 virtual ~AboutUI() {} | 47 virtual ~AboutUI() {} |
48 | 48 |
49 private: | 49 private: |
50 DISALLOW_COPY_AND_ASSIGN(AboutUI); | 50 DISALLOW_COPY_AND_ASSIGN(AboutUI); |
51 }; | 51 }; |
52 | 52 |
53 namespace about_ui { | 53 namespace about_ui { |
54 | 54 |
55 // Helper functions | 55 // Helper functions |
56 void AppendHeader(std::string* output, int refresh, | 56 void AppendHeader(std::string* output, int refresh, |
57 const std::string& unescaped_title); | 57 const std::string& unescaped_title); |
58 void AppendBody(std::string *output); | 58 void AppendBody(std::string *output); |
59 void AppendFooter(std::string *output); | 59 void AppendFooter(std::string *output); |
60 | 60 |
61 } // namespace about_ui | 61 } // namespace about_ui |
62 | 62 |
63 #endif // CHROME_BROWSER_UI_WEBUI_ABOUT_UI_H_ | 63 #endif // CHROME_BROWSER_UI_WEBUI_ABOUT_UI_H_ |
OLD | NEW |