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

Side by Side Diff: ppapi/shared_impl/file_growth.h

Issue 130053003: [Pepper] Wire up append mode writing support of FileIO (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/max_written_offsets/file_sizes/g Created 6 years, 11 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 2014 The Chromium Authors. All rights reserved. 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 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 PPAPI_SHARED_IMPL_FILE_GROWTH_H_ 5 #ifndef PPAPI_SHARED_IMPL_FILE_GROWTH_H_
6 #define PPAPI_SHARED_IMPL_FILE_GROWTH_H_ 6 #define PPAPI_SHARED_IMPL_FILE_GROWTH_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "ppapi/c/pp_stdint.h" 10 #include "ppapi/c/pp_stdint.h"
11 #include "ppapi/shared_impl/ppapi_shared_export.h" 11 #include "ppapi/shared_impl/ppapi_shared_export.h"
12 12
13 namespace ppapi { 13 namespace ppapi {
14 14
15 struct PPAPI_SHARED_EXPORT FileGrowth { 15 struct PPAPI_SHARED_EXPORT FileGrowth {
16 FileGrowth(); 16 FileGrowth();
17 FileGrowth(int64_t max_written_offset, int64_t append_mode_write_amount); 17 FileGrowth(int64_t max_written_offset, int64_t append_mode_write_amount);
18 18
19 int64_t max_written_offset; 19 int64_t max_written_offset;
20 int64_t append_mode_write_amount; 20 int64_t append_mode_write_amount;
21 }; 21 };
22 22
23 typedef std::map<int32_t, FileGrowth> FileGrowthMap; 23 typedef std::map<int32_t, FileGrowth> FileGrowthMap;
24 typedef std::map<int32_t, int64_t> FileSizeMap; 24 typedef std::map<int32_t, int64_t> FileSizeMap;
25 25
26 PPAPI_SHARED_EXPORT FileGrowthMap FileSizeMapToFileGrowthMap(
bbudge 2014/01/27 21:53:37 It might be a good idea to make it clear these are
tzik 2014/01/28 06:12:49 Sounds nice. Done.
27 const FileSizeMap& file_sizes);
28 PPAPI_SHARED_EXPORT FileSizeMap FileGrowthMapToFileSizeMap(
29 const FileGrowthMap& file_growths);
30
26 } // namespace ppapi 31 } // namespace ppapi
27 32
28 #endif // PPAPI_SHARED_IMPL_FILE_GROWTH_H_ 33 #endif // PPAPI_SHARED_IMPL_FILE_GROWTH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698