| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "content/browser/file_system/file_system_dispatcher_host.h" | 5 #include "content/browser/file_system/file_system_dispatcher_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 } | 227 } |
| 228 } | 228 } |
| 229 | 229 |
| 230 FileSystemOperation* FileSystemDispatcherHost::GetNewOperation( | 230 FileSystemOperation* FileSystemDispatcherHost::GetNewOperation( |
| 231 int request_id) { | 231 int request_id) { |
| 232 BrowserFileSystemCallbackDispatcher* dispatcher = | 232 BrowserFileSystemCallbackDispatcher* dispatcher = |
| 233 new BrowserFileSystemCallbackDispatcher(this, request_id); | 233 new BrowserFileSystemCallbackDispatcher(this, request_id); |
| 234 FileSystemOperation* operation = new FileSystemOperation( | 234 FileSystemOperation* operation = new FileSystemOperation( |
| 235 dispatcher, | 235 dispatcher, |
| 236 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), | 236 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), |
| 237 context_); | 237 context_, |
| 238 NULL); |
| 238 operations_.AddWithID(operation, request_id); | 239 operations_.AddWithID(operation, request_id); |
| 239 return operation; | 240 return operation; |
| 240 } | 241 } |
| 241 | 242 |
| 242 void FileSystemDispatcherHost::UnregisterOperation(int request_id) { | 243 void FileSystemDispatcherHost::UnregisterOperation(int request_id) { |
| 243 DCHECK(operations_.Lookup(request_id)); | 244 DCHECK(operations_.Lookup(request_id)); |
| 244 operations_.Remove(request_id); | 245 operations_.Remove(request_id); |
| 245 } | 246 } |
| OLD | NEW |