| 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_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MOJO_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> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 bool incognito) override; | 92 bool incognito) override; |
| 93 void TerminateRoute(const MediaRoute::Id& route_id) override; | 93 void TerminateRoute(const MediaRoute::Id& route_id) override; |
| 94 void DetachRoute(const MediaRoute::Id& route_id) override; | 94 void DetachRoute(const MediaRoute::Id& route_id) override; |
| 95 void SendRouteMessage(const MediaRoute::Id& route_id, | 95 void SendRouteMessage(const MediaRoute::Id& route_id, |
| 96 const std::string& message, | 96 const std::string& message, |
| 97 const SendRouteMessageCallback& callback) override; | 97 const SendRouteMessageCallback& callback) override; |
| 98 void SendRouteBinaryMessage( | 98 void SendRouteBinaryMessage( |
| 99 const MediaRoute::Id& route_id, | 99 const MediaRoute::Id& route_id, |
| 100 std::unique_ptr<std::vector<uint8_t>> data, | 100 std::unique_ptr<std::vector<uint8_t>> data, |
| 101 const SendRouteMessageCallback& callback) override; | 101 const SendRouteMessageCallback& callback) override; |
| 102 void AddIssue(const Issue& issue) override; | 102 void AddIssue(const IssueInfo& issue_info) override; |
| 103 void ClearIssue(const Issue::Id& issue_id) override; | 103 void ClearIssue(const Issue::Id& issue_id) override; |
| 104 void OnUserGesture() override; | 104 void OnUserGesture() override; |
| 105 void SearchSinks( | 105 void SearchSinks( |
| 106 const MediaSink::Id& sink_id, | 106 const MediaSink::Id& sink_id, |
| 107 const MediaSource::Id& source_id, | 107 const MediaSource::Id& source_id, |
| 108 const std::string& search_input, | 108 const std::string& search_input, |
| 109 const std::string& domain, | 109 const std::string& domain, |
| 110 const MediaSinkSearchResponseCallback& sink_callback) override; | 110 const MediaSinkSearchResponseCallback& sink_callback) override; |
| 111 | 111 |
| 112 const std::string& media_route_provider_extension_id() const { | 112 const std::string& media_route_provider_extension_id() const { |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 const MediaSinkSearchResponseCallback& sink_callback); | 277 const MediaSinkSearchResponseCallback& sink_callback); |
| 278 | 278 |
| 279 // Error handler callback for |binding_| and |media_route_provider_|. | 279 // Error handler callback for |binding_| and |media_route_provider_|. |
| 280 void OnConnectionError(); | 280 void OnConnectionError(); |
| 281 | 281 |
| 282 // mojom::MediaRouter implementation. | 282 // mojom::MediaRouter implementation. |
| 283 void RegisterMediaRouteProvider( | 283 void RegisterMediaRouteProvider( |
| 284 mojom::MediaRouteProviderPtr media_route_provider_ptr, | 284 mojom::MediaRouteProviderPtr media_route_provider_ptr, |
| 285 const mojom::MediaRouter::RegisterMediaRouteProviderCallback& | 285 const mojom::MediaRouter::RegisterMediaRouteProviderCallback& |
| 286 callback) override; | 286 callback) override; |
| 287 void OnIssue(mojom::IssuePtr issue) override; | 287 void OnIssue(const IssueInfo& issue) override; |
| 288 void OnSinksReceived(const std::string& media_source, | 288 void OnSinksReceived(const std::string& media_source, |
| 289 std::vector<mojom::MediaSinkPtr> sinks, | 289 std::vector<mojom::MediaSinkPtr> sinks, |
| 290 const std::vector<std::string>& origins) override; | 290 const std::vector<std::string>& origins) override; |
| 291 void OnRoutesUpdated( | 291 void OnRoutesUpdated( |
| 292 std::vector<mojom::MediaRoutePtr> routes, | 292 std::vector<mojom::MediaRoutePtr> routes, |
| 293 const std::string& media_source, | 293 const std::string& media_source, |
| 294 const std::vector<std::string>& joinable_route_ids) override; | 294 const std::vector<std::string>& joinable_route_ids) override; |
| 295 void OnSinkAvailabilityUpdated( | 295 void OnSinkAvailabilityUpdated( |
| 296 mojom::MediaRouter::SinkAvailability availability) override; | 296 mojom::MediaRouter::SinkAvailability availability) override; |
| 297 void OnPresentationConnectionStateChanged( | 297 void OnPresentationConnectionStateChanged( |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 #endif | 430 #endif |
| 431 | 431 |
| 432 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; | 432 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; |
| 433 | 433 |
| 434 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); | 434 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); |
| 435 }; | 435 }; |
| 436 | 436 |
| 437 } // namespace media_router | 437 } // namespace media_router |
| 438 | 438 |
| 439 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 439 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
| OLD | NEW |