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

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

Issue 2411323002: arc: Empty implementation of ARC content file system (Closed)
Patch Set: Created 4 years, 2 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
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_content_file_system_backend_de legate.h"
6
7 #include "chrome/browser/chromeos/arc/fileapi/arc_content_file_system_async_file _util.h"
8 #include "chrome/browser/chromeos/arc/fileapi/arc_content_file_system_file_strea m_reader.h"
9 #include "content/public/browser/browser_thread.h"
10 #include "storage/browser/fileapi/file_stream_writer.h"
11 #include "storage/browser/fileapi/file_system_url.h"
12
13 namespace arc {
14
15 ArcContentFileSystemBackendDelegate::ArcContentFileSystemBackendDelegate()
16 : async_file_util_(new ArcContentFileSystemAsyncFileUtil) {}
hidehiko 2016/10/12 09:59:07 () is encouraged to add: "new ...FileUtil()"
hashimoto 2016/10/12 10:08:11 Done.
17
18 ArcContentFileSystemBackendDelegate::~ArcContentFileSystemBackendDelegate() {}
hidehiko 2016/10/12 09:59:07 = default.
hashimoto 2016/10/12 10:08:11 Done.
19
20 storage::AsyncFileUtil* ArcContentFileSystemBackendDelegate::GetAsyncFileUtil(
21 storage::FileSystemType type) {
22 DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
23 DCHECK_EQ(storage::kFileSystemTypeArcContent, type);
24 return async_file_util_.get();
25 }
26
27 std::unique_ptr<storage::FileStreamReader>
28 ArcContentFileSystemBackendDelegate::CreateFileStreamReader(
29 const storage::FileSystemURL& url,
30 int64_t offset,
31 int64_t max_bytes_to_read,
32 const base::Time& expected_modification_time,
33 storage::FileSystemContext* context) {
34 DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
35 DCHECK_EQ(storage::kFileSystemTypeArcContent, url.type());
36 return std::unique_ptr<storage::FileStreamReader>(
37 new ArcContentFileSystemFileStreamReader(url, offset, max_bytes_to_read));
38 }
39
40 std::unique_ptr<storage::FileStreamWriter>
41 ArcContentFileSystemBackendDelegate::CreateFileStreamWriter(
42 const storage::FileSystemURL& url,
43 int64_t offset,
44 storage::FileSystemContext* context) {
45 NOTIMPLEMENTED();
46 return std::unique_ptr<storage::FileStreamWriter>();
47 }
48
49 storage::WatcherManager* ArcContentFileSystemBackendDelegate::GetWatcherManager(
50 storage::FileSystemType type) {
51 NOTIMPLEMENTED();
52 return nullptr;
53 }
54
55 void ArcContentFileSystemBackendDelegate::GetRedirectURLForContents(
56 const storage::FileSystemURL& url,
57 const storage::URLCallback& callback) {
58 NOTIMPLEMENTED();
59 }
60
61 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698