diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-20 21:24:08 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-20 21:24:08 +0000 |
commit | d98104317f904eb9282bbc69596ae2feb9df0bf6 (patch) | |
tree | 334ce01bbb66503998f74a76a69aeb6e69dabf03 /webkit/plugins/ppapi/mock_plugin_delegate.cc | |
parent | 955cf1fc7b1d9bdb0e8173e518dbb959e01ea7d5 (diff) | |
download | chromium_src-d98104317f904eb9282bbc69596ae2feb9df0bf6.zip chromium_src-d98104317f904eb9282bbc69596ae2feb9df0bf6.tar.gz chromium_src-d98104317f904eb9282bbc69596ae2feb9df0bf6.tar.bz2 |
Implement PPB_TCPSocket_Dev: part 2
This CL:
- adds apps permission check;
- supports TCP socket options that PPB_TCPSocket_Private doesn't support;
- map net::Error to PP_Error.
BUG=247225
TEST=None
Review URL: https://chromiumcodereview.appspot.com/17291003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207567 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/mock_plugin_delegate.cc')
-rw-r--r-- | webkit/plugins/ppapi/mock_plugin_delegate.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webkit/plugins/ppapi/mock_plugin_delegate.cc b/webkit/plugins/ppapi/mock_plugin_delegate.cc index 5f27a2e..10c0253d 100644 --- a/webkit/plugins/ppapi/mock_plugin_delegate.cc +++ b/webkit/plugins/ppapi/mock_plugin_delegate.cc @@ -283,9 +283,10 @@ void MockPluginDelegate::TCPSocketWrite(uint32 socket_id, const std::string& buffer) { } -void MockPluginDelegate::TCPSocketSetBoolOption(uint32 socket_id, - PP_TCPSocketOption_Private name, - bool value) { +void MockPluginDelegate::TCPSocketSetOption( + uint32 socket_id, + PP_TCPSocket_Option_Dev name, + const ::ppapi::SocketOptionData& value) { } void MockPluginDelegate::TCPSocketDisconnect(uint32 socket_id) { |