#ifndef URL_GURL_DEBUG_H_
#define URL_GURL_DEBUG_H_
#include "base/component_export.h"
#include "base/debug/alias.h"
#include "base/debug/crash_logging.h"
#define DEBUG_ALIAS_FOR_GURL(var_name, url) \
DEBUG_ALIAS_FOR_CSTR(var_name, (url).possibly_invalid_spec().c_str(), 128)
class GURL;
namespace url::debug {
class COMPONENT_EXPORT(URL) ScopedUrlCrashKey {
public:
ScopedUrlCrashKey(base::debug::CrashKeyString* crash_key, const GURL& value);
~ScopedUrlCrashKey();
ScopedUrlCrashKey(const ScopedUrlCrashKey&) = delete;
ScopedUrlCrashKey& operator=(const ScopedUrlCrashKey&) = delete;
private:
base::debug::ScopedCrashKeyString scoped_string_value_;
};
}
#endif