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 "chrome/browser/file_system/file_system_dispatcher_host.h" | 5 #include "chrome/browser/file_system/file_system_dispatcher_host.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "base/thread.h" | 8 #include "base/thread.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/browser_thread.h" | 11 #include "chrome/browser/browser_thread.h" |
12 #include "chrome/browser/content_settings/host_content_settings_map.h" | 12 #include "chrome/browser/content_settings/host_content_settings_map.h" |
13 #include "chrome/browser/file_system/browser_file_system_context.h" | 13 #include "chrome/browser/file_system/browser_file_system_context.h" |
14 #include "chrome/browser/net/chrome_url_request_context.h" | 14 #include "chrome/browser/net/chrome_url_request_context.h" |
15 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "chrome/browser/renderer_host/browser_render_process_host.h" | 16 #include "chrome/browser/renderer_host/browser_render_process_host.h" |
17 #include "chrome/common/net/url_request_context_getter.h" | 17 #include "chrome/common/net/url_request_context_getter.h" |
18 #include "chrome/common/render_messages.h" | 18 #include "chrome/common/render_messages.h" |
19 #include "chrome/common/render_messages_params.h" | 19 #include "chrome/common/render_messages_params.h" |
20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
21 #include "net/url_request/url_request_context.h" | 21 #include "net/url_request/url_request_context.h" |
22 #include "webkit/fileapi/file_system_callback_dispatcher.h" | 22 #include "webkit/fileapi/file_system_callback_dispatcher.h" |
23 #include "webkit/fileapi/file_system_operation.h" | 23 #include "webkit/fileapi/file_system_operation.h" |
24 #include "webkit/fileapi/file_system_path_manager.h" | 24 #include "webkit/fileapi/file_system_path_manager.h" |
25 #include "webkit/fileapi/file_system_quota_manager.h" | 25 #include "webkit/fileapi/file_system_quota_manager.h" |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), | 266 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), |
267 context_.get()); | 267 context_.get()); |
268 operations_.AddWithID(operation, request_id); | 268 operations_.AddWithID(operation, request_id); |
269 return operation; | 269 return operation; |
270 } | 270 } |
271 | 271 |
272 void FileSystemDispatcherHost::UnregisterOperation(int request_id) { | 272 void FileSystemDispatcherHost::UnregisterOperation(int request_id) { |
273 DCHECK(operations_.Lookup(request_id)); | 273 DCHECK(operations_.Lookup(request_id)); |
274 operations_.Remove(request_id); | 274 operations_.Remove(request_id); |
275 } | 275 } |
OLD | NEW |