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

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

Issue 6609009: Remove FileSystemQuotaManager class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test fix Created 9 years, 9 months 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
« no previous file with comments | « no previous file | webkit/fileapi/file_system_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "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/threading/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"
22 #include "webkit/fileapi/file_system_callback_dispatcher.h" 22 #include "webkit/fileapi/file_system_callback_dispatcher.h"
23 #include "webkit/fileapi/file_system_context.h" 23 #include "webkit/fileapi/file_system_context.h"
24 #include "webkit/fileapi/file_system_operation.h" 24 #include "webkit/fileapi/file_system_operation.h"
25 #include "webkit/fileapi/file_system_operation.h" 25 #include "webkit/fileapi/file_system_operation.h"
26 #include "webkit/fileapi/file_system_path_manager.h" 26 #include "webkit/fileapi/file_system_path_manager.h"
27 #include "webkit/fileapi/file_system_quota_manager.h"
28 27
29 using fileapi::FileSystemCallbackDispatcher; 28 using fileapi::FileSystemCallbackDispatcher;
30 using fileapi::FileSystemOperation; 29 using fileapi::FileSystemOperation;
31 using fileapi::FileSystemQuotaManager;
32 30
33 class BrowserFileSystemCallbackDispatcher 31 class BrowserFileSystemCallbackDispatcher
34 : public FileSystemCallbackDispatcher { 32 : public FileSystemCallbackDispatcher {
35 public: 33 public:
36 BrowserFileSystemCallbackDispatcher( 34 BrowserFileSystemCallbackDispatcher(
37 FileSystemDispatcherHost* dispatcher_host, int request_id) 35 FileSystemDispatcherHost* dispatcher_host, int request_id)
38 : dispatcher_host_(dispatcher_host), 36 : dispatcher_host_(dispatcher_host),
39 request_id_(request_id) { 37 request_id_(request_id) {
40 DCHECK(dispatcher_host_); 38 DCHECK(dispatcher_host_);
41 } 39 }
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE), 239 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE),
242 context_); 240 context_);
243 operations_.AddWithID(operation, request_id); 241 operations_.AddWithID(operation, request_id);
244 return operation; 242 return operation;
245 } 243 }
246 244
247 void FileSystemDispatcherHost::UnregisterOperation(int request_id) { 245 void FileSystemDispatcherHost::UnregisterOperation(int request_id) {
248 DCHECK(operations_.Lookup(request_id)); 246 DCHECK(operations_.Lookup(request_id));
249 operations_.Remove(request_id); 247 operations_.Remove(request_id);
250 } 248 }
OLDNEW
« no previous file with comments | « no previous file | webkit/fileapi/file_system_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698