OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "webkit/glue/plugins/pepper_file_system.h" | 5 #include "webkit/glue/plugins/pepper_file_system.h" |
6 | 6 |
7 #include "base/ref_counted.h" | 7 #include "base/ref_counted.h" |
8 #include "ppapi/c/dev/ppb_file_system_dev.h" | 8 #include "ppapi/c/dev/ppb_file_system_dev.h" |
9 #include "ppapi/c/pp_completion_callback.h" | 9 #include "ppapi/c/pp_completion_callback.h" |
10 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 } // namespace | 72 } // namespace |
73 | 73 |
74 FileSystem::FileSystem(PluginInstance* instance, PP_FileSystemType_Dev type) | 74 FileSystem::FileSystem(PluginInstance* instance, PP_FileSystemType_Dev type) |
75 : Resource(instance->module()), | 75 : Resource(instance->module()), |
76 instance_(instance), | 76 instance_(instance), |
77 type_(type), | 77 type_(type), |
78 opened_(false) { | 78 opened_(false) { |
79 } | 79 } |
80 | 80 |
| 81 FileSystem* FileSystem::AsFileSystem() { |
| 82 return this; |
| 83 } |
| 84 |
81 const PPB_FileSystem_Dev* FileSystem::GetInterface() { | 85 const PPB_FileSystem_Dev* FileSystem::GetInterface() { |
82 return &ppb_filesystem; | 86 return &ppb_filesystem; |
83 } | 87 } |
84 | 88 |
85 } // namespace pepper | 89 } // namespace pepper |
OLD | NEW |