OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_UTILITY_SAFE_BROWSING_MAC_READ_STREAM_H_ | 5 #ifndef CHROME_UTILITY_SAFE_BROWSING_MAC_READ_STREAM_H_ |
6 #define CHROME_UTILITY_SAFE_BROWSING_MAC_READ_STREAM_H_ | 6 #define CHROME_UTILITY_SAFE_BROWSING_MAC_READ_STREAM_H_ |
7 | 7 |
| 8 #include <stddef.h> |
8 #include <stdint.h> | 9 #include <stdint.h> |
9 #include <unistd.h> | 10 #include <unistd.h> |
10 | 11 |
11 #include "base/macros.h" | 12 #include "base/macros.h" |
12 | 13 |
13 namespace safe_browsing { | 14 namespace safe_browsing { |
14 namespace dmg { | 15 namespace dmg { |
15 | 16 |
16 // An interface for reading and seeking over a byte stream. | 17 // An interface for reading and seeking over a byte stream. |
17 class ReadStream { | 18 class ReadStream { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 off_t offset_; | 76 off_t offset_; |
76 | 77 |
77 private: | 78 private: |
78 DISALLOW_COPY_AND_ASSIGN(MemoryReadStream); | 79 DISALLOW_COPY_AND_ASSIGN(MemoryReadStream); |
79 }; | 80 }; |
80 | 81 |
81 } // namespace dmg | 82 } // namespace dmg |
82 } // namespace safe_browsing | 83 } // namespace safe_browsing |
83 | 84 |
84 #endif // CHROME_UTILITY_SAFE_BROWSING_MAC_READ_STREAM_H_ | 85 #endif // CHROME_UTILITY_SAFE_BROWSING_MAC_READ_STREAM_H_ |
OLD | NEW |