| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "remoting/base/util.h" | 5 #include "remoting/base/util.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 11 #include "base/time.h" | 11 #include "base/time.h" |
| 12 #include "media/base/video_frame.h" | 12 #include "media/base/video_frame.h" |
| 13 #include "media/base/yuv_convert.h" | 13 #include "media/base/yuv_convert.h" |
| 14 #include "third_party/libyuv/include/libyuv/convert.h" | 14 #include "third_party/libyuv/include/libyuv/convert.h" |
| 15 #include "third_party/skia/include/core/SkRegion.h" | 15 #include "third_party/skia/include/core/SkRegion.h" |
| 16 | 16 |
| 17 #if defined(OS_POSIX) | 17 #if defined(OS_POSIX) |
| 18 #include <pwd.h> | 18 #include <pwd.h> |
| 19 #include <sys/types.h> | 19 #include <sys/types.h> |
| 20 #include <unistd.h> | 20 #include <unistd.h> |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 getpwuid_r(getuid(), &passwd, buf.get(), buf_size, &passwd_result); | 320 getpwuid_r(getuid(), &passwd, buf.get(), buf_size, &passwd_result); |
| 321 if (!passwd_result) | 321 if (!passwd_result) |
| 322 return std::string(); | 322 return std::string(); |
| 323 return std::string(passwd_result->pw_name); | 323 return std::string(passwd_result->pw_name); |
| 324 #else // !defined(OS_POSIX) | 324 #else // !defined(OS_POSIX) |
| 325 return std::string(); | 325 return std::string(); |
| 326 #endif // defined(OS_POSIX) | 326 #endif // defined(OS_POSIX) |
| 327 } | 327 } |
| 328 | 328 |
| 329 } // namespace remoting | 329 } // namespace remoting |
| OLD | NEW |