| 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" |
| 11 #include "chrome/browser/ui/host_desktop.h" | 11 #include "chrome/browser/ui/host_desktop.h" |
| 12 #include "chrome/common/content_settings_types.h" | 12 #include "chrome/common/content_settings_types.h" |
| 13 #include "url/gurl.h" |
| 13 | 14 |
| 14 class Browser; | 15 class Browser; |
| 15 class GURL; | |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 class WebContents; | 18 class WebContents; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace chrome { | 21 namespace chrome { |
| 22 | 22 |
| 23 // Sources of requests to show the help tab. | 23 // Sources of requests to show the help tab. |
| 24 enum HelpSource { | 24 enum HelpSource { |
| 25 // Keyboard accelerators. | 25 // Keyboard accelerators. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 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 | 56 |
| 57 // Various things that open in a settings UI. | 57 // Various things that open in a settings UI. |
| 58 GURL GetSettingsUrl(const std::string& sub_page); |
| 58 void ShowSettings(Browser* browser); | 59 void ShowSettings(Browser* browser); |
| 59 void ShowSettingsSubPage(Browser* browser, const std::string& sub_page); | 60 void ShowSettingsSubPage(Browser* browser, const std::string& sub_page); |
| 61 void ShowSettingsSubPageForProfile(Profile* profile, |
| 62 const std::string& sub_page); |
| 60 void ShowContentSettings(Browser* browser, | 63 void ShowContentSettings(Browser* browser, |
| 61 ContentSettingsType content_settings_type); | 64 ContentSettingsType content_settings_type); |
| 65 void ShowSettingsSubPageInTabbedBrowser(Browser* browser, |
| 66 const std::string& sub_page); |
| 62 void ShowClearBrowsingDataDialog(Browser* browser); | 67 void ShowClearBrowsingDataDialog(Browser* browser); |
| 63 void ShowPasswordManager(Browser* browser); | 68 void ShowPasswordManager(Browser* browser); |
| 64 void ShowImportDialog(Browser* browser); | 69 void ShowImportDialog(Browser* browser); |
| 65 void ShowAboutChrome(Browser* browser); | 70 void ShowAboutChrome(Browser* browser); |
| 66 void ShowSearchEngineSettings(Browser* browser); | 71 void ShowSearchEngineSettings(Browser* browser); |
| 67 // If the user is already signed in, shows the "Signin" portion of Settings, | 72 // If the user is already signed in, shows the "Signin" portion of Settings, |
| 68 // otherwise initiates signin. | 73 // otherwise initiates signin. |
| 69 void ShowBrowserSignin(Browser* browser, signin::Source source); | 74 void ShowBrowserSignin(Browser* browser, signin::Source source); |
| 70 | 75 |
| 71 } // namespace chrome | 76 } // namespace chrome |
| 72 | 77 |
| 73 #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_ | 78 #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_ |
| OLD | NEW |