| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
| 11 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
| 12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "chrome/browser/profiles/profile.h" | |
| 15 #include "content/browser/resource_context.h" | 14 #include "content/browser/resource_context.h" |
| 16 #include "content/common/file_system_messages.h" | 15 #include "content/common/file_system_messages.h" |
| 17 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
| 18 #include "ipc/ipc_platform_file.h" | 17 #include "ipc/ipc_platform_file.h" |
| 19 #include "net/url_request/url_request_context.h" | 18 #include "net/url_request/url_request_context.h" |
| 20 #include "webkit/fileapi/file_system_callback_dispatcher.h" | 19 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
| 21 #include "webkit/fileapi/file_system_context.h" | 20 #include "webkit/fileapi/file_system_context.h" |
| 22 #include "webkit/fileapi/file_system_operation.h" | 21 #include "webkit/fileapi/file_system_operation.h" |
| 23 #include "webkit/fileapi/file_system_operation.h" | 22 #include "webkit/fileapi/file_system_operation.h" |
| 24 #include "webkit/fileapi/file_system_path_manager.h" | 23 #include "webkit/fileapi/file_system_path_manager.h" |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 context_, | 279 context_, |
| 281 NULL); | 280 NULL); |
| 282 operations_.AddWithID(operation, request_id); | 281 operations_.AddWithID(operation, request_id); |
| 283 return operation; | 282 return operation; |
| 284 } | 283 } |
| 285 | 284 |
| 286 void FileSystemDispatcherHost::UnregisterOperation(int request_id) { | 285 void FileSystemDispatcherHost::UnregisterOperation(int request_id) { |
| 287 DCHECK(operations_.Lookup(request_id)); | 286 DCHECK(operations_.Lookup(request_id)); |
| 288 operations_.Remove(request_id); | 287 operations_.Remove(request_id); |
| 289 } | 288 } |
| OLD | NEW |