blob: 2248eb690f1b942aac9a4901f86ed6e825d65403 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_BROWSER_FILE_DESCRIPTOR_INFO_H_
#define CONTENT_PUBLIC_BROWSER_FILE_DESCRIPTOR_INFO_H_
#include "base/file_descriptor_posix.h"
namespace content {
// This struct is used when passing files that should be mapped in a process
// that is been created and allows to associate that file with a specific ID.
// It also provides a way to know if the actual file descriptor should be
// closed with the FileDescriptor.auto_close field.
struct FileDescriptorInfo {
FileDescriptorInfo(int id, const base::FileDescriptor& file_descriptor)
: id(id),
fd(file_descriptor) {
}
int id;
base::FileDescriptor fd;
};
}
#endif // CONTENT_PUBLIC_BROWSER_FILE_DESCRIPTOR_INFO_H_
|