| OLD | NEW |
| 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 #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 "googleurl/src/gurl.h" |
| 12 #include "ppapi/c/ppb_file_ref.h" | 12 #include "ppapi/c/ppb_file_ref.h" |
| 13 #include "ppapi/shared_impl/ppb_file_ref_shared.h" | 13 #include "ppapi/shared_impl/ppb_file_ref_shared.h" |
| 14 #include "ppapi/shared_impl/var.h" | 14 #include "ppapi/shared_impl/var.h" |
| 15 #include "webkit/glue/webkit_glue_export.h" |
| 15 | 16 |
| 16 namespace webkit { | 17 namespace webkit { |
| 17 namespace ppapi { | 18 namespace ppapi { |
| 18 | 19 |
| 19 using ::ppapi::StringVar; | 20 using ::ppapi::StringVar; |
| 20 | 21 |
| 21 class PPB_FileSystem_Impl; | 22 class PPB_FileSystem_Impl; |
| 22 | 23 |
| 23 class PPB_FileRef_Impl : public ::ppapi::PPB_FileRef_Shared { | 24 class WEBKIT_GLUE_EXPORT PPB_FileRef_Impl |
| 25 : public ::ppapi::PPB_FileRef_Shared { |
| 24 public: | 26 public: |
| 25 PPB_FileRef_Impl(const ::ppapi::PPB_FileRef_CreateInfo& info, | 27 PPB_FileRef_Impl(const ::ppapi::PPB_FileRef_CreateInfo& info, |
| 26 PPB_FileSystem_Impl* file_system); | 28 PPB_FileSystem_Impl* file_system); |
| 27 PPB_FileRef_Impl(const ::ppapi::PPB_FileRef_CreateInfo& info, | 29 PPB_FileRef_Impl(const ::ppapi::PPB_FileRef_CreateInfo& info, |
| 28 const FilePath& external_file_path); | 30 const FilePath& external_file_path); |
| 29 virtual ~PPB_FileRef_Impl(); | 31 virtual ~PPB_FileRef_Impl(); |
| 30 | 32 |
| 31 // The returned object will have a refcount of 0 (just like "new"). | 33 // The returned object will have a refcount of 0 (just like "new"). |
| 32 static PPB_FileRef_Impl* CreateInternal(PP_Resource pp_file_system, | 34 static PPB_FileRef_Impl* CreateInternal(PP_Resource pp_file_system, |
| 33 const std::string& path); | 35 const std::string& path); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // return the identical string object every time it is requested. | 82 // return the identical string object every time it is requested. |
| 81 scoped_refptr<StringVar> external_path_var_; | 83 scoped_refptr<StringVar> external_path_var_; |
| 82 | 84 |
| 83 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl); | 85 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl); |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 } // namespace ppapi | 88 } // namespace ppapi |
| 87 } // namespace webkit | 89 } // namespace webkit |
| 88 | 90 |
| 89 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ | 91 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ |
| OLD | NEW |