OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // Only compile this file in debug build. This gives us one more level of | 5 // Only compile this file in debug build. This gives us one more level of |
6 // protection that if the linker tries to link in strings/symbols appended to | 6 // protection that if the linker tries to link in strings/symbols appended to |
7 // "DLOG() <<" in release build (which it shouldn't), we'll get "undefined | 7 // "DLOG() <<" in release build (which it shouldn't), we'll get "undefined |
8 // reference" errors. | 8 // reference" errors. |
9 | 9 |
10 #include "media/cdm/ppapi/cdm_logging.h" | 10 #include "media/cdm/ppapi/cdm_logging.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include <errno.h> | 27 #include <errno.h> |
28 #include <pthread.h> | 28 #include <pthread.h> |
29 #include <stdlib.h> | 29 #include <stdlib.h> |
30 #include <stdio.h> | 30 #include <stdio.h> |
31 #include <string.h> | 31 #include <string.h> |
32 #include <unistd.h> | 32 #include <unistd.h> |
33 #endif | 33 #endif |
34 | 34 |
35 #include <iomanip> | 35 #include <iomanip> |
36 #include <iostream> | 36 #include <iostream> |
37 #include <string> | |
38 | 37 |
39 namespace media { | 38 namespace media { |
40 | 39 |
41 #if !defined(NDEBUG) | 40 #if !defined(NDEBUG) |
42 | 41 |
43 namespace { | 42 namespace { |
44 | 43 |
45 // Helper functions to wrap platform differences. | 44 // Helper functions to wrap platform differences. |
46 | 45 |
47 int32 CurrentProcessId() { | 46 int32 CurrentProcessId() { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 std::cout << std::endl; | 133 std::cout << std::endl; |
135 } | 134 } |
136 | 135 |
137 #endif // !defined(NDEBUG) | 136 #endif // !defined(NDEBUG) |
138 | 137 |
139 std::ostream& CdmLogStream::stream() { | 138 std::ostream& CdmLogStream::stream() { |
140 return std::cout; | 139 return std::cout; |
141 } | 140 } |
142 | 141 |
143 } // namespace media | 142 } // namespace media |
OLD | NEW |