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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/base_export.h" | 11 #include "base/base_export.h" |
12 #include "base/basictypes.h" | 12 #include "base/macros.h" |
13 #include "base/strings/string_piece.h" | 13 #include "base/strings/string_piece.h" |
14 | 14 |
15 namespace logging { | 15 namespace logging { |
16 | 16 |
17 // A helper class containing all the settings for vlogging. | 17 // A helper class containing all the settings for vlogging. |
18 class BASE_EXPORT VlogInfo { | 18 class BASE_EXPORT VlogInfo { |
19 public: | 19 public: |
20 static const int kDefaultVlogLevel; | 20 static const int kDefaultVlogLevel; |
21 | 21 |
22 // |v_switch| gives the default maximal active V-logging level; 0 is | 22 // |v_switch| gives the default maximal active V-logging level; 0 is |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // "kh?n" matches "khan" but not "khn" or "khaan" | 68 // "kh?n" matches "khan" but not "khn" or "khaan" |
69 // "kh*n" matches "khn", "khan", or even "khaaaaan" | 69 // "kh*n" matches "khn", "khan", or even "khaaaaan" |
70 // "/foo\bar" matches "/foo/bar", "\foo\bar", or "/foo\bar" | 70 // "/foo\bar" matches "/foo/bar", "\foo\bar", or "/foo\bar" |
71 // (disregarding C escaping rules) | 71 // (disregarding C escaping rules) |
72 BASE_EXPORT bool MatchVlogPattern(const base::StringPiece& string, | 72 BASE_EXPORT bool MatchVlogPattern(const base::StringPiece& string, |
73 const base::StringPiece& vlog_pattern); | 73 const base::StringPiece& vlog_pattern); |
74 | 74 |
75 } // namespace logging | 75 } // namespace logging |
76 | 76 |
77 #endif // BASE_VLOG_H_ | 77 #endif // BASE_VLOG_H_ |
OLD | NEW |