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 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_IO_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_IO_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_IO_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_IO_IMPL_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/platform_file.h" | 15 #include "base/platform_file.h" |
16 #include "ppapi/c/pp_file_info.h" | 16 #include "ppapi/c/pp_file_info.h" |
17 #include "ppapi/c/pp_time.h" | 17 #include "ppapi/c/pp_time.h" |
18 #include "ppapi/shared_impl/resource.h" | 18 #include "ppapi/shared_impl/resource.h" |
19 #include "ppapi/thunk/ppb_file_io_api.h" | 19 #include "ppapi/thunk/ppb_file_io_api.h" |
20 #include "webkit/plugins/ppapi/callbacks.h" | 20 #include "webkit/plugins/ppapi/callbacks.h" |
21 #include "webkit/plugins/ppapi/plugin_delegate.h" | 21 #include "webkit/plugins/ppapi/plugin_delegate.h" |
22 | 22 |
23 struct PP_CompletionCallback; | 23 struct PP_CompletionCallback; |
24 struct PPB_FileIO; | 24 struct PPB_FileIO; |
25 struct PPB_FileIOTrusted; | |
26 | 25 |
27 namespace webkit { | 26 namespace webkit { |
28 namespace ppapi { | 27 namespace ppapi { |
29 | 28 |
30 class PluginModule; | |
31 class PPB_FileRef_Impl; | |
32 class QuotaFileIO; | 29 class QuotaFileIO; |
33 | 30 |
34 class PPB_FileIO_Impl : public ::ppapi::Resource, | 31 class PPB_FileIO_Impl : public ::ppapi::Resource, |
35 public ::ppapi::thunk::PPB_FileIO_API { | 32 public ::ppapi::thunk::PPB_FileIO_API { |
36 public: | 33 public: |
37 explicit PPB_FileIO_Impl(PP_Instance instance); | 34 explicit PPB_FileIO_Impl(PP_Instance instance); |
38 virtual ~PPB_FileIO_Impl(); | 35 virtual ~PPB_FileIO_Impl(); |
39 | 36 |
40 // Resource overrides. | 37 // Resource overrides. |
41 virtual ::ppapi::thunk::PPB_FileIO_API* AsPPB_FileIO_API() OVERRIDE; | 38 virtual ::ppapi::thunk::PPB_FileIO_API* AsPPB_FileIO_API() OVERRIDE; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 140 |
144 base::WeakPtrFactory<PPB_FileIO_Impl> weak_factory_; | 141 base::WeakPtrFactory<PPB_FileIO_Impl> weak_factory_; |
145 | 142 |
146 DISALLOW_COPY_AND_ASSIGN(PPB_FileIO_Impl); | 143 DISALLOW_COPY_AND_ASSIGN(PPB_FileIO_Impl); |
147 }; | 144 }; |
148 | 145 |
149 } // namespace ppapi | 146 } // namespace ppapi |
150 } // namespace webkit | 147 } // namespace webkit |
151 | 148 |
152 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_IO_IMPL_H_ | 149 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_IO_IMPL_H_ |
OLD | NEW |