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 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "ppapi/c/dev/pp_file_info_dev.h" | 10 #include "ppapi/c/dev/pp_file_info_dev.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 PPB_FileSystem_Impl(PluginInstance* instance, PP_FileSystemType_Dev type); | 26 PPB_FileSystem_Impl(PluginInstance* instance, PP_FileSystemType_Dev type); |
27 virtual PPB_FileSystem_Impl* AsPPB_FileSystem_Impl(); | 27 virtual PPB_FileSystem_Impl* AsPPB_FileSystem_Impl(); |
28 | 28 |
29 PluginInstance* instance() { return instance_; } | 29 PluginInstance* instance() { return instance_; } |
30 PP_FileSystemType_Dev type() { return type_; } | 30 PP_FileSystemType_Dev type() { return type_; } |
31 const FilePath& root_path() const { return root_path_; } | 31 const FilePath& root_path() const { return root_path_; } |
32 void set_root_path(const FilePath& root_path) { root_path_ = root_path; } | 32 void set_root_path(const FilePath& root_path) { root_path_ = root_path; } |
33 bool opened() const { return opened_; } | 33 bool opened() const { return opened_; } |
34 void set_opened(bool opened) { opened_ = opened; } | 34 void set_opened(bool opened) { opened_ = opened; } |
| 35 bool called_open() const { return called_open_; } |
| 36 void set_called_open() { called_open_ = true; } |
35 | 37 |
36 private: | 38 private: |
37 PluginInstance* instance_; | 39 PluginInstance* instance_; |
38 PP_FileSystemType_Dev type_; | 40 PP_FileSystemType_Dev type_; |
39 FilePath root_path_; | 41 FilePath root_path_; |
40 bool opened_; | 42 bool opened_; |
| 43 bool called_open_; |
41 | 44 |
42 DISALLOW_COPY_AND_ASSIGN(PPB_FileSystem_Impl); | 45 DISALLOW_COPY_AND_ASSIGN(PPB_FileSystem_Impl); |
43 }; | 46 }; |
44 | 47 |
45 } // namespace ppapi | 48 } // namespace ppapi |
46 } // namespace webkit | 49 } // namespace webkit |
47 | 50 |
48 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_ | 51 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_ |
OLD | NEW |