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