OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_SYSTEM_BROWSER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_SYSTEM_BROWSER_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_SYSTEM_BROWSER_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_SYSTEM_BROWSER_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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 } | 54 } |
55 | 55 |
56 private: | 56 private: |
57 void GotFileSystemContext( | 57 void GotFileSystemContext( |
58 ppapi::host::ReplyMessageContext reply_context, | 58 ppapi::host::ReplyMessageContext reply_context, |
59 fileapi::FileSystemType file_system_type, | 59 fileapi::FileSystemType file_system_type, |
60 scoped_refptr<fileapi::FileSystemContext> fs_context); | 60 scoped_refptr<fileapi::FileSystemContext> fs_context); |
61 void GotIsolatedFileSystemContext( | 61 void GotIsolatedFileSystemContext( |
62 ppapi::host::ReplyMessageContext reply_context, | 62 ppapi::host::ReplyMessageContext reply_context, |
63 scoped_refptr<fileapi::FileSystemContext> fs_context); | 63 scoped_refptr<fileapi::FileSystemContext> fs_context); |
| 64 void GotFileSystemContextForPluginPrivate( |
| 65 ppapi::host::ReplyMessageContext reply_context, |
| 66 scoped_refptr<fileapi::FileSystemContext> fs_context); |
64 void OpenFileSystemComplete( | 67 void OpenFileSystemComplete( |
65 ppapi::host::ReplyMessageContext reply_context, | 68 ppapi::host::ReplyMessageContext reply_context, |
66 const GURL& root, | 69 const GURL& root, |
67 const std::string& name, | 70 const std::string& name, |
68 base::PlatformFileError error); | 71 base::PlatformFileError error); |
| 72 void OpenPluginPrivateFileSystemComplete( |
| 73 ppapi::host::ReplyMessageContext reply_context, |
| 74 const GURL& root, |
| 75 const std::string& fsid, |
| 76 base::PlatformFileError error); |
69 | 77 |
70 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context, | 78 int32_t OnHostMsgOpen(ppapi::host::HostMessageContext* context, |
71 int64_t expected_size); | 79 int64_t expected_size); |
72 int32_t OnHostMsgInitIsolatedFileSystem( | 80 int32_t OnHostMsgInitIsolatedFileSystem( |
73 ppapi::host::HostMessageContext* context, | 81 ppapi::host::HostMessageContext* context, |
74 const std::string& fsid); | 82 const std::string& fsid); |
| 83 int32_t OnHostMsgOpenPluginPrivateFileSystem( |
| 84 ppapi::host::HostMessageContext* context); |
75 | 85 |
76 BrowserPpapiHost* browser_ppapi_host_; | 86 BrowserPpapiHost* browser_ppapi_host_; |
77 | 87 |
78 PP_FileSystemType type_; | 88 PP_FileSystemType type_; |
79 bool opened_; // whether open is successful. | 89 bool opened_; // whether open is successful. |
80 GURL root_url_; | 90 GURL root_url_; |
81 scoped_refptr<fileapi::FileSystemContext> fs_context_; | 91 scoped_refptr<fileapi::FileSystemContext> fs_context_; |
82 bool called_open_; // whether open has been called. | 92 bool called_open_; // whether open has been called. |
83 | 93 |
84 base::WeakPtrFactory<PepperFileSystemBrowserHost> weak_factory_; | 94 base::WeakPtrFactory<PepperFileSystemBrowserHost> weak_factory_; |
85 | 95 |
86 DISALLOW_COPY_AND_ASSIGN(PepperFileSystemBrowserHost); | 96 DISALLOW_COPY_AND_ASSIGN(PepperFileSystemBrowserHost); |
87 }; | 97 }; |
88 | 98 |
89 } // namespace content | 99 } // namespace content |
90 | 100 |
91 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_SYSTEM_BROWSER_HOST_
H_ | 101 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_SYSTEM_BROWSER_HOST_
H_ |
OLD | NEW |