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

Side by Side Diff: content/public/browser/file_descriptor_info.h

Issue 11189068: Changing minidump process generation to be in-process on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved patch description. Created 8 years, 2 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
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 #ifndef CONTENT_PUBLIC_BROWSER_FILE_DESCRIPTOR_INFO_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_FILE_DESCRIPTOR_INFO_H_
6 #define CONTENT_PUBLIC_BROWSER_FILE_DESCRIPTOR_INFO_H_ 6 #define CONTENT_PUBLIC_BROWSER_FILE_DESCRIPTOR_INFO_H_
7 7
8 #include "base/file_descriptor_posix.h" 8 #include "base/file_descriptor_posix.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 // This struct is used when passing files that should be mapped in a process 12 // This struct is used when passing files that should be mapped in a process
13 // that is been created and allows to associate that file with a specific ID. 13 // that is been created and allows to associate that file with a specific ID.
14 // It also provides a way to know if the actual file descriptor should be 14 // It also provides a way to know if the actual file descriptor should be
15 // closed with the FileDescriptor.auto_close field. 15 // closed with the FileDescriptor.auto_close field.
16 16
17 struct FileDescriptorInfo { 17 struct FileDescriptorInfo {
18 FileDescriptorInfo(int id, const base::FileDescriptor& file_descriptor) 18 FileDescriptorInfo(int id, const base::FileDescriptor& file_descriptor)
19 : id(id), 19 : id(id),
20 fd(file_descriptor) { 20 fd(file_descriptor) {
21 } 21 }
22 22
23 int id; 23 int id;
24 base::FileDescriptor fd; 24 base::FileDescriptor fd;
25 }; 25 };
26 26
27 typedef std::vector<FileDescriptorInfo> FDInfoList;
jam 2012/10/19 16:39:17 nit: this is personal style, but it seems unnecess
Jay Civelli 2012/10/22 22:09:48 Done.
28
27 } 29 }
28 30
29 #endif // CONTENT_PUBLIC_BROWSER_FILE_DESCRIPTOR_INFO_H_ 31 #endif // CONTENT_PUBLIC_BROWSER_FILE_DESCRIPTOR_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698