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 CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ |
6 #define CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 int process_id_; | 209 int process_id_; |
210 | 210 |
211 fileapi::FileSystemContext* context_; | 211 fileapi::FileSystemContext* context_; |
212 ChildProcessSecurityPolicyImpl* security_policy_; | 212 ChildProcessSecurityPolicyImpl* security_policy_; |
213 | 213 |
214 // Keeps map from request_id to OperationID for ongoing operations. | 214 // Keeps map from request_id to OperationID for ongoing operations. |
215 // (Primarily for Cancel operation) | 215 // (Primarily for Cancel operation) |
216 typedef std::map<int, OperationID> OperationsMap; | 216 typedef std::map<int, OperationID> OperationsMap; |
217 OperationsMap operations_; | 217 OperationsMap operations_; |
218 | 218 |
219 // The getter holds the context until Init() can be called from the | 219 // The getter holds the context until OnChannelConnected() can be called from |
220 // IO thread, which will extract the net::URLRequestContext from it. | 220 // the IO thread, which will extract the net::URLRequestContext from it. |
221 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; | 221 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; |
222 net::URLRequestContext* request_context_; | 222 net::URLRequestContext* request_context_; |
223 | 223 |
224 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 224 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
225 scoped_refptr<StreamContext> stream_context_; | 225 scoped_refptr<StreamContext> stream_context_; |
226 | 226 |
227 scoped_ptr<fileapi::FileSystemOperationRunner> operation_runner_; | 227 scoped_ptr<fileapi::FileSystemOperationRunner> operation_runner_; |
228 | 228 |
229 // Keeps track of blobs used in this process and cleans up | 229 // Keeps track of blobs used in this process and cleans up |
230 // when the renderer process dies. | 230 // when the renderer process dies. |
231 scoped_ptr<webkit_blob::BlobStorageHost> blob_storage_host_; | 231 scoped_ptr<webkit_blob::BlobStorageHost> blob_storage_host_; |
232 | 232 |
233 // Keep track of stream URLs registered in this process. Need to unregister | 233 // Keep track of stream URLs registered in this process. Need to unregister |
234 // all of them when the renderer process dies. | 234 // all of them when the renderer process dies. |
235 base::hash_set<std::string> stream_urls_; | 235 base::hash_set<std::string> stream_urls_; |
236 | 236 |
237 // Used to keep snapshot files alive while a DidCreateSnapshot | 237 // Used to keep snapshot files alive while a DidCreateSnapshot |
238 // is being sent to the renderer. | 238 // is being sent to the renderer. |
239 std::map<int, scoped_refptr<webkit_blob::ShareableFileReference> > | 239 std::map<int, scoped_refptr<webkit_blob::ShareableFileReference> > |
240 in_transit_snapshot_files_; | 240 in_transit_snapshot_files_; |
241 | 241 |
242 DISALLOW_COPY_AND_ASSIGN(FileAPIMessageFilter); | 242 DISALLOW_COPY_AND_ASSIGN(FileAPIMessageFilter); |
243 }; | 243 }; |
244 | 244 |
245 } // namespace content | 245 } // namespace content |
246 | 246 |
247 #endif // CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ | 247 #endif // CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ |
OLD | NEW |