blob: af913893958327dc70cdb5dc3b5bfd975eeeffb1 [file] [log] [blame]
[email protected]51bcc5d2013-04-24 01:41:371// Copyright 2013 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.
[email protected]e7bba5f82013-04-10 20:10:524
[email protected]318076b2013-04-18 21:19:455#ifndef URL_URL_UTIL_INTERNAL_H_
6#define URL_URL_UTIL_INTERNAL_H_
[email protected]e7bba5f82013-04-10 20:10:527
8#include <string>
9
[email protected]516f0182013-06-11 22:51:5610#include "base/strings/string16.h"
[email protected]318076b2013-04-18 21:19:4511#include "url/url_parse.h"
[email protected]e7bba5f82013-04-10 20:10:5212
13namespace url_util {
14
15extern const char kFileScheme[];
16extern const char kFileSystemScheme[];
17extern const char kMailtoScheme[];
18
19// Given a string and a range inside the string, compares it to the given
20// lower-case |compare_to| buffer.
21bool CompareSchemeComponent(const char* spec,
22 const url_parse::Component& component,
23 const char* compare_to);
[email protected]3774f832013-06-11 21:21:5724bool CompareSchemeComponent(const base::char16* spec,
[email protected]e7bba5f82013-04-10 20:10:5225 const url_parse::Component& component,
26 const char* compare_to);
27
28} // namespace url_util
29
[email protected]318076b2013-04-18 21:19:4530#endif // URL_URL_UTIL_INTERNAL_H_