Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: chrome/browser/ui/chrome_pages.h

Issue 595213005: Eliminate chrome::IsTrustedWindowWithScheme (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Constructs a settings GURL for the specified |sub_page|. 57 // Constructs a settings GURL for the specified |sub_page|.
58 GURL GetSettingsUrl(const std::string& sub_page); 58 GURL GetSettingsUrl(const std::string& sub_page);
59 59
60 // 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 bool IsTrustedPopupWindowWithScheme(const Browser* browser,
63 const std::string& scheme);
64
65 // Various things that open in a settings UI. 60 // Various things that open in a settings UI.
66 void ShowSettings(Browser* browser); 61 void ShowSettings(Browser* browser);
67 void ShowSettingsSubPage(Browser* browser, const std::string& sub_page); 62 void ShowSettingsSubPage(Browser* browser, const std::string& sub_page);
68 void ShowSettingsSubPageForProfile(Profile* profile, 63 void ShowSettingsSubPageForProfile(Profile* profile,
69 const std::string& sub_page); 64 const std::string& sub_page);
70 void ShowContentSettings(Browser* browser, 65 void ShowContentSettings(Browser* browser,
71 ContentSettingsType content_settings_type); 66 ContentSettingsType content_settings_type);
72 void ShowSettingsSubPageInTabbedBrowser(Browser* browser, 67 void ShowSettingsSubPageInTabbedBrowser(Browser* browser,
73 const std::string& sub_page); 68 const std::string& sub_page);
74 void ShowClearBrowsingDataDialog(Browser* browser); 69 void ShowClearBrowsingDataDialog(Browser* browser);
75 void ShowPasswordManager(Browser* browser); 70 void ShowPasswordManager(Browser* browser);
76 void ShowImportDialog(Browser* browser); 71 void ShowImportDialog(Browser* browser);
77 void ShowAboutChrome(Browser* browser); 72 void ShowAboutChrome(Browser* browser);
78 void ShowSearchEngineSettings(Browser* browser); 73 void ShowSearchEngineSettings(Browser* browser);
79 // If the user is already signed in, shows the "Signin" portion of Settings, 74 // If the user is already signed in, shows the "Signin" portion of Settings,
80 // otherwise initiates signin. 75 // otherwise initiates signin.
81 void ShowBrowserSignin(Browser* browser, signin::Source source); 76 void ShowBrowserSignin(Browser* browser, signin::Source source);
82 77
83 } // namespace chrome 78 } // namespace chrome
84 79
85 #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_ 80 #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698