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

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: 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 // Signal MRPM to initiate discovery. This allows MRPs that only do discovery
339 // on sink queries to return results even if the MRP sink state is marked
340 // UNAVAILABLE.
341 void DoUserGestureDiscovery();
342
338 // Pending requests queued to be executed once component extension 343 // Pending requests queued to be executed once component extension
339 // becomes ready. 344 // becomes ready.
340 std::deque<base::Closure> pending_requests_; 345 std::deque<base::Closure> pending_requests_;
341 346
342 base::ScopedPtrHashMap<MediaSource::Id, scoped_ptr<MediaSinksQuery>> 347 base::ScopedPtrHashMap<MediaSource::Id, scoped_ptr<MediaSinksQuery>>
343 sinks_queries_; 348 sinks_queries_;
344 349
345 base::ScopedPtrHashMap<MediaSource::Id, scoped_ptr<MediaRoutesQuery>> 350 base::ScopedPtrHashMap<MediaSource::Id, scoped_ptr<MediaRoutesQuery>>
346 routes_queries_; 351 routes_queries_;
347 352
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 #endif 413 #endif
409 414
410 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_; 415 base::WeakPtrFactory<MediaRouterMojoImpl> weak_factory_;
411 416
412 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl); 417 DISALLOW_COPY_AND_ASSIGN(MediaRouterMojoImpl);
413 }; 418 };
414 419
415 } // namespace media_router 420 } // namespace media_router
416 421
417 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_ 422 #endif // CHROME_BROWSER_MEDIA_ROUTER_MOJO_MEDIA_ROUTER_MOJO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698