OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/c/ppb_file_io.h" | 7 #include "ppapi/c/ppb_file_io.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/c/trusted/ppb_file_io_trusted.h" | |
10 #include "ppapi/cpp/completion_callback.h" | 9 #include "ppapi/cpp/completion_callback.h" |
11 #include "ppapi/cpp/file_ref.h" | 10 #include "ppapi/cpp/file_ref.h" |
12 #include "ppapi/cpp/instance.h" | 11 #include "ppapi/cpp/instance.h" |
13 #include "ppapi/cpp/module.h" | 12 #include "ppapi/cpp/module.h" |
14 #include "ppapi/cpp/module_impl.h" | 13 #include "ppapi/cpp/module_impl.h" |
15 | 14 |
16 namespace pp { | 15 namespace pp { |
17 | 16 |
18 namespace { | 17 namespace { |
19 | 18 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 pp_resource(), cc.pp_completion_callback()); | 100 pp_resource(), cc.pp_completion_callback()); |
102 } | 101 } |
103 | 102 |
104 void FileIO::Close() { | 103 void FileIO::Close() { |
105 if (!has_interface<PPB_FileIO>()) | 104 if (!has_interface<PPB_FileIO>()) |
106 return; | 105 return; |
107 get_interface<PPB_FileIO>()->Close(pp_resource()); | 106 get_interface<PPB_FileIO>()->Close(pp_resource()); |
108 } | 107 } |
109 | 108 |
110 } // namespace pp | 109 } // namespace pp |
OLD | NEW |