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

Side by Side Diff: chrome/browser/chromeos/arc/fileapi/arc_documents_provider_backend_delegate.cc

Issue 2568033002: mediaview: Skeleton for ARC Documents Provider FS. (Closed)
Patch Set: Remove unused weak_ptr_factory_. Created 4 years 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/chromeos/arc/fileapi/arc_documents_provider_backend_del egate.h"
6
7 #include <memory>
Yusuke Sato 2016/12/13 18:58:56 nit: remove as the header already has it. https:/
Shuhei Takahashi 2016/12/14 03:24:55 Done.
8 #include <utility>
9
10 #include "base/logging.h"
11 #include "base/memory/ptr_util.h"
Yusuke Sato 2016/12/13 18:58:56 unused?
Shuhei Takahashi 2016/12/14 03:24:55 Done.
12 #include "content/public/browser/browser_thread.h"
13 #include "storage/browser/fileapi/file_stream_reader.h"
Yusuke Sato 2016/12/13 18:58:56 unused? (L13-14)
Shuhei Takahashi 2016/12/14 03:24:55 Actually they are used: std::unique_ptr<FileStream
14 #include "storage/browser/fileapi/file_stream_writer.h"
15 #include "url/gurl.h"
16
17 using content::BrowserThread;
18
19 namespace arc {
20
21 ArcDocumentsProviderBackendDelegate::ArcDocumentsProviderBackendDelegate() =
22 default;
23
24 ArcDocumentsProviderBackendDelegate::~ArcDocumentsProviderBackendDelegate() {
25 DCHECK_CURRENTLY_ON(BrowserThread::IO);
26 }
27
28 storage::AsyncFileUtil* ArcDocumentsProviderBackendDelegate::GetAsyncFileUtil(
29 storage::FileSystemType type) {
30 DCHECK_CURRENTLY_ON(BrowserThread::IO);
31 return &async_file_util_;
32 }
33
34 std::unique_ptr<storage::FileStreamReader>
35 ArcDocumentsProviderBackendDelegate::CreateFileStreamReader(
36 const storage::FileSystemURL& url,
37 int64_t offset,
38 int64_t max_bytes_to_read,
39 const base::Time& expected_modification_time,
40 storage::FileSystemContext* context) {
41 DCHECK_CURRENTLY_ON(BrowserThread::IO);
42 NOTIMPLEMENTED(); // TODO(crbug.com/671511): Implement this function.
43 return nullptr;
44 }
45
46 std::unique_ptr<storage::FileStreamWriter>
47 ArcDocumentsProviderBackendDelegate::CreateFileStreamWriter(
48 const storage::FileSystemURL& url,
49 int64_t offset,
50 storage::FileSystemContext* context) {
51 DCHECK_CURRENTLY_ON(BrowserThread::IO);
52 NOTREACHED(); // Read-only file system.
53 return nullptr;
54 }
55
56 storage::WatcherManager* ArcDocumentsProviderBackendDelegate::GetWatcherManager(
57 storage::FileSystemType type) {
58 DCHECK_CURRENTLY_ON(BrowserThread::UI);
59 NOTREACHED(); // Non-watchable file system.
60 return nullptr;
61 }
62
63 void ArcDocumentsProviderBackendDelegate::GetRedirectURLForContents(
64 const storage::FileSystemURL& url,
65 const storage::URLCallback& callback) {
66 DCHECK_CURRENTLY_ON(BrowserThread::IO);
67 NOTIMPLEMENTED(); // TODO(crbug.com/671511): Implement this function.
68 callback.Run(GURL());
69 }
70
71 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698