| 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 "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| 11 #include "storage/browser/fileapi/file_stream_reader.h" | 11 #include "storage/browser/fileapi/file_stream_reader.h" |
| 12 #include "storage/browser/fileapi/file_stream_writer.h" | 12 #include "storage/browser/fileapi/file_stream_writer.h" |
| 13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 using content::BrowserThread; | 15 using content::BrowserThread; |
| 16 | 16 |
| 17 namespace arc { | 17 namespace arc { |
| 18 | 18 |
| 19 ArcDocumentsProviderBackendDelegate::ArcDocumentsProviderBackendDelegate() = | 19 ArcDocumentsProviderBackendDelegate::ArcDocumentsProviderBackendDelegate() |
| 20 default; | 20 : async_file_util_(&roots_) {} |
| 21 | 21 |
| 22 ArcDocumentsProviderBackendDelegate::~ArcDocumentsProviderBackendDelegate() { | 22 ArcDocumentsProviderBackendDelegate::~ArcDocumentsProviderBackendDelegate() { |
| 23 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 23 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 24 } | 24 } |
| 25 | 25 |
| 26 storage::AsyncFileUtil* ArcDocumentsProviderBackendDelegate::GetAsyncFileUtil( | 26 storage::AsyncFileUtil* ArcDocumentsProviderBackendDelegate::GetAsyncFileUtil( |
| 27 storage::FileSystemType type) { | 27 storage::FileSystemType type) { |
| 28 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 28 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 29 return &async_file_util_; | 29 return &async_file_util_; |
| 30 } | 30 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 60 | 60 |
| 61 void ArcDocumentsProviderBackendDelegate::GetRedirectURLForContents( | 61 void ArcDocumentsProviderBackendDelegate::GetRedirectURLForContents( |
| 62 const storage::FileSystemURL& url, | 62 const storage::FileSystemURL& url, |
| 63 const storage::URLCallback& callback) { | 63 const storage::URLCallback& callback) { |
| 64 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 64 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 65 NOTIMPLEMENTED(); // TODO(crbug.com/671511): Implement this function. | 65 NOTIMPLEMENTED(); // TODO(crbug.com/671511): Implement this function. |
| 66 callback.Run(GURL()); | 66 callback.Run(GURL()); |
| 67 } | 67 } |
| 68 | 68 |
| 69 } // namespace arc | 69 } // namespace arc |
| OLD | NEW |