| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "base/vlog.h" | 5 #include <stddef.h> |
| 6 #include <string> |
| 7 #include <utility> |
| 8 #include <vector> |
| 6 | 9 |
| 7 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 8 #include "base/logging.h" | 11 #include "base/logging.h" |
| 9 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
| 13 #include "base/string_piece.h" |
| 10 #include "base/string_split.h" | 14 #include "base/string_split.h" |
| 15 #include "base/vlog.h" |
| 11 | 16 |
| 12 namespace logging { | 17 namespace logging { |
| 13 | 18 |
| 14 const int VlogInfo::kDefaultVlogLevel = 0; | 19 const int VlogInfo::kDefaultVlogLevel = 0; |
| 15 | 20 |
| 16 struct VlogInfo::VmodulePattern { | 21 struct VlogInfo::VmodulePattern { |
| 17 enum MatchTarget { MATCH_MODULE, MATCH_FILE }; | 22 enum MatchTarget { MATCH_MODULE, MATCH_FILE }; |
| 18 | 23 |
| 19 explicit VmodulePattern(const std::string& pattern); | 24 explicit VmodulePattern(const std::string& pattern); |
| 20 | 25 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 if (MatchVlogPattern(s, p)) | 173 if (MatchVlogPattern(s, p)) |
| 169 return true; | 174 return true; |
| 170 s.remove_prefix(1); | 175 s.remove_prefix(1); |
| 171 } | 176 } |
| 172 | 177 |
| 173 // Otherwise, we couldn't find a match. | 178 // Otherwise, we couldn't find a match. |
| 174 return false; | 179 return false; |
| 175 } | 180 } |
| 176 | 181 |
| 177 } // namespace | 182 } // namespace |
| OLD | NEW |