OLD | NEW |
(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 const RouteRequestId kInvalidRouteRequestId = -1; |
| 13 |
| 14 MediaRoute::MediaRoute(const MediaRouteId& media_route_id, |
| 15 const MediaSource& media_source, |
| 16 const MediaSinkId& sink_id, |
| 17 const std::string& description, |
| 18 bool is_local) |
| 19 : media_route_id_(media_route_id), |
| 20 media_source_(media_source), |
| 21 sink_id_(sink_id), |
| 22 description_(description), |
| 23 is_local_(is_local), |
| 24 state_(MEDIA_ROUTE_STATE_NEW) { |
| 25 } |
| 26 |
| 27 MediaRoute::~MediaRoute() { |
| 28 } |
| 29 |
| 30 bool MediaRoute::operator==(const MediaRoute& other) const { |
| 31 return media_route_id_ == other.media_route_id_; |
| 32 } |
| 33 |
| 34 bool MediaRoute::operator!=(const MediaRoute& other) const { |
| 35 return !(*this == other); |
| 36 } |
| 37 |
| 38 } // namespace media_router |
OLD | NEW |