| 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 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 10 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 return base::PLATFORM_FILE_ERROR_FAILED; | 197 return base::PLATFORM_FILE_ERROR_FAILED; |
| 198 } | 198 } |
| 199 | 199 |
| 200 void MockPluginDelegate::SyncGetFileSystemPlatformPath( | 200 void MockPluginDelegate::SyncGetFileSystemPlatformPath( |
| 201 const GURL& url, | 201 const GURL& url, |
| 202 FilePath* platform_path) { | 202 FilePath* platform_path) { |
| 203 DCHECK(platform_path); | 203 DCHECK(platform_path); |
| 204 *platform_path = FilePath(); | 204 *platform_path = FilePath(); |
| 205 } | 205 } |
| 206 | 206 |
| 207 void MockPluginDelegate::PublishPolicy(const std::string& policy_json) { | |
| 208 } | |
| 209 | |
| 210 scoped_refptr<base::MessageLoopProxy> | 207 scoped_refptr<base::MessageLoopProxy> |
| 211 MockPluginDelegate::GetFileThreadMessageLoopProxy() { | 208 MockPluginDelegate::GetFileThreadMessageLoopProxy() { |
| 212 return scoped_refptr<base::MessageLoopProxy>(); | 209 return scoped_refptr<base::MessageLoopProxy>(); |
| 213 } | 210 } |
| 214 | 211 |
| 215 int32_t MockPluginDelegate::ConnectTcp( | 212 int32_t MockPluginDelegate::ConnectTcp( |
| 216 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, | 213 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, |
| 217 const char* host, | 214 const char* host, |
| 218 uint16_t port) { | 215 uint16_t port) { |
| 219 return PP_ERROR_FAILED; | 216 return PP_ERROR_FAILED; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 242 } | 239 } |
| 243 | 240 |
| 244 std::string MockPluginDelegate::GetDefaultEncoding() { | 241 std::string MockPluginDelegate::GetDefaultEncoding() { |
| 245 return "iso-8859-1"; | 242 return "iso-8859-1"; |
| 246 } | 243 } |
| 247 | 244 |
| 248 void MockPluginDelegate::ZoomLimitsChanged(double minimum_factor, | 245 void MockPluginDelegate::ZoomLimitsChanged(double minimum_factor, |
| 249 double maximum_factor) { | 246 double maximum_factor) { |
| 250 } | 247 } |
| 251 | 248 |
| 252 void MockPluginDelegate::SubscribeToPolicyUpdates(PluginInstance* instance) { | |
| 253 } | |
| 254 | |
| 255 std::string MockPluginDelegate::ResolveProxy(const GURL& url) { | 249 std::string MockPluginDelegate::ResolveProxy(const GURL& url) { |
| 256 return std::string(); | 250 return std::string(); |
| 257 } | 251 } |
| 258 | 252 |
| 259 void MockPluginDelegate::DidStartLoading() { | 253 void MockPluginDelegate::DidStartLoading() { |
| 260 } | 254 } |
| 261 | 255 |
| 262 void MockPluginDelegate::DidStopLoading() { | 256 void MockPluginDelegate::DidStopLoading() { |
| 263 } | 257 } |
| 264 | 258 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 296 |
| 303 void MockPluginDelegate::DidReceiveMouseEvent(PluginInstance* instance) { | 297 void MockPluginDelegate::DidReceiveMouseEvent(PluginInstance* instance) { |
| 304 } | 298 } |
| 305 | 299 |
| 306 bool MockPluginDelegate::IsInFullscreenMode() { | 300 bool MockPluginDelegate::IsInFullscreenMode() { |
| 307 return false; | 301 return false; |
| 308 } | 302 } |
| 309 | 303 |
| 310 } // namespace ppapi | 304 } // namespace ppapi |
| 311 } // namespace webkit | 305 } // namespace webkit |
| OLD | NEW |