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