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

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

Issue 10386069: Add RegisterMountPointProvider and TestMountPointProvider for testing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix Created 8 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
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/isolated_mount_point_provider.h" 5 #include "webkit/fileapi/isolated_mount_point_provider.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 std::string fsid; 113 std::string fsid;
114 FilePath path; 114 FilePath path;
115 if (!isolated_context()->CrackIsolatedPath(virtual_path, &fsid, NULL, &path)) 115 if (!isolated_context()->CrackIsolatedPath(virtual_path, &fsid, NULL, &path))
116 return NULL; 116 return NULL;
117 if (path.empty()) 117 if (path.empty())
118 return NULL; 118 return NULL;
119 return new webkit_blob::LocalFileReader( 119 return new webkit_blob::LocalFileReader(
120 context->file_task_runner(), path, offset, base::Time()); 120 context->file_task_runner(), path, offset, base::Time());
121 } 121 }
122 122
123 FileSystemQuotaUtil* IsolatedMountPointProvider::GetQuotaUtil() {
124 // No quota support.
125 return NULL;
126 }
127
123 IsolatedContext* IsolatedMountPointProvider::isolated_context() const { 128 IsolatedContext* IsolatedMountPointProvider::isolated_context() const {
124 return IsolatedContext::GetInstance(); 129 return IsolatedContext::GetInstance();
125 } 130 }
126 131
127 } // namespace fileapi 132 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/isolated_mount_point_provider.h ('k') | webkit/fileapi/sandbox_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698