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

Side by Side Diff: base/linux_util.h

Issue 339066: Linux: Add missing include. (Closed)
Patch Set: Created 11 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 BASE_LINUX_UTIL_H__ 5 #ifndef BASE_LINUX_UTIL_H__
6 #define BASE_LINUX_UTIL_H__ 6 #define BASE_LINUX_UTIL_H__
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <sys/types.h>
9 10
10 #include <string> 11 #include <string>
11 12
12 namespace base { 13 namespace base {
13 14
14 // Makes a copy of |pixels| with the ordering changed from BGRA to RGBA. 15 // Makes a copy of |pixels| with the ordering changed from BGRA to RGBA.
15 // The caller is responsible for free()ing the data. If |stride| is 0, 16 // The caller is responsible for free()ing the data. If |stride| is 0,
16 // it's assumed to be 4 * |width|. 17 // it's assumed to be 4 * |width|.
17 uint8_t* BGRAToRGBA(const uint8_t* pixels, int width, int height, int stride); 18 uint8_t* BGRAToRGBA(const uint8_t* pixels, int width, int height, int stride);
18 19
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // Return the inode number for the UNIX domain socket |fd|. 57 // Return the inode number for the UNIX domain socket |fd|.
57 bool FileDescriptorGetInode(ino_t* inode_out, int fd); 58 bool FileDescriptorGetInode(ino_t* inode_out, int fd);
58 59
59 // Find the process which holds the given socket, named by inode number. If 60 // Find the process which holds the given socket, named by inode number. If
60 // multiple processes hold the socket, this function returns false. 61 // multiple processes hold the socket, this function returns false.
61 bool FindProcessHoldingSocket(pid_t* pid_out, ino_t socket_inode); 62 bool FindProcessHoldingSocket(pid_t* pid_out, ino_t socket_inode);
62 63
63 } // namespace base 64 } // namespace base
64 65
65 #endif // BASE_LINUX_UTIL_H__ 66 #endif // BASE_LINUX_UTIL_H__
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698