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

Side by Side Diff: base/vlog.h

Issue 6736019: Base: A few more files using BASE_API (for base.dll) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « base/tracked_objects.h ('k') | base/weak_ptr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include <cstddef> 9 #include <cstddef>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/base_api.h"
13 #include "base/basictypes.h" 14 #include "base/basictypes.h"
14 #include "base/string_piece.h" 15 #include "base/string_piece.h"
15 16
16 namespace logging { 17 namespace logging {
17 18
18 // A helper class containing all the settings for vlogging. 19 // A helper class containing all the settings for vlogging.
19 class VlogInfo { 20 class BASE_API VlogInfo {
20 public: 21 public:
21 static const int kDefaultVlogLevel; 22 static const int kDefaultVlogLevel;
22 23
23 // |v_switch| gives the default maximal active V-logging level; 0 is 24 // |v_switch| gives the default maximal active V-logging level; 0 is
24 // the default. Normally positive values are used for V-logging 25 // the default. Normally positive values are used for V-logging
25 // levels. 26 // levels.
26 // 27 //
27 // |vmodule_switch| gives the per-module maximal V-logging levels to 28 // |vmodule_switch| gives the per-module maximal V-logging levels to
28 // override the value given by |v_switch|. 29 // override the value given by |v_switch|.
29 // E.g. "my_module=2,foo*=3" would change the logging level for all 30 // E.g. "my_module=2,foo*=3" would change the logging level for all
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Returns true if the string passed in matches the vlog pattern. The 64 // Returns true if the string passed in matches the vlog pattern. The
64 // vlog pattern string can contain wildcards like * and ?. ? matches 65 // vlog pattern string can contain wildcards like * and ?. ? matches
65 // exactly one character while * matches 0 or more characters. Also, 66 // exactly one character while * matches 0 or more characters. Also,
66 // as a special case, a / or \ character matches either / or \. 67 // as a special case, a / or \ character matches either / or \.
67 // 68 //
68 // Examples: 69 // Examples:
69 // "kh?n" matches "khan" but not "khn" or "khaan" 70 // "kh?n" matches "khan" but not "khn" or "khaan"
70 // "kh*n" matches "khn", "khan", or even "khaaaaan" 71 // "kh*n" matches "khn", "khan", or even "khaaaaan"
71 // "/foo\bar" matches "/foo/bar", "\foo\bar", or "/foo\bar" 72 // "/foo\bar" matches "/foo/bar", "\foo\bar", or "/foo\bar"
72 // (disregarding C escaping rules) 73 // (disregarding C escaping rules)
73 bool MatchVlogPattern(const base::StringPiece& string, 74 BASE_API bool MatchVlogPattern(const base::StringPiece& string,
74 const base::StringPiece& vlog_pattern); 75 const base::StringPiece& vlog_pattern);
75 76
76 } // namespace logging 77 } // namespace logging
77 78
78 #endif // BASE_VLOG_H_ 79 #endif // BASE_VLOG_H_
OLDNEW
« no previous file with comments | « base/tracked_objects.h ('k') | base/weak_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698