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_IO_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_IO_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_IO_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_IO_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 void SendOpenErrorReply(ppapi::host::ReplyMessageContext reply_context); | 109 void SendOpenErrorReply(ppapi::host::ReplyMessageContext reply_context); |
110 | 110 |
111 // Adds file_ to |reply_context| with the specified |open_flags|. | 111 // Adds file_ to |reply_context| with the specified |open_flags|. |
112 bool AddFileToReplyContext( | 112 bool AddFileToReplyContext( |
113 int32_t open_flags, | 113 int32_t open_flags, |
114 ppapi::host::ReplyMessageContext* reply_context) const; | 114 ppapi::host::ReplyMessageContext* reply_context) const; |
115 | 115 |
116 BrowserPpapiHostImpl* browser_ppapi_host_; | 116 BrowserPpapiHostImpl* browser_ppapi_host_; |
117 | 117 |
118 RenderProcessHost* render_process_host_; | |
119 int render_process_id_; | 118 int render_process_id_; |
120 base::ProcessId resolved_render_process_id_; | 119 base::ProcessId resolved_render_process_id_; |
121 | 120 |
122 base::FileProxy file_; | 121 base::FileProxy file_; |
123 int32_t open_flags_; | 122 int32_t open_flags_; |
124 | 123 |
125 // The file system type specified in the Open() call. This will be | 124 // The file system type specified in the Open() call. This will be |
126 // PP_FILESYSTEMTYPE_INVALID before open was called. This value does not | 125 // PP_FILESYSTEMTYPE_INVALID before open was called. This value does not |
127 // indicate that the open command actually succeeded. | 126 // indicate that the open command actually succeeded. |
128 PP_FileSystemType file_system_type_; | 127 PP_FileSystemType file_system_type_; |
129 base::WeakPtr<PepperFileSystemBrowserHost> file_system_host_; | 128 base::WeakPtr<PepperFileSystemBrowserHost> file_system_host_; |
130 | 129 |
131 // Valid only for PP_FILESYSTEMTYPE_LOCAL{PERSISTENT,TEMPORARY}. | 130 // Valid only for PP_FILESYSTEMTYPE_LOCAL{PERSISTENT,TEMPORARY}. |
132 scoped_refptr<storage::FileSystemContext> file_system_context_; | 131 scoped_refptr<storage::FileSystemContext> file_system_context_; |
133 storage::FileSystemURL file_system_url_; | 132 storage::FileSystemURL file_system_url_; |
134 base::Closure on_close_callback_; | 133 base::Closure on_close_callback_; |
135 int64_t max_written_offset_; | 134 int64_t max_written_offset_; |
136 bool check_quota_; | 135 bool check_quota_; |
137 | 136 |
138 ppapi::FileIOStateManager state_manager_; | 137 ppapi::FileIOStateManager state_manager_; |
139 | 138 |
140 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost); | 139 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost); |
141 }; | 140 }; |
142 | 141 |
143 } // namespace content | 142 } // namespace content |
144 | 143 |
145 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_IO_HOST_H_ | 144 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_IO_HOST_H_ |
OLD | NEW |