| OLD | NEW |
| 1 // Copyright (c) 2010 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_REF_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "googleurl/src/gurl.h" |
| 11 #include "ppapi/c/dev/ppb_file_ref_dev.h" | 12 #include "ppapi/c/dev/ppb_file_ref_dev.h" |
| 12 #include "webkit/plugins/ppapi/resource.h" | 13 #include "webkit/plugins/ppapi/resource.h" |
| 13 | 14 |
| 14 namespace webkit { | 15 namespace webkit { |
| 15 namespace ppapi { | 16 namespace ppapi { |
| 16 | 17 |
| 17 class PPB_FileSystem_Impl; | 18 class PPB_FileSystem_Impl; |
| 18 class PluginInstance; | 19 class PluginInstance; |
| 19 class PluginModule; | 20 class PluginModule; |
| 20 | 21 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 45 // Returns the type of the file system to which this PPB_FileRef_Impl belongs. | 46 // Returns the type of the file system to which this PPB_FileRef_Impl belongs. |
| 46 PP_FileSystemType_Dev GetFileSystemType() const; | 47 PP_FileSystemType_Dev GetFileSystemType() const; |
| 47 | 48 |
| 48 // Returns the virtual path (i.e., the path that the pepper plugin sees) | 49 // Returns the virtual path (i.e., the path that the pepper plugin sees) |
| 49 // corresponding to this file. | 50 // corresponding to this file. |
| 50 std::string GetPath() const; | 51 std::string GetPath() const; |
| 51 | 52 |
| 52 // Returns the system path corresponding to this file. | 53 // Returns the system path corresponding to this file. |
| 53 FilePath GetSystemPath() const; | 54 FilePath GetSystemPath() const; |
| 54 | 55 |
| 56 // Returns the FileSystem API URL corresponding to this file. |
| 57 GURL GetFileSystemURL() const; |
| 58 |
| 55 private: | 59 private: |
| 56 scoped_refptr<PPB_FileSystem_Impl> file_system_; | 60 scoped_refptr<PPB_FileSystem_Impl> file_system_; |
| 57 std::string virtual_path_; // UTF-8 encoded | 61 std::string virtual_path_; // UTF-8 encoded |
| 58 FilePath system_path_; | 62 FilePath system_path_; |
| 59 | 63 |
| 60 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl); | 64 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl); |
| 61 }; | 65 }; |
| 62 | 66 |
| 63 } // namespace ppapi | 67 } // namespace ppapi |
| 64 } // namespace webkit | 68 } // namespace webkit |
| 65 | 69 |
| 66 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ | 70 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ |
| OLD | NEW |