OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "ppapi/proxy/file_system_resource.h" | 5 #include "ppapi/proxy/file_system_resource.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "ipc/ipc_message.h" | 8 #include "ipc/ipc_message.h" |
9 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
10 #include "ppapi/proxy/ppapi_messages.h" | 10 #include "ppapi/proxy/ppapi_messages.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 base::Bind(&FileSystemResource::OpenComplete, | 43 base::Bind(&FileSystemResource::OpenComplete, |
44 this, | 44 this, |
45 callback)); | 45 callback)); |
46 return PP_OK_COMPLETIONPENDING; | 46 return PP_OK_COMPLETIONPENDING; |
47 } | 47 } |
48 | 48 |
49 PP_FileSystemType FileSystemResource::GetType() { | 49 PP_FileSystemType FileSystemResource::GetType() { |
50 return type_; | 50 return type_; |
51 } | 51 } |
52 | 52 |
| 53 void FileSystemResource::InitIsolatedFileSystem(const char* fsid) { |
| 54 Post(RENDERER, |
| 55 PpapiHostMsg_FileSystem_InitIsolatedFileSystem(std::string(fsid))); |
| 56 } |
| 57 |
53 void FileSystemResource::OpenComplete( | 58 void FileSystemResource::OpenComplete( |
54 scoped_refptr<TrackedCallback> callback, | 59 scoped_refptr<TrackedCallback> callback, |
55 const ResourceMessageReplyParams& params) { | 60 const ResourceMessageReplyParams& params) { |
56 callback->Run(params.result()); | 61 callback->Run(params.result()); |
57 } | 62 } |
58 | 63 |
59 } // namespace proxy | 64 } // namespace proxy |
60 } // namespace ppapi | 65 } // namespace ppapi |
OLD | NEW |