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

Unified Diff: chrome/browser/media/router/media_source.h

Issue 1077963002: Revert of [Media Router] Design MediaRouter interface with stub implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chrome/browser/media/router/media_sinks_observer.cc ('k') | chrome/browser/media/router/media_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/router/media_source.h
diff --git a/chrome/browser/media/router/media_source.h b/chrome/browser/media/router/media_source.h
index 00c3ebc79f76ff9a2e16a09c0bff244b8410ba0c..d90497f2aef1dacda374321e798eaca9f4260179 100644
--- a/chrome/browser/media/router/media_source.h
+++ b/chrome/browser/media/router/media_source.h
@@ -5,42 +5,20 @@
#ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_H_
#define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_SOURCE_H_
-#include <ostream>
#include <string>
-
-#include "base/hash.h"
namespace media_router {
-using MediaSourceId = std::string;
-
class MediaSource {
public:
- explicit MediaSource(const MediaSourceId& id);
- MediaSource();
+ explicit MediaSource(const std::string& id);
~MediaSource();
// Gets the ID of the media source.
- MediaSourceId id() const;
-
- // Returns true if two MediaSource objects use the same media ID.
- bool Equals(const MediaSource& other) const;
-
- // Returns true if a MediaSource is empty or uninitialized.
- bool Empty() const;
-
- // Used for logging.
- std::string ToString() const;
-
- // Hash operator for hash containers.
- struct Hash {
- size_t operator()(const MediaSource& source) const {
- return base::Hash(source.id());
- }
- };
+ std::string id() const;
private:
- MediaSourceId id_;
+ std::string id_;
};
} // namespace media_router
« no previous file with comments | « chrome/browser/media/router/media_sinks_observer.cc ('k') | chrome/browser/media/router/media_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698