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

Unified Diff: webrtc/libjingle/session/sessionclient.h

Issue 1175243003: Remove webrtc/libjingle/{examples,session}. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « webrtc/libjingle/session/session_unittest.cc ('k') | webrtc/libjingle/session/sessionmanager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/libjingle/session/sessionclient.h
diff --git a/webrtc/libjingle/session/sessionclient.h b/webrtc/libjingle/session/sessionclient.h
deleted file mode 100644
index 1db4b6ee609d8cc4260dfe3bb8fb2afb35f06cdc..0000000000000000000000000000000000000000
--- a/webrtc/libjingle/session/sessionclient.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Copyright 2004 The WebRTC Project Authors. All rights reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#ifndef WEBRTC_P2P_BASE_SESSIONCLIENT_H_
-#define WEBRTC_P2P_BASE_SESSIONCLIENT_H_
-
-#include "webrtc/libjingle/session/constants.h"
-#include "webrtc/p2p/base/constants.h"
-
-namespace buzz {
-class XmlElement;
-}
-
-namespace cricket {
-
-struct ParseError;
-struct WriteError;
-class Session;
-class ContentDescription;
-
-class ContentParser {
- public:
- virtual bool ParseContent(SignalingProtocol protocol,
- const buzz::XmlElement* elem,
- ContentDescription** content,
- ParseError* error) = 0;
- // If not IsWriteable, then a given content should be "skipped" when
- // writing in the given protocol, as if it didn't exist. We assume
- // most things are writeable. We do this to avoid strange cases
- // like data contents in Gingle, which aren't writable.
- virtual bool IsWritable(SignalingProtocol protocol,
- const ContentDescription* content) {
- return true;
- }
- virtual bool WriteContent(SignalingProtocol protocol,
- const ContentDescription* content,
- buzz::XmlElement** elem,
- WriteError* error) = 0;
- virtual ~ContentParser() {}
-};
-
-// A SessionClient exists in 1-1 relation with each session. The implementor
-// of this interface is the one that understands *what* the two sides are
-// trying to send to one another. The lower-level layers only know how to send
-// data; they do not know what is being sent.
-class SessionClient : public ContentParser {
- public:
- // Notifies the client of the creation / destruction of sessions of this type.
- //
- // IMPORTANT: The SessionClient, in its handling of OnSessionCreate, must
- // create whatever channels are indicate in the description. This is because
- // the remote client may already be attempting to connect those channels. If
- // we do not create our channel right away, then connection may fail or be
- // delayed.
- virtual void OnSessionCreate(Session* session, bool received_initiate) = 0;
- virtual void OnSessionDestroy(Session* session) = 0;
-
- virtual bool ParseContent(SignalingProtocol protocol,
- const buzz::XmlElement* elem,
- ContentDescription** content,
- ParseError* error) = 0;
- virtual bool WriteContent(SignalingProtocol protocol,
- const ContentDescription* content,
- buzz::XmlElement** elem,
- WriteError* error) = 0;
- protected:
- // The SessionClient interface explicitly does not include destructor
- virtual ~SessionClient() { }
-};
-
-} // namespace cricket
-
-#endif // WEBRTC_P2P_BASE_SESSIONCLIENT_H_
« no previous file with comments | « webrtc/libjingle/session/session_unittest.cc ('k') | webrtc/libjingle/session/sessionmanager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698