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

Side by Side Diff: ppapi/cpp/file_io.cc

Issue 123933006: Pepper: Remove ResourceArray_Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 (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 #include "ppapi/cpp/file_io.h" 5 #include "ppapi/cpp/file_io.h"
6 6
7 #include <string.h> // memcpy 7 #include <string.h> // memcpy
8 8
9 #include "ppapi/c/ppb_file_io.h" 9 #include "ppapi/c/ppb_file_io.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
11 #include "ppapi/cpp/completion_callback.h" 11 #include "ppapi/cpp/completion_callback.h"
12 #include "ppapi/cpp/dev/resource_array_dev.h"
13 #include "ppapi/cpp/file_ref.h" 12 #include "ppapi/cpp/file_ref.h"
14 #include "ppapi/cpp/instance_handle.h" 13 #include "ppapi/cpp/instance_handle.h"
15 #include "ppapi/cpp/module.h" 14 #include "ppapi/cpp/module.h"
16 #include "ppapi/cpp/module_impl.h" 15 #include "ppapi/cpp/module_impl.h"
17 16
18 namespace pp { 17 namespace pp {
19 18
20 namespace { 19 namespace {
21 20
22 template <> const char* interface_name<PPB_FileIO_1_0>() { 21 template <> const char* interface_name<PPB_FileIO_1_0>() {
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 memcpy(buffer, data->temp_buffer, result); 185 memcpy(buffer, data->temp_buffer, result);
187 delete[] data->temp_buffer; 186 delete[] data->temp_buffer;
188 } 187 }
189 188
190 // Now execute the original callback. 189 // Now execute the original callback.
191 PP_RunCompletionCallback(&data->original_callback, result); 190 PP_RunCompletionCallback(&data->original_callback, result);
192 delete data; 191 delete data;
193 } 192 }
194 193
195 } // namespace pp 194 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/video_capture_dev.cc ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698