OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/chromeos/fileapi/file_system_backend.h" | 5 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "chrome/browser/chromeos/fileapi/file_access_permissions.h" | 10 #include "chrome/browser/chromeos/fileapi/file_access_permissions.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 } | 138 } |
139 | 139 |
140 callback.Run(GURL(root_url), name, base::File::FILE_OK); | 140 callback.Run(GURL(root_url), name, base::File::FILE_OK); |
141 } | 141 } |
142 | 142 |
143 storage::FileSystemQuotaUtil* FileSystemBackend::GetQuotaUtil() { | 143 storage::FileSystemQuotaUtil* FileSystemBackend::GetQuotaUtil() { |
144 // No quota support. | 144 // No quota support. |
145 return NULL; | 145 return NULL; |
146 } | 146 } |
147 | 147 |
| 148 const storage::UpdateObserverList* FileSystemBackend::GetUpdateObservers( |
| 149 storage::FileSystemType type) const { |
| 150 return NULL; |
| 151 } |
| 152 |
| 153 const storage::ChangeObserverList* FileSystemBackend::GetChangeObservers( |
| 154 storage::FileSystemType type) const { |
| 155 return NULL; |
| 156 } |
| 157 |
| 158 const storage::AccessObserverList* FileSystemBackend::GetAccessObservers( |
| 159 storage::FileSystemType type) const { |
| 160 return NULL; |
| 161 } |
| 162 |
148 bool FileSystemBackend::IsAccessAllowed( | 163 bool FileSystemBackend::IsAccessAllowed( |
149 const storage::FileSystemURL& url) const { | 164 const storage::FileSystemURL& url) const { |
150 if (!url.is_valid()) | 165 if (!url.is_valid()) |
151 return false; | 166 return false; |
152 | 167 |
153 // No extra check is needed for isolated file systems. | 168 // No extra check is needed for isolated file systems. |
154 if (url.mount_type() == storage::kFileSystemTypeIsolated) | 169 if (url.mount_type() == storage::kFileSystemTypeIsolated) |
155 return true; | 170 return true; |
156 | 171 |
157 if (!CanHandleURL(url)) | 172 if (!CanHandleURL(url)) |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 case storage::kFileSystemTypeRestrictedNativeLocal: | 425 case storage::kFileSystemTypeRestrictedNativeLocal: |
411 callback.Run(GURL()); | 426 callback.Run(GURL()); |
412 return; | 427 return; |
413 default: | 428 default: |
414 NOTREACHED(); | 429 NOTREACHED(); |
415 } | 430 } |
416 callback.Run(GURL()); | 431 callback.Run(GURL()); |
417 } | 432 } |
418 | 433 |
419 } // namespace chromeos | 434 } // namespace chromeos |
OLD | NEW |