Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 NET_BASE_DAFSA_LOOKUP_STRING_H_ | |
| 6 #define NET_BASE_DAFSA_LOOKUP_STRING_H_ | |
| 7 | |
| 8 #include <stddef.h> | |
| 9 | |
| 10 #include "net/base/net_export.h" | |
| 11 | |
| 12 namespace net { | |
| 13 | |
| 14 const int kDafsaNotFound = -1; | |
| 15 const int kDafsaExceptionRule = 1; | |
| 16 const int kDafsaWildcardRule = 2; | |
| 17 const int kDafsaPrivateRule = 4; | |
| 18 | |
| 19 // Lookup a domain key in a byte array |graph| generated by make_dafsa.py. The | |
|
eroman
2015/11/06 23:35:50
As a standalone function this needs a lot more con
Adam Rice
2015/11/09 11:01:21
I have expanded on the comment to hopefully make i
| |
| 20 // rule type is returned if |key| is found, otherwise kDafsaNotFound is | |
| 21 // returned. | |
| 22 int NET_EXPORT_PRIVATE LookupStringInDafsa(const unsigned char* graph, | |
|
eroman
2015/11/06 23:35:50
why NET_EXPORT_PRIVATE and not NET_EXPORT?
Adam Rice
2015/11/09 11:01:21
I was just being conservative. Changed.
| |
| 23 size_t length, | |
| 24 const char* key, | |
| 25 size_t key_length); | |
| 26 | |
| 27 } // namespace net | |
| 28 | |
| 29 #endif // NET_BASE_DAFSA_LOOKUP_STRING_H_ | |
| OLD | NEW |