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

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

Issue 8912009: Move BrowserMessageFilter to public, and into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 9 years 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 "content/public/browser/user_metrics.h" 15 #include "content/public/browser/user_metrics.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 #include "ipc/ipc_platform_file.h" 17 #include "ipc/ipc_platform_file.h"
18 #include "net/url_request/url_request_context.h" 18 #include "net/url_request/url_request_context.h"
19 #include "net/url_request/url_request_context_getter.h" 19 #include "net/url_request/url_request_context_getter.h"
20 #include "webkit/fileapi/file_system_callback_dispatcher.h" 20 #include "webkit/fileapi/file_system_callback_dispatcher.h"
21 #include "webkit/fileapi/file_system_context.h" 21 #include "webkit/fileapi/file_system_context.h"
22 #include "webkit/fileapi/file_system_operation.h" 22 #include "webkit/fileapi/file_system_operation.h"
23 #include "webkit/fileapi/file_system_operation.h" 23 #include "webkit/fileapi/file_system_operation.h"
24 #include "webkit/fileapi/file_system_quota_util.h" 24 #include "webkit/fileapi/file_system_quota_util.h"
25 #include "webkit/fileapi/file_system_util.h" 25 #include "webkit/fileapi/file_system_util.h"
26 26
27 using content::BrowserMessageFilter;
27 using content::BrowserThread; 28 using content::BrowserThread;
28 using content::UserMetricsAction; 29 using content::UserMetricsAction;
29 using fileapi::FileSystemCallbackDispatcher; 30 using fileapi::FileSystemCallbackDispatcher;
30 using fileapi::FileSystemFileUtil; 31 using fileapi::FileSystemFileUtil;
31 using fileapi::FileSystemOperation; 32 using fileapi::FileSystemOperation;
32 using fileapi::FileSystemOperationContext; 33 using fileapi::FileSystemOperationContext;
33 34
34 class BrowserFileSystemCallbackDispatcher 35 class BrowserFileSystemCallbackDispatcher
35 : public FileSystemCallbackDispatcher { 36 : public FileSystemCallbackDispatcher {
36 public: 37 public:
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), 314 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
314 context_); 315 context_);
315 operations_.AddWithID(operation, request_id); 316 operations_.AddWithID(operation, request_id);
316 return operation; 317 return operation;
317 } 318 }
318 319
319 void FileSystemDispatcherHost::UnregisterOperation(int request_id) { 320 void FileSystemDispatcherHost::UnregisterOperation(int request_id) {
320 DCHECK(operations_.Lookup(request_id)); 321 DCHECK(operations_.Lookup(request_id));
321 operations_.Remove(request_id); 322 operations_.Remove(request_id);
322 } 323 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698