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

Side by Side Diff: webkit/chromeos/fileapi/cros_mount_point_provider.cc

Issue 6749021: Added new fileBrowserPrivate and fileHandler extension APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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) 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 "webkit/chromeos/fileapi/cros_mount_point_provider.h" 5 #include "webkit/chromeos/fileapi/cros_mount_point_provider.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_callback_factory.h" 8 #include "base/memory/scoped_callback_factory.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // TODO(zelidrag): Share this code with SandboxMountPointProvider impl. 114 // TODO(zelidrag): Share this code with SandboxMountPointProvider impl.
115 bool CrosMountPointProvider::IsRestrictedFileName(const FilePath& path) const { 115 bool CrosMountPointProvider::IsRestrictedFileName(const FilePath& path) const {
116 return false; 116 return false;
117 } 117 }
118 118
119 bool CrosMountPointProvider::IsAccessAllowed(const GURL& origin_url) { 119 bool CrosMountPointProvider::IsAccessAllowed(const GURL& origin_url) {
120 return special_storage_policy_->IsLocalFileSystemAccessAllowed(origin_url); 120 return special_storage_policy_->IsLocalFileSystemAccessAllowed(origin_url);
121 } 121 }
122 122
123 std::vector<FilePath> CrosMountPointProvider::GetRootDirectories() const {
124 std::vector<FilePath> root_dirs;
125 for (MountPointMap::const_iterator iter = mount_point_map_.begin();
126 iter != mount_point_map_.end();
127 ++iter) {
128 FilePath path(iter->second);
129 root_dirs.push_back(path.Append(iter->first));
130 }
131 return root_dirs;
132 }
133
123 } // namespace chromeos 134 } // namespace chromeos
124 135
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698