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