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

Side by Side Diff: webkit/fileapi/local_file_system_test_helper.cc

Issue 15442002: Move FileAPI sandboxed filesystem related code from webkit/fileapi to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 7 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 | « webkit/fileapi/local_file_system_operation.cc ('k') | webkit/fileapi/obfuscated_file_util.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "webkit/fileapi/local_file_system_test_helper.h" 5 #include "webkit/fileapi/local_file_system_test_helper.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
11 #include "webkit/browser/fileapi/file_system_usage_cache.h" 11 #include "webkit/browser/fileapi/file_system_usage_cache.h"
12 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h"
12 #include "webkit/fileapi/file_system_context.h" 13 #include "webkit/fileapi/file_system_context.h"
13 #include "webkit/fileapi/file_system_file_util.h" 14 #include "webkit/fileapi/file_system_file_util.h"
14 #include "webkit/fileapi/file_system_operation_context.h" 15 #include "webkit/fileapi/file_system_operation_context.h"
15 #include "webkit/fileapi/file_system_task_runners.h" 16 #include "webkit/fileapi/file_system_task_runners.h"
16 #include "webkit/fileapi/file_system_url.h" 17 #include "webkit/fileapi/file_system_url.h"
17 #include "webkit/fileapi/file_system_util.h" 18 #include "webkit/fileapi/file_system_util.h"
18 #include "webkit/fileapi/local_file_system_operation.h" 19 #include "webkit/fileapi/local_file_system_operation.h"
19 #include "webkit/fileapi/mock_file_system_context.h" 20 #include "webkit/fileapi/mock_file_system_context.h"
20 #include "webkit/fileapi/sandbox_mount_point_provider.h"
21 #include "webkit/quota/mock_special_storage_policy.h" 21 #include "webkit/quota/mock_special_storage_policy.h"
22 22
23 namespace fileapi { 23 namespace fileapi {
24 24
25 LocalFileSystemTestOriginHelper::LocalFileSystemTestOriginHelper( 25 LocalFileSystemTestOriginHelper::LocalFileSystemTestOriginHelper(
26 const GURL& origin, FileSystemType type) 26 const GURL& origin, FileSystemType type)
27 : origin_(origin), type_(type), file_util_(NULL) { 27 : origin_(origin), type_(type), file_util_(NULL) {
28 } 28 }
29 29
30 LocalFileSystemTestOriginHelper::LocalFileSystemTestOriginHelper() 30 LocalFileSystemTestOriginHelper::LocalFileSystemTestOriginHelper()
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 return file_system_context()->sandbox_provider()->usage_cache(); 159 return file_system_context()->sandbox_provider()->usage_cache();
160 } 160 }
161 161
162 void LocalFileSystemTestOriginHelper::SetUpFileUtil() { 162 void LocalFileSystemTestOriginHelper::SetUpFileUtil() {
163 DCHECK(file_system_context_); 163 DCHECK(file_system_context_);
164 file_util_ = file_system_context_->GetFileUtil(type_); 164 file_util_ = file_system_context_->GetFileUtil(type_);
165 DCHECK(file_util_); 165 DCHECK(file_util_);
166 } 166 }
167 167
168 } // namespace fileapi 168 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/local_file_system_operation.cc ('k') | webkit/fileapi/obfuscated_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698