| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_BROWSER_PRESENTATION_CONNECTION_PROXY_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_BROWSER_PRESENTATION_CONNECTION_PROXY_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_BROWSER_PRESENTATION_CONNECTION_PROXY_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_BROWSER_PRESENTATION_CONNECTION_PROXY_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "chrome/browser/media/router/route_message_observer.h" | 10 #include "chrome/browser/media/router/route_message_observer.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 // Underlying media route is always connected. Media route class does not | 66 // Underlying media route is always connected. Media route class does not |
| 67 // support state change. | 67 // support state change. |
| 68 void DidChangeState(content::PresentationConnectionState state) override {} | 68 void DidChangeState(content::PresentationConnectionState state) override {} |
| 69 | 69 |
| 70 // Underlying media route is always connected. Media route class does not | 70 // Underlying media route is always connected. Media route class does not |
| 71 // support state change. | 71 // support state change. |
| 72 void OnClose() override {} | 72 void OnClose() override {} |
| 73 | 73 |
| 74 // RouteMessageObserver implementation. | 74 // RouteMessageObserver implementation. |
| 75 void OnMessagesReceived(const std::vector<RouteMessage>& messages) override; | 75 void OnMessagesReceived( |
| 76 const std::vector<content::PresentationConnectionMessage>& messages) |
| 77 override; |
| 76 | 78 |
| 77 private: | 79 private: |
| 78 // |router_| not owned by this class. | 80 // |router_| not owned by this class. |
| 79 MediaRouter* const router_; | 81 MediaRouter* const router_; |
| 80 const MediaRoute::Id route_id_; | 82 const MediaRoute::Id route_id_; |
| 81 | 83 |
| 82 mojo::Binding<blink::mojom::PresentationConnection> binding_; | 84 mojo::Binding<blink::mojom::PresentationConnection> binding_; |
| 83 blink::mojom::PresentationConnectionPtr target_connection_ptr_; | 85 blink::mojom::PresentationConnectionPtr target_connection_ptr_; |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 } // namespace media_router | 88 } // namespace media_router |
| 87 | 89 |
| 88 #endif // CHROME_BROWSER_MEDIA_ROUTER_BROWSER_PRESENTATION_CONNECTION_PROXY_H_ | 90 #endif // CHROME_BROWSER_MEDIA_ROUTER_BROWSER_PRESENTATION_CONNECTION_PROXY_H_ |
| OLD | NEW |