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

Side by Side Diff: ppapi/thunk/ppb_file_io_thunk.cc

Issue 1412323002: ppapi: Support up to 32 subsamples in PP_EncryptedBlockInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
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 // From ppb_file_io.idl modified Mon Nov 11 16:02:07 2013. 5 // From ppb_file_io.idl modified Fri Jun 13 10:40:42 2014.
6 6
7 #include "ppapi/c/pp_completion_callback.h" 7 #include "ppapi/c/pp_completion_callback.h"
8 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.h"
9 #include "ppapi/c/ppb_file_io.h" 9 #include "ppapi/c/ppb_file_io.h"
10 #include "ppapi/shared_impl/tracked_callback.h" 10 #include "ppapi/shared_impl/tracked_callback.h"
11 #include "ppapi/thunk/enter.h" 11 #include "ppapi/thunk/enter.h"
12 #include "ppapi/thunk/ppapi_thunk_export.h" 12 #include "ppapi/thunk/ppapi_thunk_export.h"
13 #include "ppapi/thunk/ppb_file_io_api.h" 13 #include "ppapi/thunk/ppb_file_io_api.h"
14 14
15 namespace ppapi { 15 namespace ppapi {
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 struct PP_ArrayOutput* output, 123 struct PP_ArrayOutput* output,
124 struct PP_CompletionCallback callback) { 124 struct PP_CompletionCallback callback) {
125 VLOG(4) << "PPB_FileIO::ReadToArray()"; 125 VLOG(4) << "PPB_FileIO::ReadToArray()";
126 EnterResource<PPB_FileIO_API> enter(file_io, callback, true); 126 EnterResource<PPB_FileIO_API> enter(file_io, callback, true);
127 if (enter.failed()) 127 if (enter.failed())
128 return enter.retval(); 128 return enter.retval();
129 return enter.SetResult(enter.object()->ReadToArray(offset, max_read_length, 129 return enter.SetResult(enter.object()->ReadToArray(offset, max_read_length,
130 output, enter.callback())); 130 output, enter.callback()));
131 } 131 }
132 132
133 const PPB_FileIO_1_0 g_ppb_fileio_thunk_1_0 = {&Create, 133 const PPB_FileIO_1_0 g_ppb_fileio_thunk_1_0 = {
134 &IsFileIO, 134 &Create, &IsFileIO, &Open, &Query, &Touch,
135 &Open, 135 &Read, &Write, &SetLength, &Flush, &Close};
136 &Query,
137 &Touch,
138 &Read,
139 &Write,
140 &SetLength,
141 &Flush,
142 &Close};
143 136
144 const PPB_FileIO_1_1 g_ppb_fileio_thunk_1_1 = {&Create, 137 const PPB_FileIO_1_1 g_ppb_fileio_thunk_1_1 = {
145 &IsFileIO, 138 &Create, &IsFileIO, &Open, &Query, &Touch, &Read,
146 &Open, 139 &Write, &SetLength, &Flush, &Close, &ReadToArray};
147 &Query,
148 &Touch,
149 &Read,
150 &Write,
151 &SetLength,
152 &Flush,
153 &Close,
154 &ReadToArray};
155 140
156 } // namespace 141 } // namespace
157 142
158 PPAPI_THUNK_EXPORT const PPB_FileIO_1_0* GetPPB_FileIO_1_0_Thunk() { 143 PPAPI_THUNK_EXPORT const PPB_FileIO_1_0* GetPPB_FileIO_1_0_Thunk() {
159 return &g_ppb_fileio_thunk_1_0; 144 return &g_ppb_fileio_thunk_1_0;
160 } 145 }
161 146
162 PPAPI_THUNK_EXPORT const PPB_FileIO_1_1* GetPPB_FileIO_1_1_Thunk() { 147 PPAPI_THUNK_EXPORT const PPB_FileIO_1_1* GetPPB_FileIO_1_1_Thunk() {
163 return &g_ppb_fileio_thunk_1_1; 148 return &g_ppb_fileio_thunk_1_1;
164 } 149 }
165 150
166 } // namespace thunk 151 } // namespace thunk
167 } // namespace ppapi 152 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698