Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(933)

Unified Diff: content/renderer/pepper/mock_plugin_delegate.cc

Issue 21192002: Remove more methods from PluginDelegate. Some I moved the implementationto the callers. For others,… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/mock_plugin_delegate.cc
===================================================================
--- content/renderer/pepper/mock_plugin_delegate.cc (revision 214249)
+++ content/renderer/pepper/mock_plugin_delegate.cc (working copy)
@@ -42,9 +42,6 @@
PepperPluginInstanceImpl* instance) {
}
-void MockPluginDelegate::PluginCrashed(PepperPluginInstanceImpl* instance) {
-}
-
void MockPluginDelegate::InstanceCreated(PepperPluginInstanceImpl* instance) {
}
@@ -62,84 +59,6 @@
return scoped_refptr<base::MessageLoopProxy>();
}
-uint32 MockPluginDelegate::TCPSocketCreate() {
- return 0;
-}
-
-void MockPluginDelegate::TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket,
- uint32 socket_id,
- const std::string& host,
- uint16_t port) {
-}
-
-void MockPluginDelegate::TCPSocketConnectWithNetAddress(
- PPB_TCPSocket_Private_Impl* socket,
- uint32 socket_id,
- const PP_NetAddress_Private& addr) {
-}
-
-void MockPluginDelegate::TCPSocketSSLHandshake(
- uint32 socket_id,
- const std::string& server_name,
- uint16_t server_port,
- const std::vector<std::vector<char> >& trusted_certs,
- const std::vector<std::vector<char> >& untrusted_certs) {
-}
-
-void MockPluginDelegate::TCPSocketRead(uint32 socket_id,
- int32_t bytes_to_read) {
-}
-
-void MockPluginDelegate::TCPSocketWrite(uint32 socket_id,
- const std::string& buffer) {
-}
-
-void MockPluginDelegate::TCPSocketSetOption(
- uint32 socket_id,
- PP_TCPSocket_Option name,
- const ::ppapi::SocketOptionData& value) {
-}
-
-void MockPluginDelegate::TCPSocketDisconnect(uint32 socket_id) {
-}
-
-void MockPluginDelegate::RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket,
- uint32 socket_id) {
-}
-
-void MockPluginDelegate::TCPServerSocketListen(
- PP_Resource socket_resource,
- const PP_NetAddress_Private& addr,
- int32_t backlog) {
-}
-
-void MockPluginDelegate::TCPServerSocketAccept(uint32 server_socket_id) {
-}
-
-void MockPluginDelegate::TCPServerSocketStopListening(
- PP_Resource socket_resource,
- uint32 socket_id) {
-}
-
-bool MockPluginDelegate::LockMouse(PepperPluginInstanceImpl* instance) {
- return false;
-}
-
-void MockPluginDelegate::UnlockMouse(PepperPluginInstanceImpl* instance) {
-}
-
-bool MockPluginDelegate::IsMouseLocked(PepperPluginInstanceImpl* instance) {
- return false;
-}
-
-void MockPluginDelegate::DidChangeCursor(PepperPluginInstanceImpl* instance,
- const WebKit::WebCursorInfo& cursor) {
-}
-
-void MockPluginDelegate::DidReceiveMouseEvent(
- PepperPluginInstanceImpl* instance) {
-}
-
void MockPluginDelegate::SampleGamepads(WebKit::WebGamepads* data) {
data->length = 0;
}

Powered by Google App Engine
This is Rietveld 408576698