OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef BASE_VLOG_H_ | 5 #ifndef BASE_VLOG_H_ |
6 #define BASE_VLOG_H_ | 6 #define BASE_VLOG_H_ |
7 | 7 |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/base_export.h" | 12 #include "base/base_export.h" |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/string_piece.h" | 14 #include "base/strings/string_piece.h" |
15 | 15 |
16 namespace logging { | 16 namespace logging { |
17 | 17 |
18 // A helper class containing all the settings for vlogging. | 18 // A helper class containing all the settings for vlogging. |
19 class BASE_EXPORT VlogInfo { | 19 class BASE_EXPORT VlogInfo { |
20 public: | 20 public: |
21 static const int kDefaultVlogLevel; | 21 static const int kDefaultVlogLevel; |
22 | 22 |
23 // |v_switch| gives the default maximal active V-logging level; 0 is | 23 // |v_switch| gives the default maximal active V-logging level; 0 is |
24 // the default. Normally positive values are used for V-logging | 24 // the default. Normally positive values are used for V-logging |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 // "kh?n" matches "khan" but not "khn" or "khaan" | 69 // "kh?n" matches "khan" but not "khn" or "khaan" |
70 // "kh*n" matches "khn", "khan", or even "khaaaaan" | 70 // "kh*n" matches "khn", "khan", or even "khaaaaan" |
71 // "/foo\bar" matches "/foo/bar", "\foo\bar", or "/foo\bar" | 71 // "/foo\bar" matches "/foo/bar", "\foo\bar", or "/foo\bar" |
72 // (disregarding C escaping rules) | 72 // (disregarding C escaping rules) |
73 BASE_EXPORT bool MatchVlogPattern(const base::StringPiece& string, | 73 BASE_EXPORT bool MatchVlogPattern(const base::StringPiece& string, |
74 const base::StringPiece& vlog_pattern); | 74 const base::StringPiece& vlog_pattern); |
75 | 75 |
76 } // namespace logging | 76 } // namespace logging |
77 | 77 |
78 #endif // BASE_VLOG_H_ | 78 #endif // BASE_VLOG_H_ |
OLD | NEW |