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> | 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/thread.h" | 11 #include "base/threading/thread.h" |
12 #include "base/time.h" | 12 #include "base/time.h" |
13 #include "chrome/browser/content_settings/host_content_settings_map.h" | 13 #include "chrome/browser/content_settings/host_content_settings_map.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/profiles/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" |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), | 241 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), |
242 context_); | 242 context_); |
243 operations_.AddWithID(operation, request_id); | 243 operations_.AddWithID(operation, request_id); |
244 return operation; | 244 return operation; |
245 } | 245 } |
246 | 246 |
247 void FileSystemDispatcherHost::UnregisterOperation(int request_id) { | 247 void FileSystemDispatcherHost::UnregisterOperation(int request_id) { |
248 DCHECK(operations_.Lookup(request_id)); | 248 DCHECK(operations_.Lookup(request_id)); |
249 operations_.Remove(request_id); | 249 operations_.Remove(request_id); |
250 } | 250 } |
OLD | NEW |