[email protected] | 1d0da9b | 2014-01-20 06:58:00 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef PPAPI_SHARED_IMPL_FILE_GROWTH_H_ |
| 6 | #define PPAPI_SHARED_IMPL_FILE_GROWTH_H_ |
| 7 | |
| 8 | #include <map> |
| 9 | |
| 10 | #include "ppapi/c/pp_stdint.h" |
| 11 | #include "ppapi/shared_impl/ppapi_shared_export.h" |
| 12 | |
| 13 | namespace ppapi { |
| 14 | |
| 15 | struct PPAPI_SHARED_EXPORT FileGrowth { |
| 16 | FileGrowth(); |
| 17 | FileGrowth(int64_t max_written_offset, int64_t append_mode_write_amount); |
| 18 | |
| 19 | int64_t max_written_offset; |
| 20 | int64_t append_mode_write_amount; |
| 21 | }; |
| 22 | |
| 23 | typedef std::map<int32_t, FileGrowth> FileGrowthMap; |
| 24 | typedef std::map<int32_t, int64_t> FileSizeMap; |
| 25 | |
[email protected] | 665b5c54 | 2014-02-22 08:06:26 | [diff] [blame] | 26 | PPAPI_SHARED_EXPORT FileGrowthMap |
| 27 | FileSizeMapToFileGrowthMapForTesting(const FileSizeMap& file_sizes); |
| 28 | PPAPI_SHARED_EXPORT FileSizeMap |
| 29 | FileGrowthMapToFileSizeMapForTesting(const FileGrowthMap& file_growths); |
[email protected] | 540d6af4 | 2014-01-28 21:19:03 | [diff] [blame] | 30 | |
[email protected] | 1d0da9b | 2014-01-20 06:58:00 | [diff] [blame] | 31 | } // namespace ppapi |
| 32 | |
| 33 | #endif // PPAPI_SHARED_IMPL_FILE_GROWTH_H_ |