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

#ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
#define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_

#include <string_view>

class GURL;

// The ProfileIOData is slated for deletion. It currently only contains two
// static methods.
class ProfileIOData {
 public:
  ProfileIOData() = delete;

  ProfileIOData(const ProfileIOData&) = delete;
  ProfileIOData& operator=(const ProfileIOData&) = delete;

  ~ProfileIOData() = delete;

  // Returns true if |scheme| is handled in Chrome, or by default handlers in
  // net::URLRequest.
  static bool IsHandledProtocol(std::string_view scheme);

  // Returns true if |url| is handled in Chrome, or by default handlers in
  // net::URLRequest.
  static bool IsHandledURL(const GURL& url);
};

#endif  // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
