summaryrefslogtreecommitdiffstats
path: root/remoting/client/plugin/pepper_xmpp_proxy.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-13 23:42:18 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-13 23:42:18 +0000
commit04a97ada0f1f07675bad41f641c675e558e3a4a2 (patch)
tree010bb2f372ff7100712a45a2803c4049e37aaa47 /remoting/client/plugin/pepper_xmpp_proxy.h
parentf26c5562d76ec0a10c6906d595ab32d42deec410 (diff)
downloadchromium_src-04a97ada0f1f07675bad41f641c675e558e3a4a2.zip
chromium_src-04a97ada0f1f07675bad41f641c675e558e3a4a2.tar.gz
chromium_src-04a97ada0f1f07675bad41f641c675e558e3a4a2.tar.bz2
Remove XmppProxy and JavascriptSignalStrategy.
Instead of using XmppProxy and JavascriptSignalStrategy to provide signaling for the client the client plugin now uses the new PepperSignalStrategy class which implements SignalStrategy interface directly. R=garykac@chromium.org Review URL: https://codereview.chromium.org/16168008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/plugin/pepper_xmpp_proxy.h')
-rw-r--r--remoting/client/plugin/pepper_xmpp_proxy.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/remoting/client/plugin/pepper_xmpp_proxy.h b/remoting/client/plugin/pepper_xmpp_proxy.h
deleted file mode 100644
index 0c1bc79..0000000
--- a/remoting/client/plugin/pepper_xmpp_proxy.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef REMOTING_CLIENT_PLUGIN_PEPPER_XMPP_PROXY_H_
-#define REMOTING_CLIENT_PLUGIN_PEPPER_XMPP_PROXY_H_
-
-#include "base/callback.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-#include "remoting/jingle_glue/xmpp_proxy.h"
-
-namespace base {
-class SingleThreadTaskRunner;
-} // namespace base
-
-namespace remoting {
-
-class PepperXmppProxy : public XmppProxy {
- public:
- typedef base::Callback<void(const std::string&)> SendIqCallback;
-
- // |plugin_task_runner| is the thread on which |send_iq_callback| is
- // called. Normally the callback will call JavaScript, so this has
- // to be the task runner that corresponds to the plugin
- // thread. |callback_task_runner| is used to call the callback
- // registered with AttachCallback().
- PepperXmppProxy(
- const SendIqCallback& send_iq_callback,
- base::SingleThreadTaskRunner* plugin_task_runner,
- base::SingleThreadTaskRunner* callback_task_runner);
-
- // Registered the callback class with this object.
- //
- // - This method has subtle thread semantics! -
- //
- // It must be called on the callback thread itself. The weak pointer also
- // must be constructed on the callback thread. That means, you cannot just
- // create a WeakPtr on, say the pepper thread, and then pass execution of
- // this function callback with the weak pointer bound as a parameter. That
- // will fail because the WeakPtr will have been created on the wrong thread.
- virtual void AttachCallback(
- base::WeakPtr<ResponseCallback> callback) OVERRIDE;
- virtual void DetachCallback() OVERRIDE;
-
- virtual void SendIq(const std::string& request_xml) OVERRIDE;
- virtual void OnIq(const std::string& response_xml);
-
- private:
- virtual ~PepperXmppProxy();
-
- SendIqCallback send_iq_callback_;
-
- scoped_refptr<base::SingleThreadTaskRunner> plugin_task_runner_;
- scoped_refptr<base::SingleThreadTaskRunner> callback_task_runner_;
-
- // Must only be access on callback_message_loop_.
- base::WeakPtr<ResponseCallback> callback_;
-
- DISALLOW_COPY_AND_ASSIGN(PepperXmppProxy);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_CLIENT_PLUGIN_PEPPER_XMPP_PROXY_H_