Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: chrome/browser/media/router/mojo/media_router_mojo_impl.h

Issue 1862913004: [Media Router] Wire through a new MRPM call to update media sinks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed (and simplified) tests. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // period. 328 // period.
329 void EnsureMdnsDiscoveryEnabled(); 329 void EnsureMdnsDiscoveryEnabled();
330 void DoEnsureMdnsDiscoveryEnabled(); 330 void DoEnsureMdnsDiscoveryEnabled();
331 331
332 // Callback used to enabled mDNS in the MRPM if a firewall prompt will not be 332 // Callback used to enabled mDNS in the MRPM if a firewall prompt will not be
333 // triggered. If a firewall prompt would be triggered, enabling mDNS won't 333 // triggered. If a firewall prompt would be triggered, enabling mDNS won't
334 // happen until the user is clearly interacting with MR. 334 // happen until the user is clearly interacting with MR.
335 void OnFirewallCheckComplete(bool firewall_can_use_local_ports); 335 void OnFirewallCheckComplete(bool firewall_can_use_local_ports);
336 #endif 336 #endif
337 337
338 // Requests MRPM to update media sinks. This allows MRPs that only do
339 // discovery on sink queries an opportunity to update discovery results
340 // even if the MRP sink state is marked UNAVAILABLE.
imcheng 2016/04/15 18:37:02 s/sink state/SinkAvailability
amp 2016/04/15 20:29:33 Done.
341 void UpdateMediaSinks(const MediaSource::Id& source_id);
342 void DoUpdateMediaSinks(const MediaSource::Id& source_id);
343
338 // Pending requests queued to be executed once component extension 344 // Pending requests queued to be executed once component extension
339 // becomes ready. 345 // becomes ready.
340 std::deque<base::Closure> pending_requests_; 346 std::deque<base::Closure> pending_requests_;
341 347
342 base::ScopedPtrHashMap<MediaSource::Id, std::unique_ptr<MediaSinksQuery>> 348 base::ScopedPtrHashMap<MediaSource::Id, std::unique_ptr<MediaSinksQuery>>
343 sinks_queries_; 349 sinks_queries_;
344 350
345 base::ScopedPtrHashMap<MediaSource::Id, std::unique_ptr<MediaRoutesQuery>> 351 base::ScopedPtrHashMap<MediaSource::Id, std::unique_ptr<MediaRoutesQuery>>
346 routes_queries_; 352 routes_queries_;
347 353
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 #endif 415 #endif
410 416
411 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; 417 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_;
412 418
413 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); 419 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl);
414 }; 420 };
415 421
416 } // namespace media_router 422 } // namespace media_router
417 423
418 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ 424 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698