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

Side by Side Diff: webkit/fileapi/media_file_system_operation.cc

Issue 10781014: Isolated FS for media devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 "webkit/fileapi/media_file_system_operation.h"
6
7 #include "base/bind.h"
8 #include "base/utf_string_conversions.h"
9 #include "base/platform_file.h"
10 #include "base/values.h"
11 #include "googleurl/src/gurl.h"
12 #include "webkit/fileapi/media_file_system_proxy.h"
13 // #include "webkit/fileapi/remote_file_stream_writer.h"
14 #include "webkit/fileapi/file_system_callback_dispatcher.h"
15 #include "webkit/fileapi/file_system_context.h"
16 #include "webkit/fileapi/file_system_url.h"
17 #include "webkit/fileapi/file_writer_delegate.h"
18
19 using fileapi::FileSystemURL;
20
21 namespace fileapi {
22
23 MediaFileSystemOperation::MediaFileSystemOperation(
24 FileSystemContext* context,
25 scoped_refptr<fileapi::MediaFileSystemProxyInterface>
26 media_filesystem_proxy)
27 : operation_context_(context),
28 media_filesystem_proxy_(media_filesystem_proxy){
29 }
30
31 MediaFileSystemOperation::~MediaFileSystemOperation() {
32 }
33
34 void MediaFileSystemOperation::GetMetadata(const FileSystemURL& url,
35 const GetMetadataCallback& callback) {
36 NOTIMPLEMENTED();
37 }
38
39 void MediaFileSystemOperation::DirectoryExists(const FileSystemURL& url,
40 const StatusCallback& callback) {
41 NOTIMPLEMENTED();
42 }
43
44 void MediaFileSystemOperation::FileExists(const FileSystemURL& url,
45 const StatusCallback& callback) {
46 NOTIMPLEMENTED();
47 }
48
49 void MediaFileSystemOperation::ReadDirectory(const FileSystemURL& url,
50 const ReadDirectoryCallback& callback) {
51 media_filesystem_proxy_->ReadDirectory(&operation_context_, url,
52 base::Bind(&MediaFileSystemOperation::DidReadDirectory,
53 base::Owned(this), callback));
54 }
55
56 void MediaFileSystemOperation::Remove(const FileSystemURL& url, bool recursive,
57 const StatusCallback& callback) {
58 NOTIMPLEMENTED();
59 }
60
61
62 void MediaFileSystemOperation::CreateDirectory(
63 const FileSystemURL& url, bool exclusive, bool recursive,
64 const StatusCallback& callback) {
65 NOTIMPLEMENTED();
66 }
67
68 void MediaFileSystemOperation::CreateFile(const FileSystemURL& url,
69 bool exclusive,
70 const StatusCallback& callback) {
71 NOTIMPLEMENTED();
72 }
73
74 void MediaFileSystemOperation::Copy(const FileSystemURL& src_url,
75 const FileSystemURL& dest_url,
76 const StatusCallback& callback) {
77 NOTIMPLEMENTED();
78 }
79
80 void MediaFileSystemOperation::Move(const FileSystemURL& src_url,
81 const FileSystemURL& dest_url,
82 const StatusCallback& callback) {
83 NOTIMPLEMENTED();
84 }
85
86 void MediaFileSystemOperation::Write(
87 const net::URLRequestContext* url_request_context,
88 const FileSystemURL& url,
89 const GURL& blob_url,
90 int64 offset,
91 const WriteCallback& callback) {
92 NOTIMPLEMENTED();
93 }
94
95 void MediaFileSystemOperation::Truncate(const FileSystemURL& url,
96 int64 length,
97 const StatusCallback& callback) {
98 NOTIMPLEMENTED();
99 }
100
101 void MediaFileSystemOperation::Cancel(const StatusCallback& cancel_callback) {
102 NOTIMPLEMENTED();
103 }
104
105 void MediaFileSystemOperation::TouchFile(const FileSystemURL& url,
106 const base::Time& last_access_time,
107 const base::Time& last_modified_time,
108 const StatusCallback& callback) {
109 NOTIMPLEMENTED();
110 }
111
112 void MediaFileSystemOperation::OpenFile(const FileSystemURL& url,
113 int file_flags,
114 base::ProcessHandle peer_handle,
115 const OpenFileCallback& callback) {
116 NOTIMPLEMENTED();
117 }
118
119 void MediaFileSystemOperation::NotifyCloseFile(
120 const fileapi::FileSystemURL& url) {
121 NOTIMPLEMENTED();
122 }
123
124
125 void MediaFileSystemOperation::CreateSnapshotFile(
126 const fileapi::FileSystemURL& url,
127 const SnapshotFileCallback& callback){
128 NOTIMPLEMENTED();
129 }
130
131 fileapi::FileSystemOperation*
132 MediaFileSystemOperation::AsFileSystemOperation() {
133 NOTIMPLEMENTED();
134 return NULL;
135 }
136
137 void MediaFileSystemOperation::DidDirectoryExists(
138 const StatusCallback& callback,
139 base::PlatformFileError rv,
140 const base::PlatformFileInfo& file_info,
141 const FilePath& unused) {
142 NOTIMPLEMENTED();
143 }
144
145 void MediaFileSystemOperation::DidFileExists(
146 const StatusCallback& callback,
147 base::PlatformFileError rv,
148 const base::PlatformFileInfo& file_info,
149 const FilePath& unused) {
150 NOTIMPLEMENTED();
151 }
152
153 void MediaFileSystemOperation::DidGetMetadata(
154 const GetMetadataCallback& callback,
155 base::PlatformFileError rv,
156 const base::PlatformFileInfo& file_info,
157 const FilePath& platform_path) {
158 NOTIMPLEMENTED();
159 }
160
161 void MediaFileSystemOperation::DidReadDirectory(
162 const ReadDirectoryCallback& callback,
163 base::PlatformFileError rv,
164 const std::vector<base::FileUtilProxy::Entry>& entries,
165 bool has_more) {
166 NOTIMPLEMENTED();
167 callback.Run(rv, entries, has_more /* has_more */);
168 }
169
170 void MediaFileSystemOperation::DidWrite(
171 const WriteCallback& callback,
172 base::PlatformFileError rv,
173 int64 bytes,
174 bool complete) {
175 NOTIMPLEMENTED();
176 }
177
178 void MediaFileSystemOperation::DidFinishFileOperation(
179 const StatusCallback& callback,
180 base::PlatformFileError rv) {
181 NOTIMPLEMENTED();
182 }
183
184 void MediaFileSystemOperation::DidCreateSnapshotFile(
185 const SnapshotFileCallback& callback,
186 base::PlatformFileError result,
187 const base::PlatformFileInfo& file_info,
188 const FilePath& platform_path,
189 const scoped_refptr<webkit_blob::ShareableFileReference>& file_ref) {
190 NOTIMPLEMENTED();
191 }
192
193 void MediaFileSystemOperation::DidOpenFile(
194 const OpenFileCallback& callback,
195 base::PlatformFileError result,
196 base::PlatformFile file,
197 base::ProcessHandle peer_handle) {
198 NOTIMPLEMENTED();
199 }
200
201 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698