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

Side by Side Diff: chrome/browser/ui/webui/settings_utils.h

Issue 1841083005: Options: disallow bad URLs from being entered as startup pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@startup-browser-proxy
Patch Set: dpapad@ review Created 4 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SETTINGS_UTILS_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_UTILS_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_UTILS_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_UTILS_H_
7 7
8 #include <string>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 11
12 class GURL;
13
10 namespace content { 14 namespace content {
11 class WebContents; 15 class WebContents;
12 } 16 }
13 17
14 namespace settings_utils { 18 namespace settings_utils {
15 19
16 // Invoke UI for network proxy settings. 20 // Invoke UI for network proxy settings.
17 void ShowNetworkProxySettings(content::WebContents* web_contents); 21 void ShowNetworkProxySettings(content::WebContents* web_contents);
18 22
19 // Invoke UI for SSL certificates. 23 // Invoke UI for SSL certificates.
20 void ShowManageSSLCertificates(content::WebContents* web_contents); 24 void ShowManageSSLCertificates(content::WebContents* web_contents);
21 25
26 // Returns whether |url_string| is a valid startup page. |fixed_url| is set to
27 // the fixed up, valid URL if not null.
28 bool FixupAndValidateStartupPage(const std::string& url_string,
29 GURL* fixed_url);
30
22 } // namespace settings_utils 31 } // namespace settings_utils
23 32
24 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_UTILS_H_ 33 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/startup_pages_handler.cc ('k') | chrome/browser/ui/webui/settings_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698