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

Unified Diff: remoting/protocol/pepper_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_channel.h
diff --git a/remoting/protocol/pepper_channel.h b/remoting/protocol/pepper_channel.h
deleted file mode 100644
index d004de64f702c491057986a1f2548ac6cd882809..0000000000000000000000000000000000000000
--- a/remoting/protocol/pepper_channel.h
+++ /dev/null
@@ -1,56 +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_CHANNEL_H_
-#define REMOTING_PROTOCOL_PEPPER_CHANNEL_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/threading/non_thread_safe.h"
-
-namespace pp {
-class Instance;
-} // namespace pp
-
-namespace cricket {
-class Candidate;
-} // namespace cricket
-
-namespace remoting {
-namespace protocol {
-
-class ChannelAuthenticator;
-struct TransportConfig;
-
-// Interface for stream and datagram channels used by PepperSession.
-class PepperChannel : public base::NonThreadSafe {
- public:
- PepperChannel() { }
- virtual ~PepperChannel() { }
-
- // Connect the channel using specified |config|. The specified
- // |authenticator| is used to authenticate the channel.
- virtual void Connect(pp::Instance* pp_instance,
- const TransportConfig& config,
- scoped_ptr<ChannelAuthenticator> authenticator) = 0;
-
- // Adds |candidate| received from the peer.
- virtual void AddRemoteCandidate(const cricket::Candidate& candidate) = 0;
-
- // Name of the channel.
- virtual const std::string& name() const = 0;
-
- // Returns true if the channel is already connected.
- virtual bool is_connected() const = 0;
-
- protected:
- DISALLOW_COPY_AND_ASSIGN(PepperChannel);
-};
-
-} // namespace protocol
-} // namespace remoting
-
-#endif // REMOTING_PROTOCOL_PEPPER_CHANNEL_H_

Powered by Google App Engine
This is Rietveld 408576698