| 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 context_, | 251 context_, |
| 253 NULL); | 252 NULL); |
| 254 operations_.AddWithID(operation, request_id); | 253 operations_.AddWithID(operation, request_id); |
| 255 return operation; | 254 return operation; |
| 256 } | 255 } |
| 257 | 256 |
| 258 void FileSystemDispatcherHost::UnregisterOperation(int request_id) { | 257 void FileSystemDispatcherHost::UnregisterOperation(int request_id) { |
| 259 DCHECK(operations_.Lookup(request_id)); | 258 DCHECK(operations_.Lookup(request_id)); |
| 260 operations_.Remove(request_id); | 259 operations_.Remove(request_id); |
| 261 } | 260 } |
| OLD | NEW |