| OLD | NEW |
| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 const GURL& origin, quota::StorageType type, | 213 const GURL& origin, quota::StorageType type, |
| 214 const AvailableSpaceCallback& callback) { | 214 const AvailableSpaceCallback& callback) { |
| 215 } | 215 } |
| 216 | 216 |
| 217 void MockPluginDelegate::WillUpdateFile(const GURL& file_path) { | 217 void MockPluginDelegate::WillUpdateFile(const GURL& file_path) { |
| 218 } | 218 } |
| 219 | 219 |
| 220 void MockPluginDelegate::DidUpdateFile(const GURL& file_path, int64_t delta) { | 220 void MockPluginDelegate::DidUpdateFile(const GURL& file_path, int64_t delta) { |
| 221 } | 221 } |
| 222 | 222 |
| 223 base::PlatformFileError MockPluginDelegate::OpenFile( |
| 224 const ::ppapi::PepperFilePath& path, |
| 225 int flags, |
| 226 base::PlatformFile* file) { |
| 227 return base::PLATFORM_FILE_ERROR_FAILED; |
| 228 } |
| 229 |
| 230 base::PlatformFileError MockPluginDelegate::RenameFile( |
| 231 const ::ppapi::PepperFilePath& from_path, |
| 232 const ::ppapi::PepperFilePath& to_path) { |
| 233 return base::PLATFORM_FILE_ERROR_FAILED; |
| 234 } |
| 235 |
| 236 base::PlatformFileError MockPluginDelegate::DeleteFileOrDir( |
| 237 const ::ppapi::PepperFilePath& path, |
| 238 bool recursive) { |
| 239 return base::PLATFORM_FILE_ERROR_FAILED; |
| 240 } |
| 241 |
| 242 base::PlatformFileError MockPluginDelegate::CreateDir( |
| 243 const ::ppapi::PepperFilePath& path) { |
| 244 return base::PLATFORM_FILE_ERROR_FAILED; |
| 245 } |
| 246 |
| 247 base::PlatformFileError MockPluginDelegate::QueryFile( |
| 248 const ::ppapi::PepperFilePath& path, |
| 249 base::PlatformFileInfo* info) { |
| 250 return base::PLATFORM_FILE_ERROR_FAILED; |
| 251 } |
| 252 |
| 253 base::PlatformFileError MockPluginDelegate::GetDirContents( |
| 254 const ::ppapi::PepperFilePath& path, |
| 255 ::ppapi::DirContents* contents) { |
| 256 return base::PLATFORM_FILE_ERROR_FAILED; |
| 257 } |
| 258 |
| 259 base::PlatformFileError MockPluginDelegate::CreateTemporaryFile( |
| 260 base::PlatformFile* file) { |
| 261 return base::PLATFORM_FILE_ERROR_FAILED; |
| 262 } |
| 263 |
| 223 void MockPluginDelegate::SyncGetFileSystemPlatformPath( | 264 void MockPluginDelegate::SyncGetFileSystemPlatformPath( |
| 224 const GURL& url, | 265 const GURL& url, |
| 225 FilePath* platform_path) { | 266 FilePath* platform_path) { |
| 226 DCHECK(platform_path); | 267 DCHECK(platform_path); |
| 227 *platform_path = FilePath(); | 268 *platform_path = FilePath(); |
| 228 } | 269 } |
| 229 | 270 |
| 230 scoped_refptr<base::MessageLoopProxy> | 271 scoped_refptr<base::MessageLoopProxy> |
| 231 MockPluginDelegate::GetFileThreadMessageLoopProxy() { | 272 MockPluginDelegate::GetFileThreadMessageLoopProxy() { |
| 232 return scoped_refptr<base::MessageLoopProxy>(); | 273 return scoped_refptr<base::MessageLoopProxy>(); |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 } | 465 } |
| 425 | 466 |
| 426 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions( | 467 PP_FlashLSORestrictions MockPluginDelegate::GetLocalDataRestrictions( |
| 427 const GURL& document_url, | 468 const GURL& document_url, |
| 428 const GURL& plugin_url) { | 469 const GURL& plugin_url) { |
| 429 return PP_FLASHLSORESTRICTIONS_NONE; | 470 return PP_FLASHLSORESTRICTIONS_NONE; |
| 430 } | 471 } |
| 431 | 472 |
| 432 } // namespace ppapi | 473 } // namespace ppapi |
| 433 } // namespace webkit | 474 } // namespace webkit |
| OLD | NEW |