Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Side by Side Diff: content/browser/file_system/file_system_dispatcher_host.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "content/common/file_system_messages.h" 14 #include "content/common/file_system_messages.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "ipc/ipc_platform_file.h" 16 #include "ipc/ipc_platform_file.h"
17 #include "net/url_request/url_request_context.h" 17 #include "net/url_request/url_request_context.h"
18 #include "net/url_request/url_request_context_getter.h" 18 #include "net/url_request/url_request_context_getter.h"
19 #include "webkit/fileapi/file_system_callback_dispatcher.h" 19 #include "webkit/fileapi/file_system_callback_dispatcher.h"
20 #include "webkit/fileapi/file_system_context.h" 20 #include "webkit/fileapi/file_system_context.h"
21 #include "webkit/fileapi/file_system_operation.h" 21 #include "webkit/fileapi/file_system_operation.h"
22 #include "webkit/fileapi/file_system_operation.h" 22 #include "webkit/fileapi/file_system_operation.h"
23 #include "webkit/fileapi/file_system_quota_util.h" 23 #include "webkit/fileapi/file_system_quota_util.h"
24 #include "webkit/fileapi/file_system_util.h" 24 #include "webkit/fileapi/file_system_util.h"
25 25
26 using content::BrowserThread;
26 using fileapi::FileSystemCallbackDispatcher; 27 using fileapi::FileSystemCallbackDispatcher;
27 using fileapi::FileSystemFileUtil; 28 using fileapi::FileSystemFileUtil;
28 using fileapi::FileSystemOperation; 29 using fileapi::FileSystemOperation;
29 using fileapi::FileSystemOperationContext; 30 using fileapi::FileSystemOperationContext;
30 31
31 class BrowserFileSystemCallbackDispatcher 32 class BrowserFileSystemCallbackDispatcher
32 : public FileSystemCallbackDispatcher { 33 : public FileSystemCallbackDispatcher {
33 public: 34 public:
34 BrowserFileSystemCallbackDispatcher( 35 BrowserFileSystemCallbackDispatcher(
35 FileSystemDispatcherHost* dispatcher_host, int request_id) 36 FileSystemDispatcherHost* dispatcher_host, int request_id)
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), 306 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
306 context_); 307 context_);
307 operations_.AddWithID(operation, request_id); 308 operations_.AddWithID(operation, request_id);
308 return operation; 309 return operation;
309 } 310 }
310 311
311 void FileSystemDispatcherHost::UnregisterOperation(int request_id) { 312 void FileSystemDispatcherHost::UnregisterOperation(int request_id) {
312 DCHECK(operations_.Lookup(request_id)); 313 DCHECK(operations_.Lookup(request_id));
313 operations_.Remove(request_id); 314 operations_.Remove(request_id);
314 } 315 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698