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

Unified Diff: chrome/browser/ui/webui/media_router/media_sink_with_cast_modes.h

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase 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
Index: chrome/browser/ui/webui/media_router/media_sink_with_cast_modes.h
diff --git a/chrome/browser/ui/webui/media_router/media_sink_with_cast_modes.h b/chrome/browser/ui/webui/media_router/media_sink_with_cast_modes.h
new file mode 100644
index 0000000000000000000000000000000000000000..48c651d2f60bc168534758ffd08d7ed1a864a703
--- /dev/null
+++ b/chrome/browser/ui/webui/media_router/media_sink_with_cast_modes.h
@@ -0,0 +1,31 @@
+// Copyright 2015 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 CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_SINK_WITH_CAST_MODES_H_
+#define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_SINK_WITH_CAST_MODES_H_
+
+#include <set>
+
+#include "chrome/browser/media/router/media_sink.h"
+#include "chrome/browser/ui/webui/media_router/media_cast_mode.h"
+
+namespace media_router {
+
+// Contains information on a MediaSink and the set of cast modes it is
+// compatible with. This should be interpreted under the context of a
+// QueryResultManager which contains a mapping from MediaCastMode to
+// MediaSource.
+struct MediaSinkWithCastModes {
+ explicit MediaSinkWithCastModes(const MediaSink& sink);
+ ~MediaSinkWithCastModes();
+
+ MediaSink sink;
+ CastModeSet cast_modes;
+
+ bool Equals(const MediaSinkWithCastModes& other) const;
+};
+
+} // namespace media_router
+
+#endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_SINK_WITH_CAST_MODES_H_

Powered by Google App Engine
This is Rietveld 408576698