Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: net/base/dafsa/lookup_string.h

Issue 1303973009: [DO NOT COMMIT] Re-use the dafsa code for s-w-r histograms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Apply changes by tyoshino. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 namespace net {
11
12 const int kNotFound = -1;
13 const int kExceptionRule = 1;
14 const int kWildcardRule = 2;
15 const int kPrivateRule = 4;
tyoshino (SeeGerritForStatus) 2015/10/30 06:29:59 Now these constants are moved out of the anonymous
Adam Rice 2015/11/02 13:53:54 I added "Dafsa" to each of the names. It's a bit u
16
17 // Lookup a domain key in a byte array |graph| generated by make_dafsa.py.
18 // The rule type is returned if |key| is found, otherwise kNotFound is returned.
19 int LookupStringInDafsa(const unsigned char* graph,
20 size_t length,
21 const char* key,
22 size_t key_length);
23
24 } // namespace net
25
26 #endif // NET_BASE_DAFSA_LOOKUP_STRING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698