| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_MEDIA_ROUTER_MOJO_IMPL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_IMPL_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| 11 #include <map> | 11 #include <map> |
| 12 #include <set> | 12 #include <set> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/containers/hash_tables.h" | 16 #include "base/containers/hash_tables.h" |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // interfaces::MediaRouter implementation. | 269 // interfaces::MediaRouter implementation. |
| 270 void RegisterMediaRouteProvider( | 270 void RegisterMediaRouteProvider( |
| 271 interfaces::MediaRouteProviderPtr media_route_provider_ptr, | 271 interfaces::MediaRouteProviderPtr media_route_provider_ptr, |
| 272 const interfaces::MediaRouter::RegisterMediaRouteProviderCallback& | 272 const interfaces::MediaRouter::RegisterMediaRouteProviderCallback& |
| 273 callback) override; | 273 callback) override; |
| 274 void OnIssue(interfaces::IssuePtr issue) override; | 274 void OnIssue(interfaces::IssuePtr issue) override; |
| 275 void OnSinksReceived(const mojo::String& media_source, | 275 void OnSinksReceived(const mojo::String& media_source, |
| 276 mojo::Array<interfaces::MediaSinkPtr> sinks, | 276 mojo::Array<interfaces::MediaSinkPtr> sinks, |
| 277 mojo::Array<mojo::String> origins) override; | 277 mojo::Array<mojo::String> origins) override; |
| 278 void OnRoutesUpdated(mojo::Array<interfaces::MediaRoutePtr> routes, | 278 void OnRoutesUpdated(mojo::Array<interfaces::MediaRoutePtr> routes, |
| 279 const mojo::String& media_source, | 279 const mojo::String& media_source, |
| 280 mojo::Array<mojo::String> joinable_route_ids) override; | 280 mojo::Array<mojo::String> joinable_route_ids) override; |
| 281 void OnSinkAvailabilityUpdated( | 281 void OnSinkAvailabilityUpdated( |
| 282 interfaces::MediaRouter::SinkAvailability availability) override; | 282 interfaces::MediaRouter::SinkAvailability availability) override; |
| 283 void OnPresentationConnectionStateChanged( | 283 void OnPresentationConnectionStateChanged( |
| 284 const mojo::String& route_id, | 284 const mojo::String& route_id, |
| 285 interfaces::MediaRouter::PresentationConnectionState state) override; | 285 interfaces::MediaRouter::PresentationConnectionState state) override; |
| 286 void OnPresentationConnectionClosed( | 286 void OnPresentationConnectionClosed( |
| 287 const mojo::String& route_id, | 287 const mojo::String& route_id, |
| 288 interfaces::MediaRouter::PresentationConnectionCloseReason reason, | 288 interfaces::MediaRouter::PresentationConnectionCloseReason reason, |
| 289 const mojo::String& message) override; | 289 const mojo::String& message) override; |
| 290 | 290 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 bool should_enable_mdns_discovery_ = false; | 407 bool should_enable_mdns_discovery_ = false; |
| 408 #endif | 408 #endif |
| 409 | 409 |
| 410 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; | 410 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; |
| 411 | 411 |
| 412 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); | 412 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); |
| 413 }; | 413 }; |
| 414 | 414 |
| 415 } // namespace media_router | 415 } // namespace media_router |
| 416 | 416 |
| 417 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_MOJO_IMPL_H_ | 417 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| OLD | NEW |