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