OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_ROUTE_MESSAGE_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_ROUTE_MESSAGE_OBSERVER_H_ |
6 #define CHROME_BROWSER_MEDIA_ROUTER_ROUTE_MESSAGE_OBSERVER_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_ROUTE_MESSAGE_OBSERVER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "chrome/browser/media/router/media_route.h" | 14 #include "chrome/common/media_router/media_route.h" |
15 | 15 |
16 namespace media_router { | 16 namespace media_router { |
17 | 17 |
18 class MediaRouter; | 18 class MediaRouter; |
19 struct RouteMessage; | 19 struct RouteMessage; |
20 | 20 |
21 // Observes messages originating from the MediaSink connected to a MediaRoute. | 21 // Observes messages originating from the MediaSink connected to a MediaRoute. |
22 // Messages are received from MediaRouter via |OnMessagesReceived|. | 22 // Messages are received from MediaRouter via |OnMessagesReceived|. |
23 class RouteMessageObserver { | 23 class RouteMessageObserver { |
24 public: | 24 public: |
(...skipping 12 matching lines...) Expand all Loading... |
37 private: | 37 private: |
38 MediaRouter* const router_; | 38 MediaRouter* const router_; |
39 const MediaRoute::Id route_id_; | 39 const MediaRoute::Id route_id_; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(RouteMessageObserver); | 41 DISALLOW_COPY_AND_ASSIGN(RouteMessageObserver); |
42 }; | 42 }; |
43 | 43 |
44 } // namespace media_router | 44 } // namespace media_router |
45 | 45 |
46 #endif // CHROME_BROWSER_MEDIA_ROUTER_ROUTE_MESSAGE_OBSERVER_H_ | 46 #endif // CHROME_BROWSER_MEDIA_ROUTER_ROUTE_MESSAGE_OBSERVER_H_ |
OLD | NEW |