OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_PROXIMITY_AUTH_LOGGING_LOGGING_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_LOGGING_LOGGING_H |
6 #define COMPONENTS_PROXIMITY_AUTH_LOGGING_LOGGING_H | 6 #define COMPONENTS_PROXIMITY_AUTH_LOGGING_LOGGING_H |
7 | 7 |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" |
11 | 12 |
12 namespace proximity_auth { | 13 namespace proximity_auth { |
13 | 14 |
14 // Use the PA_LOG() macro for all logging related to Proximity Auth, so the | 15 // Use the PA_LOG() macro for all logging related to Proximity Auth, so the |
15 // system is aware of all logs related to this feature. We display these logs in | 16 // system is aware of all logs related to this feature. We display these logs in |
16 // the debug WebUI (chrome://proximity-auth). | 17 // the debug WebUI (chrome://proximity-auth). |
17 // | 18 // |
18 // PA_LOG() has the same interface as the standard LOG() macro and also creates | 19 // PA_LOG() has the same interface as the standard LOG() macro and also creates |
19 // a normal log message of the same severity. | 20 // a normal log message of the same severity. |
20 // Examples: | 21 // Examples: |
(...skipping 28 matching lines...) Expand all Loading... |
49 int line_; | 50 int line_; |
50 logging::LogSeverity severity_; | 51 logging::LogSeverity severity_; |
51 std::ostringstream stream_; | 52 std::ostringstream stream_; |
52 | 53 |
53 DISALLOW_COPY_AND_ASSIGN(ScopedLogMessage); | 54 DISALLOW_COPY_AND_ASSIGN(ScopedLogMessage); |
54 }; | 55 }; |
55 | 56 |
56 } // namespace proximity_auth | 57 } // namespace proximity_auth |
57 | 58 |
58 #endif // COMPONENTS_PROXIMITY_AUTH_LOGGING_LOGGING_H | 59 #endif // COMPONENTS_PROXIMITY_AUTH_LOGGING_LOGGING_H |
OLD | NEW |