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

Side by Side Diff: webkit/plugins/ppapi/mock_plugin_delegate.cc

Issue 10387195: Open pepper files directly in browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 "webkit/plugins/ppapi/mock_plugin_delegate.h" 5 #include "webkit/plugins/ppapi/mock_plugin_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop_proxy.h" 8 #include "base/message_loop_proxy.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/shared_impl/ppapi_preferences.h" 10 #include "ppapi/shared_impl/ppapi_preferences.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 const AvailableSpaceCallback& callback) { 195 const AvailableSpaceCallback& callback) {
196 } 196 }
197 197
198 void MockPluginDelegate::WillUpdateFile(const GURL& file_path) { 198 void MockPluginDelegate::WillUpdateFile(const GURL& file_path) {
199 } 199 }
200 200
201 void MockPluginDelegate::DidUpdateFile(const GURL& file_path, int64_t delta) { 201 void MockPluginDelegate::DidUpdateFile(const GURL& file_path, int64_t delta) {
202 } 202 }
203 203
204 base::PlatformFileError MockPluginDelegate::OpenFile( 204 base::PlatformFileError MockPluginDelegate::OpenFile(
205 const PepperFilePath& path, 205 const ::ppapi::PepperFilePath& path,
206 int flags, 206 int flags,
207 base::PlatformFile* file) { 207 base::PlatformFile* file) {
208 return base::PLATFORM_FILE_ERROR_FAILED; 208 return base::PLATFORM_FILE_ERROR_FAILED;
209 } 209 }
210 210
211 base::PlatformFileError MockPluginDelegate::RenameFile( 211 base::PlatformFileError MockPluginDelegate::RenameFile(
212 const PepperFilePath& from_path, 212 const ::ppapi::PepperFilePath& from_path,
213 const PepperFilePath& to_path) { 213 const ::ppapi::PepperFilePath& to_path) {
214 return base::PLATFORM_FILE_ERROR_FAILED; 214 return base::PLATFORM_FILE_ERROR_FAILED;
215 } 215 }
216 216
217 base::PlatformFileError MockPluginDelegate::DeleteFileOrDir( 217 base::PlatformFileError MockPluginDelegate::DeleteFileOrDir(
218 const PepperFilePath& path, 218 const ::ppapi::PepperFilePath& path,
219 bool recursive) { 219 bool recursive) {
220 return base::PLATFORM_FILE_ERROR_FAILED; 220 return base::PLATFORM_FILE_ERROR_FAILED;
221 } 221 }
222 222
223 base::PlatformFileError MockPluginDelegate::CreateDir( 223 base::PlatformFileError MockPluginDelegate::CreateDir(
224 const PepperFilePath& path) { 224 const ::ppapi::PepperFilePath& path) {
225 return base::PLATFORM_FILE_ERROR_FAILED; 225 return base::PLATFORM_FILE_ERROR_FAILED;
226 } 226 }
227 227
228 base::PlatformFileError MockPluginDelegate::QueryFile( 228 base::PlatformFileError MockPluginDelegate::QueryFile(
229 const PepperFilePath& path, 229 const ::ppapi::PepperFilePath& path,
230 base::PlatformFileInfo* info) { 230 base::PlatformFileInfo* info) {
231 return base::PLATFORM_FILE_ERROR_FAILED; 231 return base::PLATFORM_FILE_ERROR_FAILED;
232 } 232 }
233 233
234 base::PlatformFileError MockPluginDelegate::GetDirContents( 234 base::PlatformFileError MockPluginDelegate::GetDirContents(
235 const PepperFilePath& path, 235 const ::ppapi::PepperFilePath& path,
236 DirContents* contents) { 236 ::ppapi::DirContents* contents) {
237 return base::PLATFORM_FILE_ERROR_FAILED; 237 return base::PLATFORM_FILE_ERROR_FAILED;
238 } 238 }
239 239
240 void MockPluginDelegate::SyncGetFileSystemPlatformPath( 240 void MockPluginDelegate::SyncGetFileSystemPlatformPath(
241 const GURL& url, 241 const GURL& url,
242 FilePath* platform_path) { 242 FilePath* platform_path) {
243 DCHECK(platform_path); 243 DCHECK(platform_path);
244 *platform_path = FilePath(); 244 *platform_path = FilePath();
245 } 245 }
246 246
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 MockPluginDelegate::CreateClipboardClient() const { 449 MockPluginDelegate::CreateClipboardClient() const {
450 return NULL; 450 return NULL;
451 } 451 }
452 452
453 std::string MockPluginDelegate::GetDeviceID() { 453 std::string MockPluginDelegate::GetDeviceID() {
454 return std::string(); 454 return std::string();
455 } 455 }
456 456
457 } // namespace ppapi 457 } // namespace ppapi
458 } // namespace webkit 458 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698