OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROME_PAGES_H_ | 5 #ifndef CHROME_BROWSER_UI_CHROME_PAGES_H_ |
6 #define CHROME_BROWSER_UI_CHROME_PAGES_H_ | 6 #define CHROME_BROWSER_UI_CHROME_PAGES_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/signin/signin_promo.h" | 10 #include "chrome/browser/signin/signin_promo.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void ShowFeedbackPage(Browser* browser, | 46 void ShowFeedbackPage(Browser* browser, |
47 const std::string& description_template, | 47 const std::string& description_template, |
48 const std::string& category_tag); | 48 const std::string& category_tag); |
49 | 49 |
50 void ShowHelp(Browser* browser, HelpSource source); | 50 void ShowHelp(Browser* browser, HelpSource source); |
51 void ShowHelpForProfile(Profile* profile, | 51 void ShowHelpForProfile(Profile* profile, |
52 HostDesktopType host_desktop_type, | 52 HostDesktopType host_desktop_type, |
53 HelpSource source); | 53 HelpSource source); |
54 void ShowPolicy(Browser* browser); | 54 void ShowPolicy(Browser* browser); |
55 void ShowSlow(Browser* browser); | 55 void ShowSlow(Browser* browser); |
| 56 void ShowMemory(Browser* browser); |
56 | 57 |
57 // Constructs a settings GURL for the specified |sub_page|. | 58 // Constructs a settings GURL for the specified |sub_page|. |
58 GURL GetSettingsUrl(const std::string& sub_page); | 59 GURL GetSettingsUrl(const std::string& sub_page); |
59 | 60 |
60 // Returns true if |browser| is a trusted popup window containing a page with | 61 // Returns true if |browser| is a trusted popup window containing a page with |
61 // matching |scheme| (or any trusted popup if |scheme| is empty). | 62 // matching |scheme| (or any trusted popup if |scheme| is empty). |
62 bool IsTrustedPopupWindowWithScheme(const Browser* browser, | 63 bool IsTrustedPopupWindowWithScheme(const Browser* browser, |
63 const std::string& scheme); | 64 const std::string& scheme); |
64 | 65 |
65 // Various things that open in a settings UI. | 66 // Various things that open in a settings UI. |
(...skipping 10 matching lines...) Expand all Loading... |
76 void ShowImportDialog(Browser* browser); | 77 void ShowImportDialog(Browser* browser); |
77 void ShowAboutChrome(Browser* browser); | 78 void ShowAboutChrome(Browser* browser); |
78 void ShowSearchEngineSettings(Browser* browser); | 79 void ShowSearchEngineSettings(Browser* browser); |
79 // If the user is already signed in, shows the "Signin" portion of Settings, | 80 // If the user is already signed in, shows the "Signin" portion of Settings, |
80 // otherwise initiates signin. | 81 // otherwise initiates signin. |
81 void ShowBrowserSignin(Browser* browser, signin::Source source); | 82 void ShowBrowserSignin(Browser* browser, signin::Source source); |
82 | 83 |
83 } // namespace chrome | 84 } // namespace chrome |
84 | 85 |
85 #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_ | 86 #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_ |
OLD | NEW |