| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // |browser| should be NULL if there are no currently open browser windows. | 50 // |browser| should be NULL if there are no currently open browser windows. |
| 51 void ShowFeedbackPage(Browser* browser, | 51 void ShowFeedbackPage(Browser* browser, |
| 52 const std::string& description_template, | 52 const std::string& description_template, |
| 53 const std::string& category_tag); | 53 const std::string& category_tag); |
| 54 | 54 |
| 55 void ShowHelp(Browser* browser, HelpSource source); | 55 void ShowHelp(Browser* browser, HelpSource source); |
| 56 void ShowHelpForProfile(Profile* profile, HelpSource source); | 56 void ShowHelpForProfile(Profile* profile, HelpSource source); |
| 57 void ShowPolicy(Browser* browser); | 57 void ShowPolicy(Browser* browser); |
| 58 void ShowSlow(Browser* browser); | 58 void ShowSlow(Browser* browser); |
| 59 | 59 |
| 60 // For the transition to Material Design settings, Chrome needs to temporarily |
| 61 // support two different settings pages - "legacy" and "MD Settings". Depending |
| 62 // on a feature flag, chrome://settings will point to one of them, while the |
| 63 // other one is reachable via chrome://legacy-settings and chrome://md-settings, |
| 64 // respectively. |
| 65 std::string GetLegacySettingsHost(); |
| 66 std::string GetMdSettingsHost(); |
| 67 |
| 60 // Constructs a settings GURL for the specified |sub_page|. | 68 // Constructs a settings GURL for the specified |sub_page|. |
| 61 GURL GetSettingsUrl(const std::string& sub_page); | 69 GURL GetSettingsUrl(const std::string& sub_page); |
| 62 | 70 |
| 63 // Returns true if |url| is the URL for the settings subpage |sub_page|. | 71 // Returns true if |url| is the URL for the settings subpage |sub_page|. |
| 64 bool IsSettingsSubPage(const GURL& url, const std::string& sub_page); | 72 bool IsSettingsSubPage(const GURL& url, const std::string& sub_page); |
| 65 | 73 |
| 66 // Returns true if |browser| is a trusted popup window containing a page with | 74 // Returns true if |browser| is a trusted popup window containing a page with |
| 67 // matching |scheme| (or any trusted popup if |scheme| is empty). | 75 // matching |scheme| (or any trusted popup if |scheme| is empty). |
| 68 bool IsTrustedPopupWindowWithScheme(const Browser* browser, | 76 bool IsTrustedPopupWindowWithScheme(const Browser* browser, |
| 69 const std::string& scheme); | 77 const std::string& scheme); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 96 | 104 |
| 97 // If the user is already signed in, shows the "Signin" portion of Settings, | 105 // If the user is already signed in, shows the "Signin" portion of Settings, |
| 98 // otherwise initiates signin in a new browser tab. | 106 // otherwise initiates signin in a new browser tab. |
| 99 void ShowBrowserSigninOrSettings(Browser* browser, | 107 void ShowBrowserSigninOrSettings(Browser* browser, |
| 100 signin_metrics::AccessPoint access_point); | 108 signin_metrics::AccessPoint access_point); |
| 101 #endif | 109 #endif |
| 102 | 110 |
| 103 } // namespace chrome | 111 } // namespace chrome |
| 104 | 112 |
| 105 #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_ | 113 #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_ |
| OLD | NEW |