chromium/components/safe_browsing/core/common/safebrowsing_constants.h

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_SAFE_BROWSING_CORE_COMMON_SAFEBROWSING_CONSTANTS_H_
#define COMPONENTS_SAFE_BROWSING_CORE_COMMON_SAFEBROWSING_CONSTANTS_H_

#include <string>

#include "base/files/file_path.h"

namespace safe_browsing {

extern const base::FilePath::CharType kSafeBrowsingBaseFilename[];

// Filename suffix for the cookie database.
extern const base::FilePath::CharType kCookiesFile[];

// When a network::mojom::URLLoader is cancelled because of SafeBrowsing, this
// custom cancellation reason could be used to notify the implementation side.
// Please see network::mojom::URLLoader::kClientDisconnectReason for more
// details.
extern const char kCustomCancelReasonForURLLoader[];

// error_code to use when Safe Browsing blocks a request.
extern const int kNetErrorCodeForSafeBrowsing;

// The name of the histogram that records whether Safe Browsing is enabled.
extern const char kSafeBrowsingEnabledHistogramName[];

// Command-line flag for caching an artificial PhishGuard unsafe verdict.
extern const char kArtificialCachedPhishGuardVerdictFlag[];

// Command-line flag for caching an artificial unsafe verdict for hash-prefix
// real-time lookups.
extern const char kArtificialCachedHashPrefixRealTimeVerdictFlag[];

// Countries that has no endpoint for Safe Browsing.
const std::vector<std::string> GetExcludedCountries();

// These values are persisted to logs. Entries should not be renumbered and
// numeric values should never be reused.
enum class CredentialPhishedStatus {};

// Product Specific (String) Data field name for the URL that triggered the
// warning.
extern const char kFlaggedUrl[];

// Product Specific (String) Data field name for the main frame URL.
extern const char kMainFrameUrl[];

// Product Specific (String) Data field name for the referrer URL.
extern const char kReferrerUrl[];

// Product Specific (String) Data field name for user activity.
extern const char kUserActivityWithUrls[];

}  // namespace safe_browsing

#endif  // COMPONENTS_SAFE_BROWSING_CORE_COMMON_SAFEBROWSING_CONSTANTS_H_