| 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 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "ppapi/c/pp_file_info.h" | 10 #include "ppapi/c/pp_file_info.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 private: | 51 private: |
| 52 // Callback for OpenFileSystem. | 52 // Callback for OpenFileSystem. |
| 53 void DidOpenFileSystem(const std::string& name_unused, const GURL& root); | 53 void DidOpenFileSystem(const std::string& name_unused, const GURL& root); |
| 54 void DidFailOpenFileSystem(base::PlatformFileError error); | 54 void DidFailOpenFileSystem(base::PlatformFileError error); |
| 55 | 55 |
| 56 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context, | 56 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context, |
| 57 int64_t expected_size); | 57 int64_t expected_size); |
| 58 int32_t OnHostMsgInitIsolatedFileSystem( | 58 int32_t OnHostMsgInitIsolatedFileSystem( |
| 59 ppapi::host::HostMessageContext* context, | 59 ppapi::host::HostMessageContext* context, |
| 60 const std::string& fsid); | 60 const std::string& fsid); |
| 61 int32_t OnHostMsgInitPluginPrivateFileSystem( |
| 62 ppapi::host::HostMessageContext* context, |
| 63 const std::string& fsid); |
| 61 | 64 |
| 62 RendererPpapiHost* renderer_ppapi_host_; | 65 RendererPpapiHost* renderer_ppapi_host_; |
| 63 ppapi::host::ReplyMessageContext reply_context_; | 66 ppapi::host::ReplyMessageContext reply_context_; |
| 64 | 67 |
| 65 PP_FileSystemType type_; | 68 PP_FileSystemType type_; |
| 66 bool opened_; // whether open is successful. | 69 bool opened_; // whether open is successful. |
| 67 GURL root_url_; | 70 GURL root_url_; |
| 68 bool called_open_; // whether open has been called. | 71 bool called_open_; // whether open has been called. |
| 69 | 72 |
| 70 base::WeakPtrFactory<PepperFileSystemHost> weak_factory_; | 73 base::WeakPtrFactory<PepperFileSystemHost> weak_factory_; |
| 71 | 74 |
| 72 DISALLOW_COPY_AND_ASSIGN(PepperFileSystemHost); | 75 DISALLOW_COPY_AND_ASSIGN(PepperFileSystemHost); |
| 73 }; | 76 }; |
| 74 | 77 |
| 75 } // namespace content | 78 } // namespace content |
| 76 | 79 |
| 77 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ | 80 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ |
| OLD | NEW |