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 #ifndef CONTENT_BROWSER_FILE_DESCRIPTOR_INFO_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FILE_DESCRIPTOR_INFO_IMPL_H_ |
6 #define CONTENT_BROWSER_FILE_DESCRIPTOR_INFO_IMPL_H_ | 6 #define CONTENT_BROWSER_FILE_DESCRIPTOR_INFO_IMPL_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
12 #include "content/public/browser/file_descriptor_info.h" | 14 #include "content/public/browser/file_descriptor_info.h" |
13 | 15 |
14 namespace content { | 16 namespace content { |
15 | 17 |
16 class FileDescriptorInfoImpl : public FileDescriptorInfo { | 18 class FileDescriptorInfoImpl : public FileDescriptorInfo { |
17 public: | 19 public: |
(...skipping 15 matching lines...) Expand all Loading... |
33 FileDescriptorInfoImpl(); | 35 FileDescriptorInfoImpl(); |
34 | 36 |
35 void AddToMapping(int id, base::PlatformFile fd); | 37 void AddToMapping(int id, base::PlatformFile fd); |
36 bool HasID(int id) const; | 38 bool HasID(int id) const; |
37 base::FileHandleMappingVector mapping_; | 39 base::FileHandleMappingVector mapping_; |
38 std::vector<base::ScopedFD> owned_descriptors_; | 40 std::vector<base::ScopedFD> owned_descriptors_; |
39 }; | 41 }; |
40 } | 42 } |
41 | 43 |
42 #endif // CONTENT_BROWSER_FILE_DESCRIPTOR_INFO_IMPL_H_ | 44 #endif // CONTENT_BROWSER_FILE_DESCRIPTOR_INFO_IMPL_H_ |
OLD | NEW |