blob: fe9c668b74ddd3dec69c8a3f9b73ca2662c7843f [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_UTILS_H_
#define CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_UTILS_H_
#include <string>
#include "build/build_config.h"
#include "ui/base/resource/resource_scale_factor.h"
class GURL;
class PrefService;
namespace base {
class RefCountedMemory;
}
namespace content {
class WebContents;
}
// Chrome settings utility methods.
namespace settings_utils {
// Invoke UI for network proxy settings.
void ShowNetworkProxySettings(content::WebContents* web_contents);
// Invoke UI for SSL certificates.
void ShowManageSSLCertificates(content::WebContents* web_contents);
// Returns whether |url_string| is a valid startup page. |fixed_url| is set to
// the fixed up, valid URL if not null.
bool FixupAndValidateStartupPage(const std::string& url_string,
GURL* fixed_url);
base::RefCountedMemory* GetFaviconResourceBytes(
ui::ResourceScaleFactor scale_factor);
base::RefCountedMemory* GetPrivacySandboxFaviconResourceBytes(
ui::ResourceScaleFactor scale_factor);
#if BUILDFLAG(IS_MAC)
void ValidateSavedFonts(PrefService* prefs);
#endif
} // namespace settings_utils
#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_SETTINGS_UTILS_H_