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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 // of few reasons: | 316 // of few reasons: |
317 // (1) The extension crashed and lost unpersisted changes. | 317 // (1) The extension crashed and lost unpersisted changes. |
318 // (2) The extension was updated; temporary data is cleared. | 318 // (2) The extension was updated; temporary data is cleared. |
319 // (3) The extension has an unforseen bug which causes temporary data to be | 319 // (3) The extension has an unforseen bug which causes temporary data to be |
320 // persisted incorrectly on suspension. | 320 // persisted incorrectly on suspension. |
321 void SyncStateToMediaRouteProvider(); | 321 void SyncStateToMediaRouteProvider(); |
322 | 322 |
323 // mojom::MediaRouter implementation. | 323 // mojom::MediaRouter implementation. |
324 void RegisterMediaRouteProvider( | 324 void RegisterMediaRouteProvider( |
325 mojom::MediaRouteProviderPtr media_route_provider_ptr, | 325 mojom::MediaRouteProviderPtr media_route_provider_ptr, |
326 const mojom::MediaRouter::RegisterMediaRouteProviderCallback& | 326 mojom::MediaRouter::RegisterMediaRouteProviderCallback callback) override; |
327 callback) override; | |
328 void OnIssue(const IssueInfo& issue) override; | 327 void OnIssue(const IssueInfo& issue) override; |
329 void OnSinksReceived(const std::string& media_source, | 328 void OnSinksReceived(const std::string& media_source, |
330 const std::vector<MediaSinkInternal>& internal_sinks, | 329 const std::vector<MediaSinkInternal>& internal_sinks, |
331 const std::vector<url::Origin>& origins) override; | 330 const std::vector<url::Origin>& origins) override; |
332 void OnRoutesUpdated( | 331 void OnRoutesUpdated( |
333 const std::vector<MediaRoute>& routes, | 332 const std::vector<MediaRoute>& routes, |
334 const std::string& media_source, | 333 const std::string& media_source, |
335 const std::vector<std::string>& joinable_route_ids) override; | 334 const std::vector<std::string>& joinable_route_ids) override; |
336 void OnSinkAvailabilityUpdated( | 335 void OnSinkAvailabilityUpdated( |
337 mojom::MediaRouter::SinkAvailability availability) override; | 336 mojom::MediaRouter::SinkAvailability availability) override; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 #endif | 481 #endif |
483 | 482 |
484 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; | 483 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; |
485 | 484 |
486 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); | 485 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); |
487 }; | 486 }; |
488 | 487 |
489 } // namespace media_router | 488 } // namespace media_router |
490 | 489 |
491 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ | 490 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ |
OLD | NEW |