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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/file_system_context.h ('k') | webkit/fileapi/file_system_context_unittest.cc » ('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/file_system_context.h" 5 #include "webkit/fileapi/file_system_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 callback.Run(error, filesystem_name, filesystem_root); 51 callback.Run(error, filesystem_name, filesystem_root);
52 } 52 }
53 53
54 } // namespace 54 } // namespace
55 55
56 FileSystemContext::FileSystemContext( 56 FileSystemContext::FileSystemContext(
57 scoped_ptr<FileSystemTaskRunners> task_runners, 57 scoped_ptr<FileSystemTaskRunners> task_runners,
58 ExternalMountPoints* external_mount_points, 58 ExternalMountPoints* external_mount_points,
59 quota::SpecialStoragePolicy* special_storage_policy, 59 quota::SpecialStoragePolicy* special_storage_policy,
60 quota::QuotaManagerProxy* quota_manager_proxy, 60 quota::QuotaManagerProxy* quota_manager_proxy,
61 const FilePath& partition_path, 61 const base::FilePath& partition_path,
62 const FileSystemOptions& options) 62 const FileSystemOptions& options)
63 : task_runners_(task_runners.Pass()), 63 : task_runners_(task_runners.Pass()),
64 quota_manager_proxy_(quota_manager_proxy), 64 quota_manager_proxy_(quota_manager_proxy),
65 sandbox_provider_( 65 sandbox_provider_(
66 new SandboxMountPointProvider( 66 new SandboxMountPointProvider(
67 quota_manager_proxy, 67 quota_manager_proxy,
68 task_runners_->file_task_runner(), 68 task_runners_->file_task_runner(),
69 partition_path, 69 partition_path,
70 options)), 70 options)),
71 isolated_provider_(new IsolatedMountPointProvider(partition_path)), 71 isolated_provider_(new IsolatedMountPointProvider(partition_path)),
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 sync_context_ = sync_context; 315 sync_context_ = sync_context;
316 } 316 }
317 317
318 FileSystemURL FileSystemContext::CrackURL(const GURL& url) const { 318 FileSystemURL FileSystemContext::CrackURL(const GURL& url) const {
319 return CrackFileSystemURL(FileSystemURL(url)); 319 return CrackFileSystemURL(FileSystemURL(url));
320 } 320 }
321 321
322 FileSystemURL FileSystemContext::CreateCrackedFileSystemURL( 322 FileSystemURL FileSystemContext::CreateCrackedFileSystemURL(
323 const GURL& origin, 323 const GURL& origin,
324 FileSystemType type, 324 FileSystemType type,
325 const FilePath& path) const { 325 const base::FilePath& path) const {
326 return CrackFileSystemURL(FileSystemURL(origin, type, path)); 326 return CrackFileSystemURL(FileSystemURL(origin, type, path));
327 } 327 }
328 328
329 FileSystemContext::~FileSystemContext() { 329 FileSystemContext::~FileSystemContext() {
330 task_runners_->file_task_runner()->DeleteSoon( 330 task_runners_->file_task_runner()->DeleteSoon(
331 FROM_HERE, change_tracker_.release()); 331 FROM_HERE, change_tracker_.release());
332 } 332 }
333 333
334 void FileSystemContext::DeleteOnCorrectThread() const { 334 void FileSystemContext::DeleteOnCorrectThread() const {
335 if (!task_runners_->io_task_runner()->RunsTasksOnCurrentThread() && 335 if (!task_runners_->io_task_runner()->RunsTasksOnCurrentThread() &&
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 FileSystemFileUtil* FileSystemContext::GetFileUtil( 367 FileSystemFileUtil* FileSystemContext::GetFileUtil(
368 FileSystemType type) const { 368 FileSystemType type) const {
369 FileSystemMountPointProvider* mount_point_provider = 369 FileSystemMountPointProvider* mount_point_provider =
370 GetMountPointProvider(type); 370 GetMountPointProvider(type);
371 if (!mount_point_provider) 371 if (!mount_point_provider)
372 return NULL; 372 return NULL;
373 return mount_point_provider->GetFileUtil(type); 373 return mount_point_provider->GetFileUtil(type);
374 } 374 }
375 375
376 } // namespace fileapi 376 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_context.h ('k') | webkit/fileapi/file_system_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698