| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/arc/fileapi/arc_documents_provider_backend_del
egate.h" | 5 #include "chrome/browser/chromeos/arc/fileapi/arc_documents_provider_backend_del
egate.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 const storage::FileSystemURL& url, | 49 const storage::FileSystemURL& url, |
| 50 int64_t offset, | 50 int64_t offset, |
| 51 storage::FileSystemContext* context) { | 51 storage::FileSystemContext* context) { |
| 52 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 52 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 53 NOTREACHED(); // Read-only file system. | 53 NOTREACHED(); // Read-only file system. |
| 54 return nullptr; | 54 return nullptr; |
| 55 } | 55 } |
| 56 | 56 |
| 57 storage::WatcherManager* ArcDocumentsProviderBackendDelegate::GetWatcherManager( | 57 storage::WatcherManager* ArcDocumentsProviderBackendDelegate::GetWatcherManager( |
| 58 storage::FileSystemType type) { | 58 storage::FileSystemType type) { |
| 59 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 59 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 60 NOTREACHED(); // Non-watchable file system. | 60 NOTREACHED(); // Non-watchable file system. |
| 61 return nullptr; | 61 return nullptr; |
| 62 } | 62 } |
| 63 | 63 |
| 64 void ArcDocumentsProviderBackendDelegate::GetRedirectURLForContents( | 64 void ArcDocumentsProviderBackendDelegate::GetRedirectURLForContents( |
| 65 const storage::FileSystemURL& url, | 65 const storage::FileSystemURL& url, |
| 66 const storage::URLCallback& callback) { | 66 const storage::URLCallback& callback) { |
| 67 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 67 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 68 NOTREACHED(); // Never called by chromeos::FileSystemBackend. | 68 NOTREACHED(); // Never called by chromeos::FileSystemBackend. |
| 69 callback.Run(GURL()); | 69 callback.Run(GURL()); |
| 70 } | 70 } |
| 71 | 71 |
| 72 } // namespace arc | 72 } // namespace arc |
| OLD | NEW |