Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/message_loop_proxy.h" | 7 #include "base/message_loop_proxy.h" |
| 8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
| 9 #include "ppapi/shared_impl/ppapi_preferences.h" | 9 #include "ppapi/shared_impl/ppapi_preferences.h" |
| 10 | 10 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 181 base::PlatformFileInfo* info) { | 181 base::PlatformFileInfo* info) { |
| 182 return base::PLATFORM_FILE_ERROR_FAILED; | 182 return base::PLATFORM_FILE_ERROR_FAILED; |
| 183 } | 183 } |
| 184 | 184 |
| 185 base::PlatformFileError MockPluginDelegate::GetDirContents( | 185 base::PlatformFileError MockPluginDelegate::GetDirContents( |
| 186 const PepperFilePath& path, | 186 const PepperFilePath& path, |
| 187 DirContents* contents) { | 187 DirContents* contents) { |
| 188 return base::PLATFORM_FILE_ERROR_FAILED; | 188 return base::PLATFORM_FILE_ERROR_FAILED; |
| 189 } | 189 } |
| 190 | 190 |
| 191 void MockPluginDelegate::SyncGetFileSystemPlatformPath( | |
| 192 const GURL& url, | |
| 193 FilePath* platform_path) { | |
|
ericu
2011/08/17 01:14:31
Perhaps this should clear platform_path, as the re
kinuko
2011/08/17 07:55:28
Done.
| |
| 194 } | |
| 195 | |
| 191 void MockPluginDelegate::PublishPolicy(const std::string& policy_json) { | 196 void MockPluginDelegate::PublishPolicy(const std::string& policy_json) { |
| 192 } | 197 } |
| 193 | 198 |
| 194 scoped_refptr<base::MessageLoopProxy> | 199 scoped_refptr<base::MessageLoopProxy> |
| 195 MockPluginDelegate::GetFileThreadMessageLoopProxy() { | 200 MockPluginDelegate::GetFileThreadMessageLoopProxy() { |
| 196 return scoped_refptr<base::MessageLoopProxy>(); | 201 return scoped_refptr<base::MessageLoopProxy>(); |
| 197 } | 202 } |
| 198 | 203 |
| 199 int32_t MockPluginDelegate::ConnectTcp( | 204 int32_t MockPluginDelegate::ConnectTcp( |
| 200 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, | 205 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 275 uint32_t size) { | 280 uint32_t size) { |
| 276 return NULL; | 281 return NULL; |
| 277 } | 282 } |
| 278 | 283 |
| 279 ::ppapi::Preferences MockPluginDelegate::GetPreferences() { | 284 ::ppapi::Preferences MockPluginDelegate::GetPreferences() { |
| 280 return ::ppapi::Preferences(); | 285 return ::ppapi::Preferences(); |
| 281 } | 286 } |
| 282 | 287 |
| 283 } // namespace ppapi | 288 } // namespace ppapi |
| 284 } // namespace webkit | 289 } // namespace webkit |
| OLD | NEW |