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

Unified Diff: remoting/protocol/pepper_stream_channel.h

Issue 9325036: Add abstract interfaces for the transport layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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: remoting/protocol/pepper_stream_channel.h
diff --git a/remoting/protocol/pepper_stream_channel.h b/remoting/protocol/pepper_stream_channel.h
deleted file mode 100644
index 575b3b3f8bbe0881e387c699d55b9e6da127910f..0000000000000000000000000000000000000000
--- a/remoting/protocol/pepper_stream_channel.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) 2011 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_PROTOCOL_PEPPER_STREAM_CHANNEL_H_
-#define REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_
-
-#include <string>
-
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "net/base/completion_callback.h"
-#include "remoting/protocol/channel_authenticator.h"
-#include "remoting/protocol/pepper_channel.h"
-#include "remoting/protocol/pepper_transport_socket_adapter.h"
-#include "remoting/protocol/session.h"
-
-namespace net {
-class CertVerifier;
-class StreamSocket;
-class SSLClientSocket;
-} // namespace net
-
-namespace remoting {
-namespace protocol {
-
-class PepperSession;
-
-class PepperStreamChannel : public PepperChannel,
- public PepperTransportSocketAdapter::Observer {
- public:
- PepperStreamChannel(PepperSession* session,
- const std::string& name,
- const Session::StreamChannelCallback& callback);
- virtual ~PepperStreamChannel();
-
- // PepperChannel implementation.
- virtual void Connect(pp::Instance* pp_instance,
- const TransportConfig& transport_config,
- scoped_ptr<ChannelAuthenticator> authenticator) OVERRIDE;
- virtual void AddRemoteCandidate(const cricket::Candidate& candidate) OVERRIDE;
- virtual const std::string& name() const OVERRIDE;
- virtual bool is_connected() const OVERRIDE;
-
- // PepperTransportSocketAdapter implementation.
- virtual void OnChannelDeleted() OVERRIDE;
- virtual void OnChannelNewLocalCandidate(
- const std::string& candidate) OVERRIDE;
-
- private:
- void OnP2PConnect(int result);
- void OnAuthenticationDone(net::Error error,
- scoped_ptr<net::StreamSocket> socket);
-
- void NotifyConnected(scoped_ptr<net::StreamSocket> socket);
- void NotifyConnectFailed();
-
- PepperSession* session_;
- std::string name_;
- Session::StreamChannelCallback callback_;
- scoped_ptr<ChannelAuthenticator> authenticator_;
-
- // We own |channel_| until it is connected. After that
- // |authenticator_| owns it.
- scoped_ptr<PepperTransportSocketAdapter> owned_channel_;
- PepperTransportSocketAdapter* channel_;
-
- // Indicates that we've finished connecting.
- bool connected_;
-
- DISALLOW_COPY_AND_ASSIGN(PepperStreamChannel);
-};
-
-} // namespace protocol
-} // namespace remoting
-
-#endif // REMOTING_PROTOCOL_PEPPER_STREAM_CHANNEL_H_

Powered by Google App Engine
This is Rietveld 408576698