url_util_internal.h revision 0529e5d033099cbfc42635f6f6183833b09dff6e
1// 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.
4
5#ifndef URL_URL_UTIL_INTERNAL_H_
6#define URL_URL_UTIL_INTERNAL_H_
7
8#include <string>
9
10#include "base/strings/string16.h"
11#include "url/url_parse.h"
12
13namespace url {
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 Component& component,
23                            const char* compare_to);
24bool CompareSchemeComponent(const base::char16* spec,
25                            const Component& component,
26                            const char* compare_to);
27
28}  // namespace url
29
30#endif  // URL_URL_UTIL_INTERNAL_H_
31