| // Copyright 2013 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "components/safe_browsing/core/common/web_ui_constants.h" |
| |
| namespace safe_browsing { |
| |
| const char kChromeUISafeBrowsingURL[] = "chrome://safe-browsing/"; |
| const char kChromeUISafeBrowsingHost[] = "safe-browsing"; |
| const char kChromeUISafeBrowsingMatchBillingUrl[] = |
| "chrome://safe-browsing/match?type=billing"; |
| const char kChromeUISafeBrowsingMatchMalwareUrl[] = |
| "chrome://safe-browsing/match?type=malware"; |
| const char kChromeUISafeBrowsingMatchPhishingUrl[] = |
| "chrome://safe-browsing/match?type=phishing"; |
| const char kChromeUISafeBrowsingMatchUnwantedUrl[] = |
| "chrome://safe-browsing/match?type=unwanted"; |
| |
| bool IsSafeBrowsingWebUIUrl(const GURL& url) { |
| return url == kChromeUISafeBrowsingMatchMalwareUrl || |
| url == kChromeUISafeBrowsingMatchPhishingUrl || |
| url == kChromeUISafeBrowsingMatchBillingUrl || |
| url == kChromeUISafeBrowsingMatchUnwantedUrl; |
| } |
| |
| } // namespace safe_browsing |