| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 ::ppapi::PepperFilePath& path, | 235 const ::ppapi::PepperFilePath& path, |
| 236 ::ppapi::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 base::PlatformFileError MockPluginDelegate::CreateTemporaryFile( |
| 241 base::PlatformFile* file) { |
| 242 return base::PLATFORM_FILE_ERROR_FAILED; |
| 243 } |
| 244 |
| 240 void MockPluginDelegate::SyncGetFileSystemPlatformPath( | 245 void MockPluginDelegate::SyncGetFileSystemPlatformPath( |
| 241 const GURL& url, | 246 const GURL& url, |
| 242 FilePath* platform_path) { | 247 FilePath* platform_path) { |
| 243 DCHECK(platform_path); | 248 DCHECK(platform_path); |
| 244 *platform_path = FilePath(); | 249 *platform_path = FilePath(); |
| 245 } | 250 } |
| 246 | 251 |
| 247 scoped_refptr<base::MessageLoopProxy> | 252 scoped_refptr<base::MessageLoopProxy> |
| 248 MockPluginDelegate::GetFileThreadMessageLoopProxy() { | 253 MockPluginDelegate::GetFileThreadMessageLoopProxy() { |
| 249 return scoped_refptr<base::MessageLoopProxy>(); | 254 return scoped_refptr<base::MessageLoopProxy>(); |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 MockPluginDelegate::CreateClipboardClient() const { | 454 MockPluginDelegate::CreateClipboardClient() const { |
| 450 return NULL; | 455 return NULL; |
| 451 } | 456 } |
| 452 | 457 |
| 453 std::string MockPluginDelegate::GetDeviceID() { | 458 std::string MockPluginDelegate::GetDeviceID() { |
| 454 return std::string(); | 459 return std::string(); |
| 455 } | 460 } |
| 456 | 461 |
| 457 } // namespace ppapi | 462 } // namespace ppapi |
| 458 } // namespace webkit | 463 } // namespace webkit |
| OLD | NEW |