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

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

Issue 9139010: Revert 117187 - Adding support for MediaStream and PeerConnection functionality. (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: content/renderer/media/mock_media_stream_dispatcher.h
===================================================================
--- content/renderer/media/mock_media_stream_dispatcher.h (revision 117190)
+++ content/renderer/media/mock_media_stream_dispatcher.h (working copy)
@@ -1,45 +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 CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_
-#define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_
-
-#include <string>
-
-#include "content/renderer/media/media_stream_dispatcher.h"
-
-// This class is a mock implementation of MediaStreamDispatcher.
-class MockMediaStreamDispatcher : public MediaStreamDispatcher {
- public:
- MockMediaStreamDispatcher();
- virtual ~MockMediaStreamDispatcher();
-
- virtual void GenerateStream(int request_id,
- MediaStreamDispatcherEventHandler* event_handler,
- media_stream::StreamOptions components,
- const std::string& security_origin) OVERRIDE;
- virtual void StopStream(const std::string& label) OVERRIDE;
- virtual bool IsStream(const std::string& label) OVERRIDE;
- virtual int video_session_id(const std::string& label, int index) OVERRIDE;
- virtual int audio_session_id(const std::string& label, int index) OVERRIDE;
-
- int request_id() const { return request_id_; }
- MediaStreamDispatcherEventHandler* event_handler() const {
- return event_handler_;
- }
- media_stream::StreamOptions* components() const { return components_; }
- const std::string& security_origin() const { return security_origin_; }
- int stop_stream_counter() const { return stop_stream_counter_; }
-
- private:
- int request_id_;
- MediaStreamDispatcherEventHandler* event_handler_;
- media_stream::StreamOptions* components_;
- std::string security_origin_;
- int stop_stream_counter_;
-
- DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDispatcher);
-};
-
-#endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_
« no previous file with comments | « content/renderer/media/mock_media_stream_dependency_factory.cc ('k') | content/renderer/media/mock_media_stream_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698