| Index: net/base/dafsa/lookup_string.h
|
| diff --git a/net/base/dafsa/lookup_string.h b/net/base/dafsa/lookup_string.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c13e0ec9d9b4989508c06429108f3171b08f0222
|
| --- /dev/null
|
| +++ b/net/base/dafsa/lookup_string.h
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef NET_BASE_DAFSA_LOOKUP_STRING_H_
|
| +#define NET_BASE_DAFSA_LOOKUP_STRING_H_
|
| +
|
| +#include <stddef.h>
|
| +
|
| +namespace net {
|
| +
|
| +const int kNotFound = -1;
|
| +const int kExceptionRule = 1;
|
| +const int kWildcardRule = 2;
|
| +const int kPrivateRule = 4;
|
| +
|
| +// Lookup a domain key in a byte array generated by make_dafsa.py.
|
| +// The rule type is returned if key is found, otherwise kNotFound is returned.
|
| +int LookupString(const unsigned char* graph,
|
| + size_t length,
|
| + const char* key,
|
| + size_t key_length);
|
| +
|
| +} // namespace net
|
| +
|
| +#endif // NET_BASE_DAFSA_LOOKUP_STRING_H_
|
|
|