Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: remoting/base/util.cc

Issue 18052008: Use a direct include of time headers in ppapi/, printing/, remoting/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/base/rsa_key_pair.cc ('k') | remoting/client/plugin/pepper_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "base/time.h" 11 #include "base/time/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>
21 #endif // defined(OS_POSIX) 21 #endif // defined(OS_POSIX)
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « remoting/base/rsa_key_pair.cc ('k') | remoting/client/plugin/pepper_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698