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

Side by Side Diff: chrome/browser/media/router/media_route.cc

Issue 949293004: Add media router common classes and unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: MediaSource struct is now a class Created 5 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/media/router/media_route.h"
6
7 #include "base/logging.h"
8 #include "chrome/browser/media/router/media_source.h"
9
10 namespace media_router {
11
12 MediaRoute::MediaRoute(const MediaRouteId& media_route_id,
13 const MediaSource& media_source,
14 const MediaSinkId& sink_id,
15 const std::string& description,
16 bool is_local)
17 : media_route_id_(media_route_id),
18 media_source_(media_source),
19 sink_id_(sink_id),
20 description_(description),
21 is_local_(is_local),
22 state_(MEDIA_ROUTE_STATE_NEW) {
23 }
24
25 MediaRoute::~MediaRoute() {
26 }
27
28 bool MediaRoute::Equals(const MediaRoute& other) const {
29 return media_route_id_ == other.media_route_id_;
30 }
31
32 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698