url_request_rewrite_rules_validation.h 665 B

1234567891011121314151617
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_URL_REWRITE_BROWSER_URL_REQUEST_REWRITE_RULES_VALIDATION_H_
  5. #define COMPONENTS_URL_REWRITE_BROWSER_URL_REQUEST_REWRITE_RULES_VALIDATION_H_
  6. #include "components/url_rewrite/common/url_request_rewrite_rules.h"
  7. namespace url_rewrite {
  8. // Returns true if |rules| have valid data in them, false otherwise.
  9. bool ValidateRules(const mojom::UrlRequestRewriteRules* rules);
  10. } // namespace url_rewrite
  11. #endif // COMPONENTS_URL_REWRITE_BROWSER_URL_REQUEST_REWRITE_RULES_VALIDATION_H_