diff options
-rw-r--r-- | jingle/jingle_nacl.gyp | 5 | ||||
-rw-r--r-- | net/net_nacl.gyp | 1 | ||||
-rw-r--r-- | remoting/client/plugin/chromoting_instance.cc | 43 | ||||
-rw-r--r-- | remoting/client/plugin/chromoting_instance.h | 7 | ||||
-rw-r--r-- | remoting/client/plugin/pepper_module.cc | 32 | ||||
-rw-r--r-- | remoting/protocol/jingle_session_unittest.cc | 2 | ||||
-rw-r--r-- | remoting/protocol/libjingle_transport_factory.cc | 2 | ||||
-rw-r--r-- | remoting/protocol/ssl_hmac_channel_authenticator.cc | 22 | ||||
-rw-r--r-- | remoting/remoting_client.gypi | 26 | ||||
-rw-r--r-- | remoting/remoting_nacl.gyp | 236 | ||||
-rw-r--r-- | remoting/remoting_webapp.gypi | 11 | ||||
-rwxr-xr-x | remoting/webapp/build-webapp.py | 5 | ||||
-rw-r--r-- | remoting/webapp/client_session.js | 15 | ||||
-rw-r--r-- | remoting/webapp/manifest.json.jinja2 | 13 | ||||
-rw-r--r-- | remoting/webapp/plugin_settings.js | 3 | ||||
-rw-r--r-- | remoting/webapp/remoting_client_pnacl.nmf | 10 | ||||
-rw-r--r-- | third_party/libwebm/libwebm_nacl.gyp | 5 |
17 files changed, 19 insertions, 419 deletions
diff --git a/jingle/jingle_nacl.gyp b/jingle/jingle_nacl.gyp index d622fbe..13f9ff1 100644 --- a/jingle/jingle_nacl.gyp +++ b/jingle/jingle_nacl.gyp @@ -24,11 +24,6 @@ 'sources': [ '<@(jingle_glue_sources)', ], - 'sources!': [ - 'glue/chrome_async_socket.cc', - 'glue/proxy_resolving_client_socket.cc', - 'glue/xmpp_client_socket_factory.cc', - ], 'dependencies': [ '../base/base_nacl.gyp:base_nacl', '../native_client/tools.gyp:prep_toolchain', diff --git a/net/net_nacl.gyp b/net/net_nacl.gyp index 33a63d0..669e513 100644 --- a/net/net_nacl.gyp +++ b/net/net_nacl.gyp @@ -27,7 +27,6 @@ '../native_client_sdk/native_client_sdk_untrusted.gyp:nacl_io_untrusted', '../third_party/openssl/openssl_nacl.gyp:openssl_nacl', '../url/url_nacl.gyp:url_nacl', - 'net.gyp:net_derived_sources', 'net.gyp:net_resources', ], 'defines': [ diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc index 8a07ecb..3504c71 100644 --- a/remoting/client/plugin/chromoting_instance.cc +++ b/remoting/client/plugin/chromoting_instance.cc @@ -8,11 +8,6 @@ #include <string> #include <vector> -#if defined(OS_NACL) -#include <sys/mount.h> -#include <nacl_io/nacl_io.h> -#endif - #include "base/bind.h" #include "base/callback.h" #include "base/json/json_reader.h" @@ -26,7 +21,7 @@ #include "base/values.h" #include "crypto/random.h" #include "jingle/glue/thread_wrapper.h" -#include "media/base/yuv_convert.h" +#include "media/base/media.h" #include "net/socket/ssl_server_socket.h" #include "ppapi/cpp/completion_callback.h" #include "ppapi/cpp/dev/url_util_dev.h" @@ -215,24 +210,6 @@ ChromotingInstance::ChromotingInstance(PP_Instance pp_instance) use_async_pin_dialog_(false), use_media_source_rendering_(false), weak_factory_(this) { -#if defined(OS_NACL) - // In NaCl global resources need to be initialized differently because they - // are not shared with Chrome. - thread_task_runner_handle_.reset( - new base::ThreadTaskRunnerHandle(plugin_task_runner_)); - thread_wrapper_.reset( - new jingle_glue::JingleThreadWrapper(plugin_task_runner_)); - media::InitializeCPUSpecificYUVConversions(); -#else - jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop(); -#endif - -#if defined(OS_NACL) - nacl_io_init_ppapi(pp_instance, pp::Module::Get()->get_browser_interface()); - mount("", "/etc", "memfs", 0, ""); - mount("", "/usr", "memfs", 0, ""); -#endif - RequestInputEvents(PP_INPUTEVENT_CLASS_MOUSE | PP_INPUTEVENT_CLASS_WHEEL); RequestFilteringInputEvents(PP_INPUTEVENT_CLASS_KEYBOARD); @@ -287,15 +264,18 @@ bool ChromotingInstance::Init(uint32_t argc, VLOG(1) << "Started ChromotingInstance::Init"; - // Check that the calling content is part of an app or extension. This is only - // necessary for non-PNaCl version of the plugin. Also PPB_URLUtil_Dev doesn't - // work in NaCl at the moment so the check fails in NaCl builds. -#if !defined(OS_NACL) + // Check to make sure the media library is initialized. + // http://crbug.com/91521. + if (!media::IsMediaLibraryInitialized()) { + LOG(ERROR) << "Media library not initialized."; + return false; + } + + // Check that the calling content is part of an app or extension. if (!IsCallerAppOrExtension()) { LOG(ERROR) << "Not an app or extension"; return false; } -#endif // Start all the threads. context_.Start(); @@ -365,9 +345,6 @@ void ChromotingInstance::HandleMessage(const pp::Var& message) { void ChromotingInstance::DidChangeFocus(bool has_focus) { DCHECK(plugin_task_runner_->BelongsToCurrentThread()); - if (!IsConnected()) - return; - input_handler_.DidChangeFocus(has_focus); } @@ -650,6 +627,8 @@ void ChromotingInstance::ConnectWithConfig(const ClientConfig& config, const std::string& local_jid) { DCHECK(plugin_task_runner_->BelongsToCurrentThread()); + jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop(); + if (use_media_source_rendering_) { video_renderer_.reset(new MediaSourceVideoRenderer(this)); } else { diff --git a/remoting/client/plugin/chromoting_instance.h b/remoting/client/plugin/chromoting_instance.h index f56074d..0ed6d3d 100644 --- a/remoting/client/plugin/chromoting_instance.h +++ b/remoting/client/plugin/chromoting_instance.h @@ -13,7 +13,6 @@ #include "base/gtest_prod_util.h" #include "base/memory/scoped_ptr.h" #include "base/memory/weak_ptr.h" -#include "base/thread_task_runner_handle.h" #include "ppapi/c/pp_instance.h" #include "ppapi/c/pp_rect.h" #include "ppapi/c/pp_resource.h" @@ -46,10 +45,6 @@ class Module; class VarDictionary; } // namespace pp -namespace jingle_glue { -class JingleThreadWrapper; -} // namespace jingle_glue - namespace webrtc { class DesktopRegion; class DesktopSize; @@ -264,8 +259,6 @@ class ChromotingInstance : PepperPluginThreadDelegate plugin_thread_delegate_; scoped_refptr<PluginThreadTaskRunner> plugin_task_runner_; - scoped_ptr<base::ThreadTaskRunnerHandle> thread_task_runner_handle_; - scoped_ptr<jingle_glue::JingleThreadWrapper> thread_wrapper_; ClientContext context_; scoped_ptr<VideoRenderer> video_renderer_; scoped_ptr<PepperView> view_; diff --git a/remoting/client/plugin/pepper_module.cc b/remoting/client/plugin/pepper_module.cc deleted file mode 100644 index b8e3bc5..0000000 --- a/remoting/client/plugin/pepper_module.cc +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2014 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#include "base/at_exit.h" -#include "base/compiler_specific.h" -#include "ppapi/cpp/instance.h" -#include "ppapi/cpp/module.h" -#include "remoting/client/plugin/chromoting_instance.h" - -namespace remoting { - -class ChromotingModule : public pp::Module { - protected: - virtual pp::Instance* CreateInstance(PP_Instance instance) OVERRIDE { - pp::Instance* result = new ChromotingInstance(instance); - return result; - } - private: - base::AtExitManager at_exit_manager_; -}; - -} // namespace remoting - -namespace pp { - -// Factory function for your specialization of the Module object. -Module* CreateModule() { - return new remoting::ChromotingModule(); -} - -} // namespace pp diff --git a/remoting/protocol/jingle_session_unittest.cc b/remoting/protocol/jingle_session_unittest.cc index 037cbcb..2f95100 100644 --- a/remoting/protocol/jingle_session_unittest.cc +++ b/remoting/protocol/jingle_session_unittest.cc @@ -9,7 +9,6 @@ #include "base/run_loop.h" #include "base/test/test_timeouts.h" #include "base/time/time.h" -#include "jingle/glue/thread_wrapper.h" #include "net/socket/socket.h" #include "net/socket/stream_socket.h" #include "net/url_request/url_request_context_getter.h" @@ -95,7 +94,6 @@ class JingleSessionTest : public testing::Test { public: JingleSessionTest() { message_loop_.reset(new base::MessageLoopForIO()); - jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop(); } // Helper method that handles OnIncomingSession(). diff --git a/remoting/protocol/libjingle_transport_factory.cc b/remoting/protocol/libjingle_transport_factory.cc index 3b4f830..fd5ba0d 100644 --- a/remoting/protocol/libjingle_transport_factory.cc +++ b/remoting/protocol/libjingle_transport_factory.cc @@ -12,6 +12,7 @@ #include "base/timer/timer.h" #include "jingle/glue/channel_socket_adapter.h" #include "jingle/glue/pseudotcp_adapter.h" +#include "jingle/glue/thread_wrapper.h" #include "jingle/glue/utils.h" #include "net/base/net_errors.h" #include "remoting/base/constants.h" @@ -423,6 +424,7 @@ LibjingleTransportFactory::LibjingleTransportFactory( : signal_strategy_(signal_strategy), port_allocator_(port_allocator.Pass()), network_settings_(network_settings) { + jingle_glue::JingleThreadWrapper::EnsureForCurrentMessageLoop(); } LibjingleTransportFactory::~LibjingleTransportFactory() { diff --git a/remoting/protocol/ssl_hmac_channel_authenticator.cc b/remoting/protocol/ssl_hmac_channel_authenticator.cc index d85ad5f..7e45acd 100644 --- a/remoting/protocol/ssl_hmac_channel_authenticator.cc +++ b/remoting/protocol/ssl_hmac_channel_authenticator.cc @@ -15,7 +15,6 @@ #include "net/socket/client_socket_factory.h" #include "net/socket/client_socket_handle.h" #include "net/socket/ssl_client_socket.h" -#include "net/socket/ssl_client_socket_openssl.h" #include "net/socket/ssl_server_socket.h" #include "net/ssl/ssl_config_service.h" #include "remoting/base/rsa_key_pair.h" @@ -64,12 +63,6 @@ void SslHmacChannelAuthenticator::SecureAndAuthenticate( int result; if (is_ssl_server()) { -#if defined(OS_NACL) - // Client plugin doesn't use server SSL sockets, and so SSLServerSocket - // implementation is not compiled for NaCl as part of net_nacl. - NOTREACHED(); - result = net::ERR_FAILED; -#else scoped_refptr<net::X509Certificate> cert = net::X509Certificate::CreateFromBytes( local_cert_.data(), local_cert_.length()); @@ -92,7 +85,6 @@ void SslHmacChannelAuthenticator::SecureAndAuthenticate( result = raw_server_socket->Handshake( base::Bind(&SslHmacChannelAuthenticator::OnConnected, base::Unretained(this))); -#endif } else { transport_security_state_.reset(new net::TransportSecurityState); @@ -112,19 +104,11 @@ void SslHmacChannelAuthenticator::SecureAndAuthenticate( net::HostPortPair host_and_port(kSslFakeHostName, 0); net::SSLClientSocketContext context; context.transport_security_state = transport_security_state_.get(); - scoped_ptr<net::ClientSocketHandle> socket_handle( - new net::ClientSocketHandle); - socket_handle->SetSocket(socket.Pass()); - -#if defined(OS_NACL) - // net_nacl doesn't include ClientSocketFactory. - socket_.reset(new net::SSLClientSocketOpenSSL( - socket_handle.Pass(), host_and_port, ssl_config, context)); -#else + scoped_ptr<net::ClientSocketHandle> connection(new net::ClientSocketHandle); + connection->SetSocket(socket.Pass()); socket_ = net::ClientSocketFactory::GetDefaultFactory()->CreateSSLClientSocket( - socket_handle.Pass(), host_and_port, ssl_config, context); -#endif + connection.Pass(), host_and_port, ssl_config, context); result = socket_->Connect( base::Bind(&SslHmacChannelAuthenticator::OnConnected, diff --git a/remoting/remoting_client.gypi b/remoting/remoting_client.gypi index ce1de7b..e9d5b32d 100644 --- a/remoting/remoting_client.gypi +++ b/remoting/remoting_client.gypi @@ -101,13 +101,6 @@ 'remoting_webapp_v1', 'remoting_webapp_v2', ], - 'conditions': [ - ['disable_nacl==0 and disable_nacl_untrusted==0', { - 'dependencies': [ - 'remoting_webapp_pnacl', - ], - }], - ], }, # end of target 'remoting_webapp' { @@ -134,23 +127,4 @@ 'includes': [ 'remoting_webapp.gypi', ], }, # end of target 'remoting_webapp_v2' ], # end of targets - - 'conditions': [ - ['disable_nacl==0 and disable_nacl_untrusted==0', { - 'targets': [ - { - 'target_name': 'remoting_webapp_pnacl', - 'type': 'none', - 'variables': { - 'output_dir': '<(PRODUCT_DIR)/remoting/remoting.webapp.pnacl', - 'zip_path': '<(PRODUCT_DIR)/remoting-webapp-pnacl.zip', - 'extra_files': [ 'webapp/background.js' ], - 'webapp_type': 'v2_pnacl', - }, - 'includes': [ 'remoting_webapp.gypi', ], - }, # end of target 'remoting_webapp_pnacl' - ], - }], - ], - } diff --git a/remoting/remoting_nacl.gyp b/remoting/remoting_nacl.gyp deleted file mode 100644 index cbfbef9..0000000 --- a/remoting/remoting_nacl.gyp +++ /dev/null @@ -1,236 +0,0 @@ -# Copyright 2014 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -{ - 'includes': [ - '../native_client/build/untrusted.gypi', - 'remoting_srcs.gypi', - ], - - 'variables': { - 'protoc': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)protoc<(EXECUTABLE_SUFFIX)', - 'proto_out_base': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', - 'proto_out_dir': '<(proto_out_base)/remoting/proto', - 'use_nss': 0, - 'nacl_untrusted_build': 1, - 'chromium_code': 1, - }, - - 'targets': [ - { - 'target_name': 'remoting_webrtc_nacl', - 'type': 'none', - 'variables': { - 'nacl_untrusted_build': 1, - 'nlib_target': 'libremoting_webrtc_nacl.a', - 'build_glibc': 0, - 'build_newlib': 0, - 'build_pnacl_newlib': 1, - }, - 'include_dirs': [ - '../third_party', - '../third_party/webrtc', - ], - 'sources': [ - '../third_party/webrtc/modules/desktop_capture/desktop_frame.cc', - '../third_party/webrtc/modules/desktop_capture/desktop_frame.h', - '../third_party/webrtc/modules/desktop_capture/desktop_geometry.cc', - '../third_party/webrtc/modules/desktop_capture/desktop_geometry.h', - '../third_party/webrtc/modules/desktop_capture/desktop_region.cc', - '../third_party/webrtc/modules/desktop_capture/desktop_region.h', - '../third_party/webrtc/modules/desktop_capture/shared_desktop_frame.cc', - '../third_party/webrtc/modules/desktop_capture/shared_desktop_frame.h', - ], - 'direct_dependent_settings': { - 'include_dirs': [ - '../third_party', - '../third_party/webrtc', - ], - } - }, # end of target 'remoting_webrtc_nacl' - - { - 'target_name': 'remoting_proto_nacl', - 'type': 'none', - 'variables': { - 'nacl_untrusted_build': 1, - 'nlib_target': 'libremoting_proto_nacl.a', - 'build_glibc': 0, - 'build_newlib': 0, - 'build_pnacl_newlib': 1, - 'files_list': [ - '<(proto_out_dir)/audio.pb.cc', - '<(proto_out_dir)/control.pb.cc', - '<(proto_out_dir)/event.pb.cc', - '<(proto_out_dir)/internal.pb.cc', - '<(proto_out_dir)/video.pb.cc', - '<(proto_out_dir)/mux.pb.cc', - ], - 'extra_deps': [ '<@(files_list)' ], - 'extra_args': [ '<@(files_list)' ], - }, - 'defines': [ - 'GOOGLE_PROTOBUF_HOST_ARCH_64_BIT=1' - ], - 'dependencies': [ - '../native_client/tools.gyp:prep_toolchain', - '../third_party/protobuf/protobuf_nacl.gyp:protobuf_lite_nacl', - 'proto/chromotocol.gyp:chromotocol_proto_lib', - ], - 'export_dependent_settings': [ - '../third_party/protobuf/protobuf_nacl.gyp:protobuf_lite_nacl', - ], - 'direct_dependent_settings': { - 'include_dirs': [ - '<(proto_out_base)', - ], - }, - }, # end of target 'remoting_proto_nacl' - - { - 'target_name': 'remoting_client_plugin_lib_nacl', - 'type': 'none', - 'variables': { - 'nacl_untrusted_build': 1, - 'nlib_target': 'libremoting_client_plugin_lib_nacl.a', - 'build_glibc': 0, - 'build_newlib': 0, - 'build_pnacl_newlib': 1, - }, - 'dependencies': [ - '../base/base_nacl.gyp:base_nacl', - '../jingle/jingle_nacl.gyp:jingle_glue_nacl', - '../native_client/tools.gyp:prep_toolchain', - '../native_client_sdk/native_client_sdk_untrusted.gyp:nacl_io_untrusted', - '../net/net_nacl.gyp:net_nacl', - '../third_party/libjingle/libjingle_nacl.gyp:libjingle_nacl', - '../third_party/libvpx/libvpx_nacl.gyp:libvpx_nacl', - '../third_party/libwebm/libwebm_nacl.gyp:libwebm_nacl', - '../third_party/libyuv/libyuv_nacl.gyp:libyuv_nacl', - '../third_party/openssl/openssl_nacl.gyp:openssl_nacl', - '../third_party/opus/opus_nacl.gyp:opus_nacl', - 'remoting_proto_nacl', - 'remoting_webrtc_nacl', - ], - 'sources': [ - '../ui/events/keycodes/dom4/keycode_converter.cc', - '<@(remoting_base_sources)', - '<@(remoting_client_plugin_sources)', - '<@(remoting_client_sources)', - '<@(remoting_protocol_sources)', - ], - 'sources!': [ - 'base/url_request_context.cc', - 'jingle_glue/chromium_socket_factory.cc', - ] - }, # end of target 'remoting_client_plugin_lib_nacl' - - { - 'target_name': 'remoting_client_plugin_nacl', - 'type': 'none', - 'variables': { - 'nacl_untrusted_build': 1, - 'nexe_target': 'remoting_client_plugin', - 'build_glibc': 0, - 'build_newlib': 0, - 'build_pnacl_newlib': 1, - 'enable_x86_32': 0, - 'enable_x86_64': 0, - 'extra_deps_pnacl_newlib': [ - '>(tc_lib_dir_pnacl_newlib)/libbase_i18n_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libbase_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libexpat_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libicudata_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libcrypto_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libicui18n_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libicuuc_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libjingle_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libjingle_p2p_constants_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libmedia_yuv_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libmodp_b64_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libopenssl_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libopus_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libppapi.a', - '>(tc_lib_dir_pnacl_newlib)/libppapi_cpp.a', - '>(tc_lib_dir_pnacl_newlib)/libprotobuf_lite_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libjingle_glue_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libnet_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libremoting_client_plugin_lib_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libremoting_proto_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libremoting_webrtc_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/liburl_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libvpx_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libwebm_nacl.a', - '>(tc_lib_dir_pnacl_newlib)/libyuv_nacl.a', - ], - }, - 'dependencies': [ - '../base/base_nacl.gyp:base_i18n_nacl', - '../base/base_nacl.gyp:base_nacl', - '../crypto/crypto_nacl.gyp:crypto_nacl', - '../jingle/jingle_nacl.gyp:jingle_glue_nacl', - '../media/media_nacl.gyp:media_yuv_nacl', - '../native_client/tools.gyp:prep_toolchain', - '../native_client_sdk/native_client_sdk_untrusted.gyp:nacl_io_untrusted', - '../net/net_nacl.gyp:net_nacl', - '../ppapi/native_client/native_client.gyp:nacl_irt', - '../ppapi/native_client/native_client.gyp:ppapi_lib', - '../ppapi/ppapi_nacl.gyp:ppapi_cpp_lib', - '../third_party/expat/expat_nacl.gyp:expat_nacl', - '../third_party/icu/icu_nacl.gyp:icudata_nacl', - '../third_party/icu/icu_nacl.gyp:icui18n_nacl', - '../third_party/icu/icu_nacl.gyp:icuuc_nacl', - '../third_party/libjingle/libjingle_nacl.gyp:libjingle_nacl', - '../third_party/libwebm/libwebm_nacl.gyp:libwebm_nacl', - '../third_party/libyuv/libyuv_nacl.gyp:libyuv_nacl', - '../third_party/modp_b64/modp_b64_nacl.gyp:modp_b64_nacl', - '../third_party/openssl/openssl_nacl.gyp:openssl_nacl', - '../url/url_nacl.gyp:url_nacl', - 'remoting_client_plugin_lib_nacl', - 'remoting_proto_nacl', - 'remoting_webrtc_nacl', - ], - 'link_flags': [ - '-lppapi_stub', - - # Plugin code. - '-lremoting_client_plugin_lib_nacl', - '-lremoting_proto_nacl', - - # Chromium libraries. - '-ljingle_glue_nacl', - '-lmedia_yuv_nacl', - '-lnet_nacl', - '-lcrypto_nacl', - '-lbase_i18n_nacl', - '-lbase_nacl', - '-lurl_nacl', - - # Third-party libraries. - '-lremoting_webrtc_nacl', - '-lyuv_nacl', - '-lvpx_nacl', - '-ljingle_p2p_constants_nacl', - '-ljingle_nacl', - '-lexpat_nacl', - '-lmodp_b64_nacl', - '-lopus_nacl', - '-lopenssl_nacl', - '-licui18n_nacl', - '-licuuc_nacl', - '-licudata_nacl', - '-lprotobuf_lite_nacl', - '-lwebm_nacl', - - # Base NaCl libraries. - '-lppapi_cpp', - '-lpthread', - '-lnacl_io', - ], - 'sources': [ - 'client/plugin/pepper_module.cc', - ], - }, # end of target 'remoting_client_plugin_nacl' - ] -} diff --git a/remoting/remoting_webapp.gypi b/remoting/remoting_webapp.gypi index 871a876..e1bce7a 100644 --- a/remoting/remoting_webapp.gypi +++ b/remoting/remoting_webapp.gypi @@ -35,17 +35,6 @@ 'plugin_args': [], }, }], - ['webapp_type=="v2_pnacl"', { - 'dependencies': [ - 'remoting_nacl.gyp:remoting_client_plugin_nacl', - ], - 'variables': { - 'extra_files': [ - 'webapp/remoting_client_pnacl.nmf', - '<(PRODUCT_DIR)/remoting_client_plugin_newlib.pexe', - ], - }, - }], ['run_jscompile != 0', { 'variables': { 'success_stamp': '<(PRODUCT_DIR)/remoting_webapp_jscompile.stamp', diff --git a/remoting/webapp/build-webapp.py b/remoting/webapp/build-webapp.py index 01ffbe9..7f4a62c 100755 --- a/remoting/webapp/build-webapp.py +++ b/remoting/webapp/build-webapp.py @@ -189,11 +189,6 @@ def buildWebApp(buildtype, version, mimetype, destination, zip_path, findAndReplace(os.path.join(destination, 'plugin_settings.js'), 'HOST_PLUGIN_MIMETYPE', hostPluginMimeType) - # Set client plugin type. - client_plugin = 'pnacl' if webapp_type == 'v2_pnacl' else 'native' - findAndReplace(os.path.join(destination, 'plugin_settings.js'), - "'CLIENT_PLUGIN_TYPE'", "'" + client_plugin + "'") - # Allow host names for google services/apis to be overriden via env vars. oauth2AccountsHost = os.environ.get( 'OAUTH2_ACCOUNTS_HOST', 'https://accounts.google.com') diff --git a/remoting/webapp/client_session.js b/remoting/webapp/client_session.js index 12b46e5..23c8814 100644 --- a/remoting/webapp/client_session.js +++ b/remoting/webapp/client_session.js @@ -363,17 +363,8 @@ remoting.ClientSession.prototype.createClientPlugin_ = document.createElement('embed'); plugin.id = id; - if (remoting.settings.CLIENT_PLUGIN_TYPE == 'pnacl') { - plugin.src = 'remoting_client_pnacl.nmf'; - plugin.type = 'application/x-pnacl'; - } else if (remoting.settings.CLIENT_PLUGIN_TYPE == 'nacl') { - plugin.src = 'remoting_client_nacl.nmf'; - plugin.type = 'application/x-nacl'; - } else { - plugin.src = 'about://none'; - plugin.type = 'application/vnd.chromium.remoting-viewer'; - } - + plugin.src = 'about://none'; + plugin.type = 'application/vnd.chromium.remoting-viewer'; plugin.width = 0; plugin.height = 0; plugin.tabIndex = 0; // Required, otherwise focus() doesn't work. @@ -1509,4 +1500,4 @@ remoting.ClientSession.prototype.getClientArea_ = function() { return remoting.windowFrame ? remoting.windowFrame.getClientArea() : { 'width': window.innerWidth, 'height': window.innerHeight }; -} +}
\ No newline at end of file diff --git a/remoting/webapp/manifest.json.jinja2 b/remoting/webapp/manifest.json.jinja2 index 81c676b..9ae27be 100644 --- a/remoting/webapp/manifest.json.jinja2 +++ b/remoting/webapp/manifest.json.jinja2 @@ -59,19 +59,6 @@ "contextMenus", "overrideEscFullscreen" {% endif %} -{% if webapp_type == 'v2_pnacl' %} - ,{ - "socket": [ - "tcp-connect", - "tcp-listen", - "udp-send-to", - "udp-bind", - "udp-multicast-membership", - "resolve-host", - "network-state" - ] - } -{% endif %} ], {% if webapp_type == 'v1' %} diff --git a/remoting/webapp/plugin_settings.js b/remoting/webapp/plugin_settings.js index 2d1f264..8d0a166 100644 --- a/remoting/webapp/plugin_settings.js +++ b/remoting/webapp/plugin_settings.js @@ -54,6 +54,3 @@ remoting.Settings.prototype.THIRD_PARTY_AUTH_REDIRECT_URI = // Whether to use MediaSource API for video rendering. remoting.Settings.prototype.USE_MEDIA_SOURCE_RENDERING = false; - -// 'native', 'nacl' or 'pnacl'. -remoting.Settings.prototype.CLIENT_PLUGIN_TYPE = 'CLIENT_PLUGIN_TYPE'; diff --git a/remoting/webapp/remoting_client_pnacl.nmf b/remoting/webapp/remoting_client_pnacl.nmf deleted file mode 100644 index 8181c0a..0000000 --- a/remoting/webapp/remoting_client_pnacl.nmf +++ /dev/null @@ -1,10 +0,0 @@ -{ - "program": { - "portable": { - "pnacl-translate": { - "url": "remoting_client_plugin_newlib.pexe", - "optlevel": 2 - } - } - } -} diff --git a/third_party/libwebm/libwebm_nacl.gyp b/third_party/libwebm/libwebm_nacl.gyp index 53f722d..adec08f 100644 --- a/third_party/libwebm/libwebm_nacl.gyp +++ b/third_party/libwebm/libwebm_nacl.gyp @@ -23,11 +23,6 @@ 'sources': [ '<@(libwebm_sources)', ], - 'defines': [ - # LLONG_MIN and UULONG_MAX are defined in newlib only for C++11. - 'LLONG_MIN=LONG_LONG_MIN', - 'ULLONG_MAX=ULONG_LONG_MAX', - ], }, # target libwebm_nacl ] } |