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

Unified Diff: content/renderer/media/mock_web_peer_connection_00_handler_client.h

Issue 9699069: Adding JSEP PeerConnection glue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed missing export. Created 8 years, 8 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: content/renderer/media/mock_web_peer_connection_00_handler_client.h
diff --git a/content/renderer/media/mock_web_peer_connection_00_handler_client.h b/content/renderer/media/mock_web_peer_connection_00_handler_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..7f3de5cc65fa52beb7c42e7602762ed8da46449f
--- /dev/null
+++ b/content/renderer/media/mock_web_peer_connection_00_handler_client.h
@@ -0,0 +1,51 @@
+// 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 CONTENT_RENDERER_MEDIA_MOCK_WEB_JSEP_PEER_CONNECTION_HANDLER_CLIENT_H_
+#define CONTENT_RENDERER_MEDIA_MOCK_WEB_JSEP_PEER_CONNECTION_HANDLER_CLIENT_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConnection00HandlerClient.h"
+
+namespace WebKit {
+
+class MockWebPeerConnection00HandlerClient
+ : public WebPeerConnection00HandlerClient {
+ public:
+ MockWebPeerConnection00HandlerClient();
+ virtual ~MockWebPeerConnection00HandlerClient();
+
+ // WebPeerConnection00HandlerClient implementation.
+ virtual void didGenerateICECandidate(
+ const WebICECandidateDescriptor& candidate,
+ bool more_to_follow) OVERRIDE;
+ virtual void didChangeReadyState(ReadyState state) OVERRIDE;
+ virtual void didChangeICEState(ICEState state) OVERRIDE;
+ virtual void didAddRemoteStream(
+ const WebMediaStreamDescriptor& stream_descriptor) OVERRIDE;
+ virtual void didRemoveRemoteStream(
+ const WebMediaStreamDescriptor& stream_descriptor) OVERRIDE;
+
+ const std::string& stream_label() const { return stream_label_; }
+ ReadyState ready_state() const { return ready_state_; }
+ const std::string& candidate_label() const { return candidate_label_; }
+ const std::string& candidate_sdp() const { return candidate_sdp_; }
+ bool more_to_follow() const { return more_to_follow_; }
+
+ private:
+ std::string stream_label_;
+ ReadyState ready_state_;
+ std::string candidate_label_;
+ std::string candidate_sdp_;
+ bool more_to_follow_;
+
+ DISALLOW_COPY_AND_ASSIGN(MockWebPeerConnection00HandlerClient);
+};
+
+} // namespace WebKit
+
+#endif // CONTENT_RENDERER_MEDIA_MOCK_WEB_JSEP_PEER_CONNECTION_HANDLER_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698