OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 BLIMP_COMMON_LOGGING_H_ | 5 #ifndef BLIMP_COMMON_LOGGING_H_ |
6 #define BLIMP_COMMON_LOGGING_H_ | 6 #define BLIMP_COMMON_LOGGING_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
| 13 #include "base/macros.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "blimp/common/blimp_common_export.h" | 15 #include "blimp/common/blimp_common_export.h" |
15 #include "blimp/common/proto/blimp_message.pb.h" | 16 #include "blimp/common/proto/blimp_message.pb.h" |
16 | 17 |
17 namespace blimp { | 18 namespace blimp { |
18 | 19 |
19 class BlimpMessage; | 20 class BlimpMessage; |
20 class LogExtractor; | 21 class LogExtractor; |
21 | 22 |
22 typedef std::vector<std::pair<std::string, std::string>> LogFields; | 23 typedef std::vector<std::pair<std::string, std::string>> LogFields; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 60 |
60 // Serializes a BlimpMessage in a human-readable format for logging. | 61 // Serializes a BlimpMessage in a human-readable format for logging. |
61 // An example message would look like: | 62 // An example message would look like: |
62 // "<type=TAB_CONTROL subtype=SIZE size=640x480:1.000000 size=19>" | 63 // "<type=TAB_CONTROL subtype=SIZE size=640x480:1.000000 size=19>" |
63 BLIMP_COMMON_EXPORT std::ostream& operator<<(std::ostream& out, | 64 BLIMP_COMMON_EXPORT std::ostream& operator<<(std::ostream& out, |
64 const BlimpMessage& message); | 65 const BlimpMessage& message); |
65 | 66 |
66 } // namespace blimp | 67 } // namespace blimp |
67 | 68 |
68 #endif // BLIMP_COMMON_LOGGING_H_ | 69 #endif // BLIMP_COMMON_LOGGING_H_ |
OLD | NEW |