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_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/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // Resource overrides. | 26 // Resource overrides. |
27 virtual ::ppapi::thunk::PPB_FileSystem_API* AsPPB_FileSystem_API() OVERRIDE; | 27 virtual ::ppapi::thunk::PPB_FileSystem_API* AsPPB_FileSystem_API() OVERRIDE; |
28 | 28 |
29 PP_FileSystemType type() const { return type_; } | 29 PP_FileSystemType type() const { return type_; } |
30 const GURL& root_url() const { return root_url_; } | 30 const GURL& root_url() const { return root_url_; } |
31 void set_root_url(const GURL& root_url) { root_url_ = root_url; } | 31 void set_root_url(const GURL& root_url) { root_url_ = root_url; } |
32 bool opened() const { return opened_; } | 32 bool opened() const { return opened_; } |
33 void set_opened(bool opened) { opened_ = opened; } | 33 void set_opened(bool opened) { opened_ = opened; } |
34 | 34 |
35 // PPB_FileSystem_API implementation. | 35 // PPB_FileSystem_API implementation. |
36 virtual int32_t Open(int64_t expected_size, | 36 virtual int32_t Open( |
37 PP_CompletionCallback callback) OVERRIDE; | 37 int64_t expected_size, |
| 38 scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE; |
38 virtual PP_FileSystemType GetType() OVERRIDE; | 39 virtual PP_FileSystemType GetType() OVERRIDE; |
39 | 40 |
40 private: | 41 private: |
41 PPB_FileSystem_Impl(PP_Instance instance, PP_FileSystemType type); | 42 PPB_FileSystem_Impl(PP_Instance instance, PP_FileSystemType type); |
42 | 43 |
43 PP_FileSystemType type_; | 44 PP_FileSystemType type_; |
44 GURL root_url_; | 45 GURL root_url_; |
45 bool opened_; | 46 bool opened_; |
46 bool called_open_; | 47 bool called_open_; |
47 | 48 |
48 DISALLOW_COPY_AND_ASSIGN(PPB_FileSystem_Impl); | 49 DISALLOW_COPY_AND_ASSIGN(PPB_FileSystem_Impl); |
49 }; | 50 }; |
50 | 51 |
51 } // namespace ppapi | 52 } // namespace ppapi |
52 } // namespace webkit | 53 } // namespace webkit |
53 | 54 |
54 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_ | 55 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_SYSTEM_IMPL_H_ |
OLD | NEW |